For Rust devs

Native Rust. No FFI tax.

The Rust crate is the engine. Python and TS bindings are wrappers; Rust users get the runtime direct, with zero abstraction cost.

Install

cargo add agentmatic
# or in Cargo.toml:
# agentmatic = "0.1"

Five-line agent

use agentmatic::prelude::*;

#[tokio::main]
async fn main() -> anyhow::Result<()> {
    let agent = Agent::builder("math-helper")
        .llm(OpenAI::from_env()?)
        .tools(vec![calculator_tool()])
        .build()?;
    println!("{}", agent.invoke("What is 42 * 17?").await?);
    Ok(())
}

What's different from other Rust LLM crates

Workspace structure

agentmatic = { version = "0.1", features = ["openai", "anthropic", "mcp", "postgres"] }
# Or pull individual crates:
# agentmatic-core         — Pregel runtime
# agentmatic-agent        — Builder + prebuilt patterns
# agentmatic-llm          — Provider abstraction
# agentmatic-tools        — @tool + MCP client
# agentmatic-memory       — Conversation memory
# agentmatic-vectorstore  — Vector store abstraction

What we ship for Rust specifically

Ship your next agent in minutes, not weeks.

MIT licensed. Drop-in for LangGraph. Native SDKs in 5 languages. Battle-tested resilience primitives in the box.