Open Source Rust Frameworkv0.16

Build AI AgentsThat Actually Ship

Daimon is a high-performance Rust framework for AI agents. Trait-based plugins, zero-cost abstractions, async streaming, RAG, distributed execution, and multi-agent orchestration -- all compile-time safe.

8Crates
6LLM Providers
5Task Brokers
3Vector Stores

Dead Simple API

From zero to agent
in under 15 lines

No boilerplate. No ceremony. Build an agent, give it tools, and start prompting. Streaming, memory, and hooks are all opt-in.

Read the full guide
main.rs
use daimon::prelude::*;

#[tokio::main]
async fn main() -> Result<(), DaimonError> {
    let agent = Agent::builder()
        .name("assistant")
        .model(OpenAiModel::builder("gpt-4o").build()?)
        .system_prompt("You are a helpful assistant.")
        .build()?;

    let response = agent.prompt("Hello, world!").await?;
    println!("{}", response.text());
    Ok(())
}

Capabilities

Everything you need for production AI

Trait-Based Plugins

Add LLM providers, vector stores, and task brokers by implementing traits. No lock-in, full composability.

Async Streaming

Real-time token streaming with async/await. First-class cancellation, backpressure, and zero-copy design.

RAG & Vector Stores

Built-in retrieval with pgvector, OpenSearch, Qdrant. Semantic search and document ingestion out of the box.

Multi-Agent Orchestration

Supervisor, handoff, agent-as-tool, fork patterns. Chain, Graph, and DAG workflows.

Distributed Execution

Task brokers for Redis, NATS, RabbitMQ, SQS, Pub/Sub, and Service Bus. Scale horizontally.

MCP & A2A Protocols

Model Context Protocol client/server and Agent-to-Agent protocol. Full ecosystem interop.

Guardrails & Middleware

Input/output validation, content policies, regex filters. Composable middleware pipeline.

Cost Tracking & Budgets

Per-token cost tracking, budget limits, streaming cost events. Know exactly what you spend.

Checkpointing & Replay

Save and resume agent runs. Time-travel debugging. Fork agents from any checkpoint.

Integrations

Connect to any LLM provider

OpenAI
Anthropic
AWS Bedrock
Google Gemini
Azure OpenAI
Ollama
View all providers

Ready to build?

Add Daimon to your project and ship your first agent in minutes.

cargo add daimon --features full
Read the Docs