adk-cli
Command-line launcher for Rust Agent Development Kit (ADK-Rust) agents.
Overview
adk-cli provides command-line tools for the Rust Agent Development Kit (ADK-Rust):
- Launcher - Interactive REPL for agent conversations
- Server Mode - HTTP server with web UI
- Session Management - Automatic session handling
- Telemetry - Integrated logging and tracing
Installation
[]
= "0.1.8"
Or use the meta-crate:
[]
= { = "0.1.8", = ["cli"] }
Quick Start
Interactive Mode
use Launcher;
use Arc;
async
Server Mode
new
.with_server_mode
.run
.await?;
// Open http://localhost:8080 for web UI
Custom Configuration
new
.with_user_id
.with_session_id
.with_artifact_service
.run
.await?;
CLI Commands
When running in interactive mode:
| Command | Description |
|---|---|
| Type message | Send to agent |
/quit or /exit |
Exit REPL |
/clear |
Clear conversation |
| Ctrl+C | Interrupt |
Environment Variables
# Logging level
RUST_LOG=info
# API key (for Gemini)
GOOGLE_API_KEY=your-key
Features
- Colored output with streaming
- History support (arrow keys)
- Graceful shutdown
- Error recovery
Binary Installation
The adk binary is also available:
# Run your agent
Related Crates
- adk-rust - Meta-crate with all components
- adk-server - HTTP server
- adk-runner - Execution runtime
License
Apache-2.0
Part of ADK-Rust
This crate is part of the ADK-Rust framework for building AI agents in Rust.