Description
Rig is a Rust library for building applications and agents that use large language models. It gives you one API across more than 20 model providers, so switching providers does not require rewriting the application. It includes type-safe tools that the model can call, structured output so responses follow a schema you define, and support for more than 10 vector stores for retrieval. The site describes it as modular and designed for production-ready performance. You add it to a Rust project with cargo add rig. The project is licensed under the MIT license and is developed on GitHub, where it has several thousand stars and a large number of contributors. The site links to documentation, a set of examples and an awesome-rig list of related projects, as well as a Discord server for questions. Rig is aimed at developers who want to build LLM features in Rust rather than in Python, and its examples cover building agents.…
Highlights
- One API across more than 20 providers
- Type-safe tools for agents
- Structured output
- More than 10 vector stores
- Install with cargo add
Ratings & Reviews
No ratings yet
Be the first to rate Rig.
People also visit
Rig FAQ
What is Rig?
A Rust library for building LLM-powered applications and AI agents.
How do I add it?
Run cargo add rig in a Rust project.
Which model providers does it support?
The site says one unified API covers more than 20 providers.
Is it free?
Yes. The site says Rig is MIT licensed.
What are the type-safe tools?
Functions the model can call, defined with Rust types so their inputs and outputs are checked by the compiler.
Where can I learn it?
The site links to documentation, examples, an awesome-rig list of projects and a Discord server.
Which vector stores does it support?
The site says more than 10 vector stores are supported for retrieval.
What are the best Rig alternatives?
Popular alternatives to Rig include Yoagent, liter-llm and SMG. See all Rig alternatives




