Rig
Modular LLM applications and agents in Rust
About
Rig is a Rust library for building LLM-powered applications with an emphasis on ergonomics and modularity. It offers one unified interface across more than 20 model providers and more than 10 vector stores, covering completion, embeddings, RAG, transcription, audio, and image generation, with agentic workflows that handle multi-turn streaming. The core library is fully WASM-compatible, and it follows OpenTelemetry's GenAI semantic conventions for observability.
It is the most-starred Rust LLM framework at 8,889 stars, MIT-licensed, with weekly releases and detailed changelogs; the repo lists production users including Coral Protocol, Dria, Nethermind, and VT Code. Docs live at rig.rs with a growing examples collection, and installation is a single cargo add rig-core.
What it can do
- Unified interface for 20+ LLM providers
- 10+ vector store integrations
- Agentic workflows with multi-turn streaming
- RAG pipelines with embeddings
- Transcription, audio, and image generation support
- WASM-compatible core
- OpenTelemetry GenAI semantic conventions
Setup
- Add the crate: cargo add rig-core
- Enable the provider feature you need (e.g. --features openai)
- Export your provider API key (e.g. OPENAI_API_KEY)
- Build a client, define an agent with a preamble, and prompt it
Prerequisites
Rust toolchain (cargo), Tokio runtime, and an API key for your chosen model provider.
Use cases
Works with
Trust score — 9/10
Scored 9/10 (TIER verified, metrics-v1). Evidence: 8,889 GitHub stars (api.github.com, 2026-10-16); pushed 2026-10-16; MIT license; weekly releases; production users listed (Coral Protocol, Dria, Nethermind). Strengths: largest Rust LLM framework community, very active, strong docs. Docked for: (1) Rust-only, so Python teams face onboarding cost; (2) some newer provider features lag day-one support, per third-party reviews. License: MIT.
★ 8,889 GitHub stars
How the trust score is built
Full methodology →- Adoption · stars/downloads, log-scaled vs peers
- 9.0/10
- Maintenance · recency, releases, issue load
- 9.0/10
- Openness · license + docs
- 9.0/10
- Manual review · sanity read + red-flag check
- 8.0/10
- · 8,889 GitHub stars via api.github.com/repos/0xPlaygrounds/rig (2026-10-16)
- · Last push 2026-10-16T06:57:01Z - very active, weekly releases
- · Production users listed in repo: Coral Protocol, Dria, Nethermind, VT Code, Listen
- · Docs at rig.rs; third-party review notes some newer provider features lag (blog.brightcoding.dev)
Sources
Every fact above was checked against these sources. Where a claim comes from the provider and couldn't be independently verified, the text says so.