ADK-Rust
Rust Agent Development Kit (ADK-Rust) — build AI agents in Rust, including autonomous agents that work on their own inside limits you set, with modular components for models, tools, memory, RAG, security, realtime voice, graph workflows, and more.
Stability: Stable — for its own API; each crate it re-exports keeps its own tier. See STABILITY.md.
adk-rust is the umbrella crate: it re-exports the ADK-Rust crates behind feature flags, grouped into four tiers. It is model-agnostic and deployment-agnostic.
Autonomous Agents
3.0 builds agents that pursue a goal over many steps, wake themselves, and keep working while nobody watches:
| Property | What you get |
|---|---|
| Autonomous | Goals that iterate until a check passes and park on a decision; wake-ups on a schedule, a file change, a webhook, a queue message, an approval or a finished run |
| Governed | One tool path for every agent: tool policies, approvals that hold a call across runs, run budgets and spend caps, a kill switch across replicas, an OS sandbox, a signed audit log |
| Durable | Runs that resume after a crash, held calls that survive a restart, and an action ledger that keeps a non-idempotent call from running twice |
| Observable and steerable | OpenTelemetry spans, the spend ledger, the kernel's process table, and messages sent to a running turn |
| Module | Feature | What it holds |
|---|---|---|
adk_rust::harness |
harness (in enterprise and full) |
The governed harness agent: modes, standing approvals, a sandboxed shell, plans and durable goals |
adk_rust::kernel |
harness-kernel (in enterprise and full) |
The agent kernel adk-rust up runs: processes, wake sources, the event bus and the control plane |
adk_rust::surface |
surface (in no tier) |
The surface engine and the web home, over a harness or a kernel |
adk_rust::vision |
vision (in full); vision-local adds the on-device backends |
Local-first perception: regions in source pixels, verified weights, the egress gate, cloud describers and sam-3.1; with harness, the vision pack |
The autonomy feature (in enterprise and full) enables the harness and the kernel together
with durable and background runs, cron and webhook wake-ups, the approvals service, SQLite
stores and the signed audit log. Build an autonomous agent
takes one agent from a scaffold to running on its own.
Supported Providers
| Provider | Feature | Catalog default model |
|---|---|---|
| Gemini | gemini (in every tier) |
gemini-3.8-flash |
| OpenAI | openai |
gpt-6.1-sol |
| Anthropic | anthropic |
claude-sonnet-5-5 |
| DeepSeek | deepseek |
deepseek-flash |
| Groq | groq |
openai/gpt-oss-120b |
| Ollama | ollama |
qwen3.5 |
| OpenRouter | openrouter |
qwen/qwen3.7-max |
| OpenCode Go and Zen | opencode |
deepseek-v4.1-flash |
| Meta Muse | muse |
muse-spark-1.3 |
| Amazon Bedrock | bedrock |
account- and region-specific |
| Azure AI Inference | azure-ai |
endpoint-specific |
| mistral.rs, in process | mistralrs (in no tier) |
the local model you load |
| Fireworks, Together, Mistral, Perplexity, Cerebras, SambaNova, xAI, OrcaRouter, API Route, and other OpenAI-compatible APIs | openai (OpenAICompatibleConfig presets) |
per preset |
The catalog defaults are adk_rust::model::catalog constants; every client takes any model ID.
Quick Start
1. Create a new project:
&&
2. Add dependencies:
[]
= "3.0.0"
= { = "1", = ["full"] }
= "0.15"
3. Set your API key:
4. Write src/main.rs:
use Launcher;
use *;
async
5. Run:
With the default minimal tier, Launcher is adk_runner::Launcher, a console loop. With the cli feature it is adk_cli::Launcher, which also serves the REST API (cargo run -- serve --port 8080, on 127.0.0.1); the web home is served by adk-rust serve and adk-rust up.
One Call — adk_rust::run()
use *;
async
run() checks ANTHROPIC_API_KEY → OPENAI_API_KEY → GOOGLE_API_KEY and builds the agent on the catalog default model of the first provider whose feature is compiled. provider_from_env() returns that model on its own, and first honors the Vertex opt-in flags GOOGLE_GENAI_USE_ENTERPRISE / GOOGLE_GENAI_USE_VERTEXAI (with gemini-vertex). The default minimal tier compiles only Gemini; add openai or anthropic to widen detection.
Adding Tools
use *;
use GoogleSearchTool;
tools is in the standard tier and above. Tool calls run through the governed path — tool policy, guardrails, and confirmation — before execute(); see Tool Authorization.
Workflow and Multi-Agent Systems
use *;
Graph Workflows
use *;
use json;
adk-graph has no default features, so each capability is forwarded from this crate:
| Feature | Enables | In full |
|---|---|---|
graph-functional |
#[entrypoint]/#[task] functional API |
yes |
graph-node-cache |
node result caching with content keys | yes |
graph-delta |
delta checkpoints | yes |
graph-time-travel |
step, fork, and state history | yes |
graph-yaml |
workflows from YAML or JSON files (graph::definition) |
yes |
graph-sqlite |
the SQLite checkpointer | no — needs a database |
graph-redis-cache |
Redis-backed node cache | no — needs a server |
graph-postgres, graph-redis, graph-mongodb, graph-neo4j, graph-firestore |
shared-database checkpointers | no — need a server |
Realtime Voice Agents
This example needs the openai-realtime feature, which no tier includes:
use *;
use OpenAIRealtimeModel;
use ;
realtime is in the enterprise tier and enables adk-realtime without a provider transport. Each transport is its own feature: openai-realtime (OpenAI WebSocket), gemini-live (Gemini Live WebSocket), vertex-live, livekit, and openai-webrtc:
[]
= { = "3.0.0", = ["openai-realtime"] }
See the adk-realtime README.
Declarative Security
use ;
use *;
use FunctionTool;
use ;
async
adk-auth also provides role-based access control, SSO/OIDC token validation, audit sinks, and a signed audit log; the runtime adds tool policies, a kill switch, run budgets, a spend ledger, and an action ledger in adk-core.
Feature Tiers
# Minimal (default) — agents, models, Gemini, runner, sessions
= "3.0.0"
# Standard — minimal + OpenAI, Anthropic (and the adk-anthropic client), skills, graph,
# auth, server, eval, guardrail, plugin, artifacts, tools, memory, telemetry, computer-use
= { = "3.0.0", = ["standard"] }
# Enterprise — standard + realtime, browser, rag, payments, awp, and autonomy: the
# harness, its kernel, durable and background runs, approvals and signed audit
= { = "3.0.0", = ["enterprise"] }
# Autonomy alone — an agent that runs unattended, on any tier
= { = "3.0.0", = ["minimal", "anthropic", "autonomy", "cli"] }
# Full — enterprise + audio, code, sandbox, code-tools, the AWP website, vision, and the
# graph-functional, graph-node-cache, graph-delta, graph-time-travel, and graph-yaml capabilities
= { = "3.0.0", = ["full"] }
# Gemini Enterprise Agent Platform — every Vertex/EAP integration except realtime
# transports; composable with any tier. Deploy-time tooling is host-side and not included.
= { = "3.0.0", = ["standard", "gemini-agent-platform"] }
# gemini-agent-platform + the Vertex AI Live API (pulls in the realtime stack)
= { = "3.0.0", = ["standard", "gemini-agent-platform-full"] }
# Custom selection
= { = "3.0.0", = false, = ["agents", "gemini", "runner", "sessions", "tools"] }
Features outside the tiers, composable with any of them:
| Group | Features |
|---|---|
| Providers | deepseek, groq, muse, ollama, openrouter, opencode, bedrock, azure-ai, gemini-vertex, gemini-interactions, mistralrs |
| CLI | cli (with DeepSeek and Groq), cli-openai, cli-anthropic, cli-ollama, cli-mistralrs, cli-all-providers, cli-telemetry-otlp, optimize |
| Production backends (need infrastructure) | postgres-session, redis-session, mongodb-session, firestore-session, neo4j-session, vertex-session, sqlite-memory, database-memory, redis-memory, mongodb-memory, neo4j-memory, vertex-memory, auth-bridge |
| Managed agents | managed-runtime (with the gemini, openai, anthropic, and ollama features for its model resolver), enterprise-client |
| Server | yaml-agent, agent-engine, vertex-remote-engine; server (in standard) includes A2A and the agent registry |
| Tools | mcp, mcp-http, mcp-sampling, memory-tools, slack, bigquery, spanner, example-store, vertex-agent-registry, code-tools, code-embedded-js, code-embedded-python, code-docker, codeact, codeact-monty |
| Telemetry | telemetry-otlp, telemetry-sqlite, gcp-telemetry, record-payloads |
| Realtime and audio | openai-realtime, gemini-live, vertex-live, livekit, openai-webrtc, video-avatar, audio-* (audio-onnx covers Whisper, Distil-Whisper, Moonshine and Chatterbox), kokoro, qwen3-tts, all-onnx |
| Harness packs | harness-browser, harness-computer-use, harness-payments, harness-voice, harness-managed, harness-web, harness-mcp, harness-hooks, harness-encrypted, harness-memory-local |
| Surfaces | surface — the surface engine and the web home |
| Vision | vision — adk-vision with the fetcher, cloud describers, sam-3.1 and the privacy guardrail (in full); vision-local — the on-device backends on ONNX Runtime and Candle (in no tier) |
| Graph actions | action, action-http (with RSS), action-trigger, action-full |
| Other | acp, skills-progressive-disclosure, sandbox-workspace, sandbox-docker, aws-secrets, azure-keyvault, gcp-secrets, gcp-model-armor, gcs-artifacts, vertex-sandbox, vertex-eval, vertex-rag, agent-retrieval, vertex-skill-registry, gcp-deploy |
adk-rust/Cargo.toml is the authoritative list.
Modules
Each enabled crate is re-exported as a module: agent, model, tool, skill, session, artifact, memory, runner, server, telemetry, graph, realtime, browser, eval, guardrail, auth, payment, plugin, audio, rag, code, sandbox, computer_use, managed, harness, kernel, surface, awp, acp, website, site, vision, anthropic_client, deploy, and others. adk_core is re-exported at the crate root, and adk_rust::prelude brings the common types into scope.
Changes in 3.0
- The server binds
127.0.0.1and refuses unlisted hosts and cross-origin requests by default. - Tool calls run through one governed path: tool policy, guardrails, and confirmation bound to the acting agent and the tool's origin.
- Run budgets, a spend ledger, an action ledger, durable runs, approvals, and audit records are part of the runtime, with stores on every session backend.
standardincludescomputer-use; provider features also enableadk-managed's model resolver whenmanaged-runtimeis on.autonomy(inenterpriseandfull) turns on everything an agent needs to run unattended: the harness and its kernel, durable and background runs with cron and webhook wake-ups, the approvals service, SQLite stores, and the signed audit log.- The 19 features that only aliased a sibling are removed:
cerebras,fireworks,mistral,perplexity,sambanovaandtogether(useopenai);whisper-onnx,distil-whisper,moonshineandchatterbox(useaudio-onnx);action-code,action-dbandaction-email(useaction);action-rss(useaction-http);a2aandagent-registry(useserver);cli-deepseekandcli-groq(usecli); andpersonas(useeval). - New crates:
adk-harness(the governed harness agent),adk-kernel(the agent kernel behindadk-rust up),adk-surface(the web home, terminal, phone and chat surfaces),adk-site,adk-driversandadk-website(the AWP website product), andadk-vision(local-first perception,visionandvision-local).enterpriseandfullinclude the harness and the kernel throughautonomy,fullalso the website and vision;surfaceandvision-localare opt-in.
See What's new in 3.0, the 2.x to 3.0 migration guide and the changelog.
Documentation
- API Reference
- Official Guides
- Examples — the adk-playground repository
License
Apache-2.0