agentos) provides a comprehensive command-line interface for managing every aspect of your agent operating system. From spawning agents to configuring security policies, the CLI gives you complete control over your AgentOS deployment.
Installation
Install AgentOS with a single command:iii-engine (dependency) and agentos binary to ~/.local/bin.
Installation Options
Quick Start
Initialize and start AgentOS:Command Groups
The CLI is organized into logical command groups:Agent Commands
Create, list, chat with, and manage agents
Workflow Commands
Create and execute multi-step workflows
Config Commands
Manage configuration and LLM models
Security Commands
Audit trails, approvals, vault, and session management
System Commands
init
Initialize AgentOS configuration and directories.Skip interactive prompts and use defaults
~/.agentos/:
data/- Runtime data storageskills/- Installed skillsagents/- Agent definitionslogs/- System logsstate/- State storage
start
Start the AgentOS engine and all workers.- Engine:
ws://localhost:49134 - HTTP API:
http://localhost:3111 - Streams:
ws://localhost:3112 - Metrics:
http://localhost:9464
stop
Stop all AgentOS workers and the engine.status
Display system status including worker count and uptime.Output status in JSON format
health
Check system health.Output health check in JSON format
doctor
Diagnose system issues and optionally repair them.Output diagnostics in JSON format
Attempt to repair detected issues
- Engine connectivity
- Worker status
- State directory integrity
- Configuration validity
Interactive Commands
chat
Start an interactive chat session with an agent.Agent ID to chat with (defaults to “default”)
exit or quit to end the session.
message
Send a single message to an agent.Agent ID to message
Message text to send
Output response in JSON format
Utility Commands
tui
Launch the terminal UI dashboard (21 screens).- Dashboard, Agents, Chat, Channels, Skills
- Hands, Workflows, Sessions, Approvals, Logs
- Memory, Audit, Security, Peers, Extensions
- Triggers, Templates, Usage, Settings, Wizard
dashboard
Open the web dashboard in your browser.logs
View or stream system logs.Number of log lines to display
Stream logs in real-time (like
tail -f)completion
Generate shell completion scripts.Shell type:
bash, zsh, fish, or powershellonboard
Interactive onboarding wizard.Use defaults and skip interactive prompts
- Directory setup
- API key configuration
- Default model selection
- Initial configuration
reset
Factory reset - clears all AgentOS state.Required flag to confirm reset operation
mcp
Start MCP (Model Context Protocol) server mode.Getting Help
Get help for any command:Environment Variables
Override the default API base URL
Anthropic API key for Claude models
OpenAI API key for GPT models
Next Steps
Agent Commands
Learn how to create and manage agents
Security Commands
Set up audit trails and security policies
Configuration
Configure API keys and model settings
Workflows
Create multi-step automated workflows