Daily Usage
This guide covers the commands and workflows you’ll use every day once AgentZero is set up. For initial setup, see the Quick Start. For production hardening, see Production Setup. For the full command reference, see CLI Commands.
Getting Started Each Day
Section titled “Getting Started Each Day”Check system health
Section titled “Check system health”agentzero status # quick summaryagentzero daemon status # if running as a daemonagentzero doctor models # verify provider connectivityStart the gateway (if not running as a service)
Section titled “Start the gateway (if not running as a service)”# Foreground (development)agentzero gateway
# Background daemon (production)agentzero daemon startIf you installed AgentZero as a system service, it starts automatically on boot — skip this step.
Talking to the Agent
Section titled “Talking to the Agent”Send a message
Section titled “Send a message”agentzero agent -m "List all TODO comments in the Rust files"Stream output as it arrives
Section titled “Stream output as it arrives”agentzero agent -m "Summarize the README" --streamOverride the model for a single request
Section titled “Override the model for a single request”agentzero agent -m "Quick question" --model gpt-4o-miniagentzero agent -m "Complex analysis" --model anthropic/claude-sonnet-4-6Use a specific auth profile
Section titled “Use a specific auth profile”agentzero agent -m "hello" --profile work-anthropicUse the gateway API
Section titled “Use the gateway API”If the gateway is running, you can also interact via HTTP:
# Simple chatcurl -X POST https://agent.example.com/api/chat \ -H "Authorization: Bearer $TOKEN" \ -H "Content-Type: application/json" \ -d '{"message": "What files changed today?"}'
# OpenAI-compatible endpoint (works with any OpenAI client library)curl -X POST https://agent.example.com/v1/chat/completions \ -H "Authorization: Bearer $TOKEN" \ -H "Content-Type: application/json" \ -d '{"model": "default", "messages": [{"role": "user", "content": "hello"}]}'Managing Conversations
Section titled “Managing Conversations”View recent memory
Section titled “View recent memory”agentzero memory list # last 50 entriesagentzero memory list --limit 10 # last 10agentzero memory list --offset 50 --limit 25 # paginateLook up a specific entry
Section titled “Look up a specific entry”agentzero memory get # most recentagentzero memory get --key "project" # by prefix matchCheck memory stats
Section titled “Check memory stats”agentzero memory statsConversation branching
Section titled “Conversation branching”agentzero conversation list # list all conversationsagentzero conversation fork # fork current conversation into a new branchagentzero conversation fork --name "explore" # fork with a custom nameagentzero conversation switch <id> # switch to a different conversationForking is useful when you want to explore an alternative direction without losing the current thread.
Clear old conversations
Section titled “Clear old conversations”agentzero memory clear --key "old-session" --yes # by prefixagentzero memory clear --yes # everything (careful!)Configuration
Section titled “Configuration”Inspect current config
Section titled “Inspect current config”agentzero config show # secrets maskedagentzero config show --raw # secrets visibleagentzero config get provider.modelChange settings on the fly
Section titled “Change settings on the fly”agentzero config set provider.model "anthropic/claude-sonnet-4-6"agentzero config set agent.max_tool_iterations 25agentzero config set agent.parallel_tools trueChanges take effect on the next agent invocation. The daemon picks up config changes automatically.
Authentication
Section titled “Authentication”Set up a provider token
Section titled “Set up a provider token”# Interactive (prompts for the key)agentzero auth setup-token --provider openrouter
# Non-interactiveagentzero auth setup-token --provider anthropic --token sk-ant-...Manage multiple profiles
Section titled “Manage multiple profiles”agentzero auth list # all profilesagentzero auth status # active profileagentzero auth use --provider anthropic --profile work # switchagentzero auth logout --provider openrouter # removeOAuth login (for providers that support it)
Section titled “OAuth login (for providers that support it)”agentzero auth login --provider openai-codex # opens browseragentzero auth login --provider anthropic # opens browser (claude.ai)agentzero auth refresh --provider openai-codex # refresh expired tokenagentzero auth refresh --provider anthropic # refresh expired tokenModels and Providers
Section titled “Models and Providers”List providers
Section titled “List providers”agentzero providersBrowse available models
Section titled “Browse available models”agentzero models listagentzero models list --provider anthropicagentzero models refresh --force # update the cacheSwitch default model
Section titled “Switch default model”agentzero models set gpt-4oLocal models
Section titled “Local models”agentzero local discover # scan for Ollama, LM Studio, etc.agentzero local health ollama # check specific provideragentzero models pull llama3.1:8b # pull a model (Ollama)See what’s available
Section titled “See what’s available”agentzero tools list # all registered toolsagentzero tools info read_file # details on a specific toolagentzero tools schema shell # JSON schema for tool inputTools are enabled/disabled via config. Key toggles:
| Tool | Config to enable |
|---|---|
write_file, file_edit | security.write_file.enabled = true |
git_operations | security.enable_git = true |
web_search | web_search.enabled = true |
browser | browser.enabled = true |
mcp__{server}__{tool} | security.mcp.enabled = true + mcp.json |
Scheduled Tasks
Section titled “Scheduled Tasks”Add a recurring task
Section titled “Add a recurring task”# Standard cron formatagentzero cron add --id daily-report \ --schedule "0 9 * * *" \ --command "agentzero agent -m 'Generate daily summary'"
# Every N intervalagentzero cron add-every --id hourly-check \ --schedule "1h" \ --command "agentzero agent -m 'Check system status'"
# One-time future taskagentzero cron once --id reminder \ --schedule "2026-03-05T14:00:00" \ --command "agentzero agent -m 'Meeting reminder'"Manage tasks
Section titled “Manage tasks”agentzero cron listagentzero cron pause --id daily-reportagentzero cron resume --id daily-reportagentzero cron update --id daily-report --schedule "0 10 * * *"agentzero cron remove --id daily-reportMonitoring
Section titled “Monitoring”Health and metrics
Section titled “Health and metrics”curl -s http://127.0.0.1:42617/health # {"status":"ok"}curl -s http://127.0.0.1:42617/metrics # Prometheus formatDaemon status
Section titled “Daemon status”agentzero daemon statusagentzero daemon status --json # PID, uptime, port, hostRuntime traces
Section titled “Runtime traces”agentzero doctor traces # last 20 eventsagentzero doctor traces --limit 5 # last 5agentzero doctor traces --event "tool_call" # filter by typeagentzero doctor traces --contains "error" # search textCost tracking
Section titled “Cost tracking”agentzero cost status # spending summaryagentzero cost status --json # for dashboardsagentzero cost reset # reset countersDaemon logs are at {data_dir}/daemon.log (auto-rotated at 10 MB, 5 files kept):
tail -f ~/.agentzero/daemon.logEmergency Operations
Section titled “Emergency Operations”Stop all agent activity
Section titled “Stop all agent activity”agentzero estop # full stop (kill-all)agentzero estop --level network-kill # cut network onlyagentzero estop --level tool-freeze --tool shell --tool write_file # freeze specific toolsCheck and resume
Section titled “Check and resume”agentzero estop statusagentzero estop resume # resume everythingagentzero estop resume --network # resume network onlyagentzero estop resume --otp 123456 # if OTP requiredChannels (Telegram, Discord, Slack)
Section titled “Channels (Telegram, Discord, Slack)”Set up a channel
Section titled “Set up a channel”agentzero channel add telegram # interactive setupagentzero channel list # show configured channelsagentzero channel doctor # run diagnosticsStart channel listeners
Section titled “Start channel listeners”agentzero channel start # launch all configured channelsRemove a channel
Section titled “Remove a channel”agentzero channel remove telegramUpdates
Section titled “Updates”agentzero update check # check for new versionsagentzero update apply # install latestagentzero update apply --version 0.3.0 # install specific versionagentzero update rollback # roll back if something breaksDebugging
Section titled “Debugging”Increase verbosity
Section titled “Increase verbosity”agentzero -v agent -m "test" # errors onlyagentzero -vv agent -m "test" # infoagentzero -vvv agent -m "test" # debugagentzero -vvvv agent -m "test" # trace (very verbose)JSON output for scripting
Section titled “JSON output for scripting”Every command supports --json:
agentzero daemon status --jsonagentzero memory list --jsonagentzero auth list --jsonagentzero cost status --jsonRun diagnostics
Section titled “Run diagnostics”agentzero doctor models # probe all providersagentzero doctor traces --limit 10 # recent runtime eventsagentzero channel doctor # channel connectivityShell completions
Section titled “Shell completions”# Add to your shell profile for tab completionagentzero completions --shell zsh >> ~/.zshrcagentzero completions --shell bash >> ~/.bashrcagentzero completions --shell fish >> ~/.config/fish/config.fishQuick Reference
Section titled “Quick Reference”| What you want to do | Command |
|---|---|
| Send a message | agentzero agent -m "..." |
| Stream response | agentzero agent -m "..." --stream |
| Check health | agentzero status |
| Start the server | agentzero daemon start |
| Stop the server | agentzero daemon stop |
| View config | agentzero config show |
| Change a setting | agentzero config set key value |
| List tools | agentzero tools list |
| View memory | agentzero memory list |
| Clear memory | agentzero memory clear --yes |
| Switch model | agentzero models set model-name |
| Add auth token | agentzero auth setup-token --provider name |
| Schedule a task | agentzero cron add --id name --schedule "..." --command "..." |
| Emergency stop | agentzero estop |
| Check costs | agentzero cost status |
| View traces | agentzero doctor traces |
| Update AgentZero | agentzero update apply |