Skip to main content

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 (from agent/ 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:
This means:
  • 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:
No rebuild needed between edits!

Requirements

  • Agent must be initialized - Run sb0 init first
  • 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

Solution:

Not in Agent Directory

Solution:

Debug Mode

Enable debug logs to see internal operations:
This shows:
  • Logger output from your handler
  • Internal sb0-runner messages
  • Print statements (captured as DEBUG logs)

Next Steps