{"id":22686450,"url":"https://github.com/0xPlaygrounds/rig","last_synced_at":"2025-08-07T00:32:42.791Z","repository":{"id":243442502,"uuid":"810861466","full_name":"0xPlaygrounds/rig","owner":"0xPlaygrounds","description":"⚙️🦀 Build portable, modular \u0026 lightweight Fullstack Agents","archived":false,"fork":false,"pushed_at":"2024-11-11T16:36:25.000Z","size":10599,"stargazers_count":153,"open_issues_count":22,"forks_count":9,"subscribers_count":6,"default_branch":"main","last_synced_at":"2024-11-12T09:12:31.724Z","etag":null,"topics":["agent","ai","artificial-intelligence","automation","large-language-model","llm","rust","scalable-ai"],"latest_commit_sha":null,"homepage":"https://rig.rs","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/0xPlaygrounds.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-06-05T13:42:28.000Z","updated_at":"2024-11-11T09:45:19.000Z","dependencies_parsed_at":"2024-07-17T20:06:19.017Z","dependency_job_id":"9829801b-46a2-4236-98e0-28d19cf0196b","html_url":"https://github.com/0xPlaygrounds/rig","commit_stats":null,"previous_names":["0xplaygrounds/rig"],"tags_count":28,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xPlaygrounds%2Frig","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xPlaygrounds%2Frig/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xPlaygrounds%2Frig/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xPlaygrounds%2Frig/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/0xPlaygrounds","download_url":"https://codeload.github.com/0xPlaygrounds/rig/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228976848,"owners_count":18000682,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["agent","ai","artificial-intelligence","automation","large-language-model","llm","rust","scalable-ai"],"created_at":"2024-12-09T23:01:31.386Z","updated_at":"2025-08-07T00:32:42.779Z","avatar_url":"https://github.com/0xPlaygrounds.png","language":"Rust","readme":"\u003cp align=\"center\"\u003e\n\u003cpicture\u003e\n    \u003csource media=\"(prefers-color-scheme: dark)\" srcset=\"img/rig-playgrounds-dark.svg\"\u003e\n    \u003csource media=\"(prefers-color-scheme: light)\" srcset=\"img/rig-playgrounds-light.svg\"\u003e\n    \u003cimg src=\"img/rig-playgrounds-light.svg\" style=\"width: 40%; height: 40%;\" alt=\"Rig logo\"\u003e\n\u003c/picture\u003e\n\u003cbr\u003e\n\u003ca href=\"https://docs.rig.rs\"\u003e\u003cimg src=\"https://img.shields.io/badge/📖 docs-rig.rs-dca282.svg\" /\u003e\u003c/a\u003e \u0026nbsp;\n\u003ca href=\"https://docs.rs/rig-core/latest/rig/\"\u003e\u003cimg src=\"https://img.shields.io/badge/docs-API Reference-dca282.svg\" /\u003e\u003c/a\u003e \u0026nbsp;\n\u003ca href=\"https://crates.io/crates/rig-core\"\u003e\u003cimg src=\"https://img.shields.io/crates/v/rig-core.svg?color=dca282\" /\u003e\u003c/a\u003e\n\u0026nbsp;\n\u003ca href=\"https://crates.io/crates/rig-core\"\u003e\u003cimg src=\"https://img.shields.io/crates/d/rig-core.svg?color=dca282\" /\u003e\u003c/a\u003e\n\u003c/br\u003e\n\u003ca href=\"https://discord.gg/playgrounds\"\u003e\u003cimg src=\"https://img.shields.io/discord/511303648119226382?color=%236d82cc\u0026label=Discord\u0026logo=discord\u0026logoColor=white\" /\u003e\u003c/a\u003e\n\u0026nbsp;\n\u003ca href=\"https://github.com/0xPlaygrounds/rig\"\u003e\u003cimg src=\"https://img.shields.io/github/stars/0xPlaygrounds/rig?style=social\" alt=\"stars - rig\" /\u003e\u003c/a\u003e\n\u003cbr\u003e\n\u003ca href=\"\"\u003e\u003cimg src=\"https://img.shields.io/badge/built_with-Rust-dca282.svg?logo=rust\" /\u003e\u003c/a\u003e\n\u0026nbsp;\n\u003ca href=\"https://twitter.com/Playgrounds0x\"\u003e\u003cimg src=\"https://img.shields.io/twitter/follow/Playgrounds0x\"\u003e\u003c/a\u003e \u0026nbsp\n\n\u003cbr\u003e\n\u003c/p\u003e\n\u0026nbsp;\n\n\n\u003cdiv align=\"center\"\u003e\n\n[📑 Docs](https://docs.rig.rs)\n\u003cspan\u003e\u0026nbsp;\u0026nbsp;•\u0026nbsp;\u0026nbsp;\u003c/span\u003e\n[🌐 Website](https://rig.rs)\n\u003cspan\u003e\u0026nbsp;\u0026nbsp;•\u0026nbsp;\u0026nbsp;\u003c/span\u003e\n[🤝 Contribute](https://github.com/0xPlaygrounds/rig/issues/new)\n\u003cspan\u003e\u0026nbsp;\u0026nbsp;•\u0026nbsp;\u0026nbsp;\u003c/span\u003e\n[✍🏽 Blogs](https://docs.rig.rs/guides)\n\n\u003c/div\u003e\n\n✨ If you would like to help spread the word about Rig, please consider starring the repo!\n\n\u003e [!WARNING]\n\u003e Here be dragons! As we plan to ship a torrent of features in the following months, future updates **will** contain **breaking changes**. With Rig evolving, we'll annotate changes and highlight migration paths as we encounter them.\n\n## Table of contents\n\n- [Table of contents](#table-of-contents)\n- [What is Rig?](#what-is-rig)\n- [High-level features](#high-level-features)\n- [Who's using Rig in production?](#who-is-using-rig-in-production)\n- [Get Started](#get-started)\n  - [Simple example:](#simple-example)\n- [Integrations](#integrations)\n\n## What is Rig?\nRig is a Rust library for building scalable, modular, and ergonomic **LLM-powered** applications.\n\nMore information about this crate can be found in the [official](https://docs.rig.rs) \u0026 [crate](https://docs.rs/rig-core/latest/rig/) (API Reference) documentations.\n\n## High-level features\n- Full support for LLM completion and embedding workflows\n- Simple but powerful common abstractions over LLM providers (e.g. OpenAI, Cohere) and vector stores (e.g. MongoDB, SQlite, in-memory)\n- Integrate LLMs in your app with minimal boilerplate\n\n## Who is using Rig in production?\nBelow is a non-exhaustive list of companies and people who are using Rig in production:\n- [Dria Compute Node](https://github.com/firstbatchxyz/dkn-compute-node) - a node that serves computation results within the Dria Knowledge Network\n- [The MCP Rust SDK](https://github.com/modelcontextprotocol/rust-sdk ) - the official Model Context Protocol Rust SDK. Has an example for usage with Rig.\n- [Probe](https://github.com/buger/probe) - an AI-friendly, fully local semantic code search tool.\n- [NINE](https://github.com/NethermindEth/nine) - Neural Interconnected Nodes Engine, by [Nethermind.](https://www.nethermind.io/)\n- [rig-onchain-kit](https://github.com/0xPlaygrounds/rig-onchain-kit) - the Rig Onchain Kit. Intended to make interactions between Solana/EVM and Rig much easier to implement.\n- [Linera Protocol](https://github.com/linera-io/linera-protocol) - Decentralized blockchain infrastructure designed for highly scalable, secure, low-latency Web3 applications.\n- [Listen](https://github.com/piotrostr/listen) - A framework aiming to become the go-to framework for AI portfolio management agents. Powers [the Listen app.](https://app.listen-rs.com/)\n\nAre you also using Rig in production? [Open an issue](https://www.github.com/0xPlaygrounds/rig/issues) to have your name added!\n\n## Get Started\n```bash\ncargo add rig-core\n```\n\n### Simple example:\n```rust\nuse rig::{completion::Prompt, providers::openai};\n\n#[tokio::main]\nasync fn main() {\n    // Create OpenAI client and model\n    // This requires the `OPENAI_API_KEY` environment variable to be set.\n    let openai_client = openai::Client::from_env();\n\n    let gpt4 = openai_client.agent(\"gpt-4\").build();\n\n    // Prompt the model and print its response\n    let response = gpt4\n        .prompt(\"Who are you?\")\n        .await\n        .expect(\"Failed to prompt GPT-4\");\n\n    println!(\"GPT-4: {response}\");\n}\n```\nNote using `#[tokio::main]` requires you enable tokio's `macros` and `rt-multi-thread` features\nor just `full` to enable all features (`cargo add tokio --features macros,rt-multi-thread`).\n\nYou can find more examples each crate's `examples` (ie. [`rig-core/examples`](./rig-core/examples)) directory. More detailed use cases walkthroughs are regularly published on our [Dev.to Blog](https://dev.to/0thtachi) and added to Rig's official documentation [(docs.rig.rs)](http://docs.rig.rs).\n\n## Supported Integrations\n\nVector stores are available as separate companion-crates:\n- MongoDB: [`rig-mongodb`](https://github.com/0xPlaygrounds/rig/tree/main/rig-mongodb)\n- LanceDB: [`rig-lancedb`](https://github.com/0xPlaygrounds/rig/tree/main/rig-lancedb)\n- Neo4j: [`rig-neo4j`](https://github.com/0xPlaygrounds/rig/tree/main/rig-neo4j)\n- Qdrant: [`rig-qdrant`](https://github.com/0xPlaygrounds/rig/tree/main/rig-qdrant)\n- SQLite: [`rig-sqlite`](https://github.com/0xPlaygrounds/rig/tree/main/rig-sqlite)\n- SurrealDB: [`rig-surrealdb`](https://github.com/0xPlaygrounds/rig/tree/main/rig-surrealdb)\n- Milvus: [`rig-milvus`](https://github.com/0xPlaygrounds/rig/tree/main/rig-milvus)\n- ScyllaDB: [`rig-scylladb`](https://github.com/0xPlaygrounds/rig/tree/main/rig-scylladb)\n- AWS S3Vectors: [`rig-s3vectors`](https://github.com/0xPlaygrounds/rig/tree/main/rig-s3vectors)\n\nThe following providers are available as separate companion-crates:\n- Fastembed: [`rig-fastembed`](https://github.com/0xPlaygrounds/rig/tree/main/rig-fastembed)\n- Eternal AI: [`rig-eternalai`](https://github.com/0xPlaygrounds/rig/tree/main/rig-eternalai)\n\n\n\u003cp align=\"center\"\u003e\n\u003cbr\u003e\n\u003cbr\u003e\n\u003cimg src=\"img/built-by-playgrounds.svg\" alt=\"Build by Playgrounds\" width=\"30%\"\u003e\n\u003c/p\u003e\n","funding_links":[],"categories":["AI Agent Frameworks","Framework Integrations","Rust","Programming","A01_文本生成_文本对话","Agent Integration \u0026 Deployment Tools","Awesome Rust for Machine Learning","🤖 AI Agent Frameworks","LLM Application Frameworks \u0026 Prompting Libraries","\u003ca name=\"Rust\"\u003e\u003c/a\u003eRust","Agent Frameworks","Platforms \u0026 Frameworks"],"sub_categories":["Rust","Rust 🦀","大语言对话模型及数据","AI Application Development","Projects","Self-hosted Agent Frameworks"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F0xPlaygrounds%2Frig","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F0xPlaygrounds%2Frig","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F0xPlaygrounds%2Frig/lists"}