Documentation Index
Fetch the complete documentation index at: https://docs.sb0.dev/llms.txt
Use this file to discover all available pages before exploring further.
Command
Description
Runs your agent handler locally for quick testing. Executes directly in your Python environment without Docker, enabling fast iteration during development.Usage
Test with a single prompt (fromagent/ directory):
Expected Output
Options
--prompt <text>
The prompt to send to your agent.
--session-id <id>
Session identifier for conversation continuity. Use the same session ID to maintain context across multiple queries.
--extras <json>
Additional parameters passed to your handler as kwargs. Must be valid JSON.
How It Works
sb0 run executes your agent handler directly using:
- No Docker required - Runs in your local Python environment
- Fast iteration - No build step needed
- Instant feedback - See changes immediately after editing code
Development Workflow
Rapid iteration cycle:Requirements
- Agent must be initialized - Run
sb0 initfirst - ANTHROPIC_API_KEY must be set - Export in your environment
- Must run from agent directory - The directory containing
agent.config.yaml
Common Issues
API Key Not Set
Not in Agent Directory
Debug Mode
Enable debug logs to see internal operations:- Logger output from your handler
- Internal sb0-runner messages
- Print statements (captured as DEBUG logs)