Introduction
The Routa CLI provides a command-line interface for managing multi-agent coordination workflows. Built with Rust, it reuses the same core domain logic (routa-core) and server bootstrap (routa-server) that power the Next.js web UI and Tauri desktop application.
Installation
The CLI is included in the Routa desktop distribution. After installing Routa, therouta command is available in your terminal.
Quick Start
Prompt Mode
Run the full Routa coordinator flow with a single command:Server Mode
Start the Routa HTTP backend server:Global Options
| Option | Description | Default |
|---|---|---|
--db <PATH> | Path to SQLite database file | routa.db |
-p, --prompt <TEXT> | Quick prompt mode (run full coordinator flow) | - |
--workspace-id <ID> | Workspace ID (used with -p) | default |
--provider <NAME> | ACP provider for agent sessions | opencode |
--db option can also be set via the ROUTA_DB_PATH environment variable.
Command Structure
Routa CLI commands are organized into several groups:Core Commands
- agent - Manage agents (list, create, status)
- task - Manage tasks (list, create, update)
- chat - Interactive chat session with agents
- server - Start the HTTP backend server
ACP Management
- acp serve - Run Routa as an ACP server over stdio
- acp install - Install an ACP agent from registry
- acp uninstall - Remove an installed agent
- acp list - List agents from the ACP registry
- acp installed - List locally-installed agents
- acp runtime-status - Show Node.js/uv runtime status
Additional Commands
- workspace - Manage workspaces (list, create)
- skill - Manage skills (list, reload)
- workflow - Run YAML-defined agent workflows
- delegate - Delegate a task to a specialist agent
- rpc - Send raw JSON-RPC requests
Environment Variables
| Variable | Description | Default |
|---|---|---|
ROUTA_DB_PATH | Path to SQLite database | routa.db |
RUST_LOG | Logging level (trace, debug, info, warn, error) | info |
Logging
Configure logging with theRUST_LOG environment variable:
Examples
List all agents in workspace
Create a new task
Interactive chat with DEVELOPER agent
Start server with custom database
Install an ACP agent
Output Format
Most commands output JSON for easy parsing and integration with other tools:Architecture
The CLI architecture mirrors the web application:- routa-core - Domain logic (agents, tasks, orchestration)
- routa-server - HTTP server and API routes
- routa-cli - Command-line interface layer
Next Steps
- Learn about Agent commands
- Explore Task management
- Try Interactive chat
- Configure Server mode