| Crates.io | ollama-sdk |
| lib.rs | ollama-sdk |
| version | 0.4.1 |
| created_at | 2025-11-11 15:47:32.940162+00 |
| updated_at | 2025-12-29 05:16:37.949054+00 |
| description | An idiomatic, unofficial Rust client for the Ollama API with support for streaming, tool calling, and custom transports. |
| homepage | |
| repository | https://github.com/Sathiyaraman-M/ollama-sdk |
| max_upload_size | |
| id | 1927482 |
| size | 143,823 |
An idiomatic low-level Rust library for interacting with the Ollama API.
[!NOTE] This is not an official Ollama SDK.
[!WARNING] This library is currently in pre-alpha so don't use it in production. There are frequent breaking changes and the API is not stable.
reqwest by default, with an extensible Transport trait for custom implementations.tracing for detailed logging and metrics for performance monitoring.Add ollama-sdk to your Cargo.toml file:
[dependencies]
ollama-sdk = "0.4.1"
To enable optional features like tracing or metrics:
[dependencies]
ollama-sdk = { version = "0.4.1", features = ["tracing", "metrics"] }
[!TIP] Examples are present in the examples directory. You can run them using
cargo run --example <example_name>.
We welcome contributions! Please see our CONTRIBUTING.md for more details.
This project is licensed under the MIT License. See the LICENSE file for details.