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
Single message mode (donβt enter interactive mode). Send one message and exit.
Provider to use (openrouter, anthropic, openai, openai-codex, gemini, etc.). Overrides config default.
Model to use. Overrides config default.
Temperature (0.0 - 2.0). Controls response randomness.
Hardware Options
Attach a peripheral board. Format:
board:pathExample: nucleo-f401re:/dev/ttyACM0Security & Autonomy
Autonomy level for agent execution.Options:
read_only- Agent can only read, no modificationssupervised- Agent requires approval for actionsfull- Agent can execute actions autonomously
Maximum shell/tool actions per hour. Rate limiting for safety.
Agent Behavior
Maximum tool-call iterations per message. Prevents infinite loops.
Maximum conversation history messages to retain in context.
Enable compact context mode (smaller prompts for limited models).
Memory Options
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