| Crates.io | adk-cli |
| lib.rs | adk-cli |
| version | 0.2.1 |
| created_at | 2025-11-30 14:47:54.237561+00 |
| updated_at | 2026-01-22 03:45:08.950161+00 |
| description | Command-line launcher for Rust Agent Development Kit (ADK-Rust) agents |
| homepage | |
| repository | https://github.com/zavora-ai/adk-rust |
| max_upload_size | |
| id | 1958323 |
| size | 111,692 |
Command-line launcher for Rust Agent Development Kit (ADK-Rust) agents.
adk-cli provides command-line tools for the Rust Agent Development Kit (ADK-Rust):
[dependencies]
adk-cli = "0.2.0"
Or use the meta-crate:
[dependencies]
adk-rust = { version = "0.2.1", features = ["cli"] }
use adk_cli::Launcher;
use std::sync::Arc;
#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
let agent = create_your_agent()?;
// Start interactive REPL
Launcher::new(Arc::new(agent))
.run()
.await?;
Ok(())
}
# Run with serve subcommand
cargo run -- serve --port 8080
# Open http://localhost:8080 for web UI
use adk_cli::Launcher;
use adk_artifact::InMemoryArtifactService;
use adk_core::StreamingMode;
use std::sync::Arc;
Launcher::new(Arc::new(agent))
.app_name("my_app")
.with_artifact_service(Arc::new(InMemoryArtifactService::new()))
.with_streaming_mode(StreamingMode::SSE)
.run()
.await?;
When running in interactive mode:
| Command | Description |
|---|---|
| Type message | Send to agent |
/quit or /exit |
Exit REPL |
/clear |
Clear conversation |
| Ctrl+C | Interrupt |
# Logging level
RUST_LOG=info
# API key (for Gemini)
GOOGLE_API_KEY=your-key
The adk binary is also available:
cargo install adk-cli
# Run your agent
adk --help
Apache-2.0
This crate is part of the ADK-Rust framework for building AI agents in Rust.