ldclabs/anda
🤖 An AI agent framework built with Rust.
Anda – A Rust Framework for Composable AI Agent Runtimes
What it is
- A Rust library that helps you build AI agents that can combine language models, tools, memory, and even other agents into a single, controllable runtime.
- Emphasises type‑safe composition, asynchronous execution, and fine‑grained runtime control.
Core ideas
- Composable agents & tools – Define agents and tools via stable traits; plug them together without hard‑coding the workflow.
- Model routing – Tag model instances (
primary,pro,flash,lite) and let the engine automatically pick the right one for a request. - Runtime orchestration –
CompletionRunnermanages the whole turn: model calls, tool invocations, usage accounting, cancellation, and hand‑offs for long sessions. - Scoped execution context –
BaseCtx/AgentCtxgive each agent its own isolated state, cache, HTTP client, and cancellation token. - Extensible memory & skills – Optional modules add conversation storage, KIP‑based memory tools, filesystem access, shell execution, notes, todos, and file‑backed skill catalogs.
- Discovery‑aware tool bundles – Agents can query tool groups (
tools_groups) and load only the schemas they need (tools_select).
Project layout
anda_cli– CLI to start and interact with an engine.anda_core– Core traits, types, and contracts that developers implement.anda_engine– The runtime: orchestration, contexts, model adapters, extensions.anda_engine_server– HTTP server exposing one or more engines.anda_web3_client– Web3 client for environments without a trusted execution environment.
How to get started
- Clone the repo and run
cargo build. - Use
anda_clito launch a server:anda_cli serve --config my_engine.toml. - Implement custom agents/tools by implementing the traits in
anda_coreand register them with the engine. - Interact via the HTTP API or the CLI to send prompts, invoke tools, or manage memory.
Who might use it
- Developers building personal assistants, chat‑bots, or autonomous agents that need to call external tools.
- Teams that want a Rust‑native alternative to Python‑based agent frameworks, with strong type safety and async performance.
- Projects that require persistent memory or knowledge‑graph integration (via the KIP protocol).
Related products
- Anda Brain – A persistent memory and cognition service built on top of this framework.
- Anda Bot – A ready‑made personal AI assistant using the same runtime.
License
- MIT License (© 2026 LDC Labs).
Anda is a genuine, actively maintained open‑source project aimed at developers who need a robust, composable runtime for AI agents in Rust.
Related
- Project
- Project
- Project
- Project
- Project