Overview
Thezeroclaw agent command launches an interactive chat session with your configured AI provider. It supports both interactive REPL mode and single-shot message execution.
Basic Usage
Command Syntax
Options
Core Options
string
Single message mode (donβt enter interactive mode). Send one message and exit.
string
Provider to use (openrouter, anthropic, openai, openai-codex, gemini, etc.). Overrides config default.
string
Model to use. Overrides config default.
float
default:"0.7"
Temperature (0.0 - 2.0). Controls response randomness.
Hardware Options
string[]
Attach a peripheral board. Format:
board:pathExample: nucleo-f401re:/dev/ttyACM0Security & Autonomy
enum
Autonomy level for agent execution.Options:
read_only- Agent can only read, no modificationssupervised- Agent requires approval for actionsfull- Agent can execute actions autonomously
integer
Maximum shell/tool actions per hour. Rate limiting for safety.
Agent Behavior
integer
Maximum tool-call iterations per message. Prevents infinite loops.
integer
Maximum conversation history messages to retain in context.
boolean
Enable compact context mode (smaller prompts for limited models).
Memory Options
enum
Memory backend to use.Options:
sqlite- SQLite-based persistent memorymarkdown- Markdown file-based memorylucid- Advanced vector memory backendnone- Disable memory
Examples
Interactive Session
Single Message Mode
Advanced Usage
Interactive Mode
When running without--message, the agent enters interactive mode with these features:
- Persistent conversation history - Context maintained across messages
- Tool execution approval - In supervised mode, prompts before actions
- Multi-turn interactions - Follow-up questions and iterative refinement
- Session memory - Conversation saved to configured memory backend
Interactive Commands
Terminal Output
Interactive Session Example
Single Message Example
Configuration
The agent respects these configuration settings fromconfig.toml:
Exit Codes
0- Success1- General error2- Configuration error130- Interrupted (Ctrl+C)
Related Commands
zeroclaw config- Manage configuration settingszeroclaw gateway- Start webhook gateway for remote accesszeroclaw daemon- Run full autonomous runtime