Rig
Build modular, scalable LLM applications and agent workflows in Rust.
- Source repo
- 0xPlaygrounds/rig
- Stars
- ★ 9.4k
- Last updated
- today v0.47.1
- FARS reviewed
- Nov 08, 2026 +2 new
- License
- MIT
- Primary language
- Rust
- FA score
- 70/100 · Some gaps
At a glance
- How it runs
- Works with
- Universal · cross-platformOpenAI API
- Cost
- Free software; you pay for model usage
- Setup effort
- Medium · a few setup steps
- You'll need
- Typical use
- A Rust backend team wants one interface for multiple model providers instead of maintaining separate completion and embedding adapters.
- Not a fit if
- Teams that need a stable API and cannot absorb breaking changes
- Users wanting a ready-made hosted chatbot or web UI
- Projects needing WASI support or MCP in the browser
- Website
- rig.rs ↗ set on GitHub
- Maintenance
- Commits in the last 30 dayslast commit 2026-12-02latest release v0.47.1 (2026-11-25)+13.7 ★/day over 7 days
- Source review
- 70/100 · Some gaps
What does this agent do, and when should you use it?
Rig is a Rust library for building modular, scalable LLM applications rather than a ready-to-deploy chatbot. Its architecture separates rig-core, which defines provider-neutral messages, models, tools, memory, and vector-store contracts, from rig-agent, which supplies the classic builder, prompt and streaming traits, typed hooks, contextual tools, extraction, and a serializable AgentRun state machine. The root rig facade re-exports both layers and exposes companion database, vector-store, local-model, and cloud integrations through Cargo features. Applications can run completion, embedding, multi-turn prompting, and streaming workflows, with interfaces covering transcription, audio generation, and image generation model capabilities. The portable core and classic runtime support browser wasm32-unknown-unknown, while WASI is unsupported and rmcp is native-only. Adopters must still write the surrounding Rust application, configure a model provider, and own its build and deployment.
A developer creates a provider client from rig::providers, builds an agent with calls such as client.agent(...).preamble(...).build(), and invokes Agent::prompt(...).await to obtain a response. rig-agent handles multi-turn prompting, streaming, typed hooks, contextual tools, extraction, and serializable AgentRun execution state, while rig-core supplies the message, completion-model, portable-tool, memory, and vector-store contracts. The model layer supports completion and embedding workflows and exposes model capabilities for transcription, audio generation, and image generation. Feature-gated companion crates connect applications to backends including LanceDB, Milvus, MongoDB, Neo4j, PostgreSQL, Qdrant, SQLite, and SurrealDB, as well as components such as FastEmbed, Candle, Vertex AI, and Bedrock. The outputs become responses, streams, extracted values, or run state inside the adopter's Rust program; Rig itself does not provide a hosted end-user service.
- A Rust backend team wants one interface for multiple model providers instead of maintaining separate completion and embedding adapters.
- An agent application developer needs multi-turn context, streamed output, contextual tools, typed hooks, and serializable execution state.
- A retrieval application team needs to connect embedding workflows to PostgreSQL, Qdrant, LanceDB, Milvus, MongoDB, or another documented storage integration.
- A browser-focused Rust team wants the portable core or classic runtime on
wasm32-unknown-unknownand can work within the WASI and native-only component restrictions. - A Rust product needs to organize text completion, transcription, audio generation, and image generation model calls behind one framework.
- An engineering team wants model-call telemetry aligned with the GenAI Semantic Convention.
Key setup facts
Pulled from the install and usage notes below. The project README has the current values.
- Config files
Cargo.toml
How do you install or deploy this agent?
Install Rust and Cargo, then run cargo add rig in a Rust project. Use cargo add rig-core instead when only the core provider abstractions are needed. Enable companion integrations in Cargo.toml when required; the documented example is rig = { version = "0.36.0", features = ["lancedb", "fastembed"] }. The asynchronous example also requires Tokio, installable with cargo add tokio --features macros,rt-multi-thread, plus anyhow for its shown return type. Before running the OpenAI example, configure the OpenAI credentials expected by openai::Client::from_env(); the supplied source does not name the exact environment variables.
How do you use this agent?
In an asynchronous Rust program, import use rig::prelude::*; and use rig::providers::openai;, then create a client with openai::Client::from_env()?. Build an agent with client.agent(openai::GPT_5_2).preamble("You are a comedian here to entertain the user using humour and jokes.").build(). Invoke it with comedian_agent.prompt("Entertain me!").await? and print the returned value. The entry point may use #[tokio::main] async fn main() -> Result<(), anyhow::Error>; Tokio must have macros and rt-multi-thread, or full, enabled. For storage or model extensions, enable the matching rig feature and use its documented root path, such as rig::lancedb or rig::fastembed.
Safety boundaries, hardening & integrations
Operational blast radius, source-verified safety controls, and first-run hardening steps before connecting this agent to real workspaces.
Declared capability surface (blast radius)
Can run terminal commands; pair with approval gates or container/OS sandboxing.
Makes outbound requests; verify telemetry settings and model data routing on private repos.
What are this agent's strengths and limitations?
- More than 20 model providers sit behind a unified interface that covers both completion and embedding workflows, reducing repeated provider adapter work in Rust applications.
- The
rig-coreandrig-agentsplit lets projects adopt only provider-level contracts or add the complete orchestration layer, while the root facade preserves familiar imports. - More than 10 vector-store integrations are available, with one Cargo feature per companion integration to keep dependency selection explicit.
- The classic runtime includes concrete orchestration primitives: multi-turn streaming, typed hooks, contextual tools, extraction, and a serializable
AgentRunstate machine. - The portable core and classic runtime explicitly support browser
wasm32-unknown-unknown, and the library supports the GenAI Semantic Convention.
- The project explicitly warns that forthcoming releases will contain breaking changes, creating version-pinning, testing, and migration work for adopters.
- Rig is a library rather than a hosted product, so teams must implement credential management, deployment, error handling, application entry points, and any user interface.
- Portability has documented limits: WASI is unsupported,
rmcpis native-only, and not every component can be moved unchanged across targets. - The example assumes an asynchronous Rust stack with correctly selected Tokio features, and each application must choose and configure its own model provider.
- The supplied material demonstrates a basic OpenAI text prompt but does not document a production deployment topology, retry policy, cost controls, or complete configuration examples for every provider.
How does this agent compare with similar options?
Use the root rig package when an application wants feature-gated access to rig-agent and companion model, database, or vector-store crates. Use rig-core directly when only provider-neutral messages, completion models, portable tools, memory, and vector-store contracts are required. These are complementary layers rather than competing products: rig is the facade, while rig-core is the smaller foundation.
Key facts side by side with the most closely related agents.
| Agent | Source review | Form / cost | Stars | Updated | Language | Full support on |
|---|---|---|---|---|---|---|
| Rig This agent | 70 · Some gaps | Library / SDKFree + model costs | ★ 9.4k | today | Rust | OpenAI API |
| TanStack AI | 60 · Some gaps | Library / SDKFree + model costs | ★ 3.4k | 1d ago | TypeScript | OpenAI API · Claude API |
| Swarmauri SDK | 43 · Major gaps | Library / SDKFree + model costs | ★ 107 | today | Python | — |
| Microsoft Agent Framework for Go | 82 · Good | Library / SDKFree + model costs | ★ 718 | 1d ago | Go | OpenAI API |
How does FollowAgents rate this agent?
Why each dimension lost points
The product supports optional plugins, leaves MCP off by default, and describes an opt-in plugin that asks before a project server starts. Its tools include reading, writing, editing, searching, and shell access, but the sample does not establish per-tool permission boundaries or confirmation for every consequential action, so least privilege and confirmation are only partly supported. The README explains API-key sign-in, environment variables, and optional HTTP recording, but gives little detail on credential storage, log retention, or sensitive-data handling. CI permissions are scoped, and model-download scripts pin revisions and verify hashes; keeping the old build after a failed rebuild offers limited rollback. Repository ownership and license are traceable, but publisher identity is unverified and maintenance commitments are not specific.
The README, Cargo manifest, CI workflows, and contributor guidance are broadly consistent about the Rust version, workspace structure, and verification approach. CI describes change-selected checks, service suites, and contract guards; these files document a verification system, but this review did not run it. Rust/Cargo, external model providers, services, and toolchains are runtime dependencies, and some scenarios require credentials or services, so availability is not guaranteed by the repository. Examples propagate errors and show some rate-limit handling, but interactive error reporting is not consistent across the samples, warranting a deduction.
The project clearly targets Rust LLM application developers and covers library use, a terminal coding agent, plugins, providers, and vector stores. The plugin system, model selection, remote-host tools, and optional subagents allow extension, but the supplied sample does not fully specify permission boundaries, feature limits, or each plugin's activation conditions. The README gives Linux/macOS and Rust-version requirements and mentions local model endpoints and WASM support; individual capabilities still depend on credentials, external services, or platform conditions.
The README organizes material around the Agent, library, integrations, and crates, with links to the Agent guide, plugin guide, and examples. It provides cargo install and cargo add commands and identifies environment variables and the minimum Rust version, though installation details and FAQ coverage are limited. Crate names, feature flags, and module paths are documented systematically, but the sample cannot establish naming stability across the full project history. The README identifies the project as pre-1.0 with breaking releases and links the changelog and migration notes. MIT metadata matches the license text. AGENTS.md describes contributor operations rather than product APIs; CI, release workflows, and contribution links show a maintenance path, but not a detailed responsibility commitment.
The framework unifies multiple model providers, vector stores, tools, streaming, conversation memory, and effect recording, alongside a separate Agent CLI and scripting interface, indicating clear developer value. CLI commands, library APIs, and examples provide usable starting points, but configuration and interface details span multiple guides and crate documents, and error presentation differs across examples. The broad feature set carries Rust-toolchain and provider-configuration costs; the supplied material does not quantify cost, performance, or return.
Most major README claims point to crates, documentation, or configuration entry points, with partial corroboration from the manifest, CI, and scripts. CI describes tests and checks, and download scripts pin model revisions and hashes, but these are repository claims; nothing was executed here, so they do not establish runtime correctness. The README explicitly states credential requirements, pre-1.0 compatibility risks, and serde_json configuration effects. Other capability claims are primarily descriptive, with limited static evidence about behavior details.
- Shell, file-writing, and plugin tools can affect local or remote environments; inspect the enabled plugins and tool configuration and confirm their permissions suit the intended use.
- The Agent can connect to external model providers, and optional HTTP recording stores provider traffic; check the scope of transmission and recording before using credentials or sensitive prompts.
- The project is pre-1.0 and upgrades may include breaking changes; consult the release changelog and migration notes.
Recent releases
Latest entries from the project's GitHub Releases. Notes are quoted from upstream as written, not rewritten or tested by FollowAgents.
-
v0.47.1 rig-v0.47.1
Release notes excerpt
Added - *(rig-bridge)* Esc stops the program's turn, and a new process goes on from the session the program saved ([#3463](https://github.com/0xPlaygrounds/rig/pull/3463)) (by [gold-silver-copper](https://github.com/gold-silver-copper)) - *(rig-watch)* rig-watch, an optional plugin that wakes the agent when a file it waits on changes ([#3462](https://github.com/0xPlaygrounds/rig/pull/3462)) (by [gold-silver-copper](https://github.com/gold-silver-copper)) …View on GitHub ↗ -
v0.47.0 rig-v0.47.0
Release notes excerpt
Added - *(rig-basics, rig-memory, rig-ecs, rig-core)* [breaking] compaction has no undo: the Uncompact event, undo_summary, Uncompacted and UndoError are removed, and with them the /uncompact command built on them; the replaced messages stay visible in the transcript. Recovering is removed, and Summarizing::keep_from is replaced by replaces. apply_summary takes the messages the compaction read and replaces exactly those, only while unchanged. Summary calls are retried by the kernel as [retry] says and after the wait the provider asks for; a blank summary fails (`Su …View on GitHub ↗ -
v0.46.0 rig-v0.46.0
Release notes excerpt
Added - *(rig-mcp-client)* new plugin crate rig-mcp-client (rig_mcp_client::McpPlugin), listed off in the default plugins.toml: MCP servers' tools (stdio and streamable HTTP) as <server>__<tool>, from $RIG_HOME/mcp.json and <project>/.rig/mcp.json. A project's server starts only once approved as written (/mcp approve, /mcp deny); /mcp add and /mcp remove edit the right file. McpCorePlugin and AddMcpServer let a front add its client's servers for one run. The mcpServers format with type, disabled and ${VAR} expansion, with other fields refused by name for th …View on GitHub ↗
FAQ
Does Rig host or deploy the agent?
What credentials are required for the example?
openai::Client::from_env(), so valid OpenAI API credentials must be available in the environment. The supplied source does not specify the exact variable names. Other providers require their own integration configuration, which is not detailed here.Can it run in a browser or on WASI?
wasm32-unknown-unknown. WASI is explicitly unsupported, and rmcp is native-only.Must I adopt the complete agent runtime?
rig-core for provider abstractions. Use the default rig-agent layer or root rig facade when the classic builder, streaming prompts, hooks, contextual tools, extraction, and AgentRun state machine are needed.How stable are upgrades?
Thanks — we use this to improve the page.
Subscribe to the FollowAgents RSS feed, or save this agent to your browser shortlist to compare on your next visit.