CLI Reference
PocketPaw ships with a full set of CLI commands for managing your local AI agent without the web dashboard. Every command supports --json for scripting and automation.
Starting PocketPaw
# Web dashboard (default, opens browser)pocketpaw
# API-only server (no dashboard UI)pocketpaw serve
# Development mode (auto-reload on file changes)pocketpaw --dev
# Custom host and portpocketpaw --host 0.0.0.0 --port 9000Headless Channel Modes
Run PocketPaw as a headless bot on one or more channels:
pocketpaw --telegram # Telegram-only modepocketpaw --discord # Discord botpocketpaw --slack # Slack bot (Socket Mode)pocketpaw --whatsapp # WhatsApp webhook serverpocketpaw --discord --slack # Multiple channels simultaneouslyAgent Status
# Show current agent statuspocketpaw status
# JSON output for scriptingpocketpaw status --json
# Live monitoring (refresh every 2 seconds)pocketpaw status --watch
# Custom refresh intervalpocketpaw status --watch 5Health and Diagnostics
# Quick health check (startup checks only, no network calls)pocketpaw health
# Full diagnostics (config + connectivity + version check)pocketpaw doctor
# JSON outputpocketpaw health --jsonpocketpaw doctor --jsonhealth runs fast, offline checks (config exists, API key format, disk space, etc.). doctor additionally tests network connectivity to your configured LLM provider.
Channels
# List all channels with configured/autostart statuspocketpaw channels
# Start a channel adapter (requires a running PocketPaw instance)pocketpaw channels start discord
# Stop a channel adapterpocketpaw channels stop slack
# JSON outputpocketpaw channels --jsonchannels start and channels stop communicate with a running PocketPaw instance via its REST API. The dashboard or pocketpaw serve must be running first.
Skills
# List all available skillspocketpaw skills
# JSON outputpocketpaw skills --jsonSkills are loaded from three directories (in priority order):
~/.agents/skills/(AgentSkills ecosystem)~/.claude/skills/(Claude Code / SDK standard)~/.pocketpaw/skills/(PocketPaw-specific)
Sessions
# List recent chat sessionspocketpaw sessions
# Search session contentpocketpaw sessions search "deployment script"
# Delete a sessionpocketpaw sessions delete <session-key>
# Limit resultspocketpaw sessions --limit 50
# JSON outputpocketpaw sessions --jsonMemory
# Show memory stats (long-term entries, daily notes, session count)pocketpaw memory
# Search long-term memoriespocketpaw memory search "API integration"
# Limit search resultspocketpaw memory search "project" --limit 20
# JSON outputpocketpaw memory --jsonConfiguration
# Show current config (sensitive values masked)pocketpaw config
# Set a config valuepocketpaw config set agent_backend openai_agentspocketpaw config set web_port 9000
# Validate API keys and settingspocketpaw config validate
# Print config file pathpocketpaw config path
# JSON outputpocketpaw config --jsonpocketpaw config validate --jsonConfig values are automatically coerced to the correct type (boolean, integer, list, etc.).
Errors
# Show last 20 errorspocketpaw errors
# Show more errorspocketpaw errors --limit 50
# Filter errorspocketpaw errors --search "timeout"
# JSON outputpocketpaw errors --jsonErrors are sourced from the health engine’s persistent error store.
Audit Logs
# Show last 50 audit log entriespocketpaw logs
# Tail the audit log in real timepocketpaw logs --follow
# Show fewer entriespocketpaw logs --limit 10
# JSON outputpocketpaw logs --jsonThe audit log is stored at ~/.pocketpaw/audit.jsonl.
Provider Diagnostics
# Test Ollama connectivity, model availability, and tool callingpocketpaw --check-ollama
# Test OpenAI-compatible endpointpocketpaw --check-openai-compatibleSecurity
# Run security auditpocketpaw --security-audit
# Auto-fix issues found by auditpocketpaw --security-audit --fix
# Scan memory files for PIIpocketpaw --pii-scanUpdate
# Check for updates and install via uvpocketpaw updateGlobal Flags
| Flag | Description |
|---|---|
--json | Output as JSON (works with most subcommands) |
--limit N | Limit number of results |
--follow | Tail mode (for logs) |
--watch [N] | Live refresh every N seconds (for status, default: 2) |
--host HOST | Bind web server to specific host |
--port PORT | Web server port (default: 8888) |
--dev | Development mode with auto-reload |
--version | Show version |