A type-safe OpenRouter Rust SDK.
https://crates.io/crates/openrouter-rs β// momentum
// why it's here
- Active: last commit today
- Built almost entirely by one person
// how to help
// readme
openrouter-rs
Type-safe, async Rust SDK for the OpenRouter API.
docs.rs | examples | crate | docs map | openrouter-cli | contributing | changelog
openrouter-rs is a community-maintained Rust SDK for OpenRouter, with typed requests, streaming, tool calling, and access to OpenRouterβs model, usage, and management APIs. A companion CLI is available for terminal and automation workflows.
Installation
[dependencies]
openrouter-rs = "0.25.0"
tokio = { version = "1", features = ["full"] }
Requires Rust 1.93+ and Tokio 1.x. To try it in a new project:
cargo new openrouter-quickstart
cd openrouter-quickstart