Development

The VoiceRun CLI includes tools for interactive debugging and testing your voice agents locally.

Debugging#

Start an interactive debug session with your agent:

vr debug

This pushes your code and opens a real-time WebSocket connection to the debug server. You can interact with your agent through text input or microphone audio.

Options#

FlagDescription
--skip-push, -sSkip pushing code, use the existing deployment
--environment, -eEnvironment to debug (default: debug)
--verbose, -vShow verbose debug output
--outbound, -oStart an outbound phone call instead of a mic session
--to-phone-numberPhone number to call (required with --outbound)
--from-phone-numberCaller ID / originating phone number

Interactive Controls#

  • Enter — Send a text message to the agent
  • Ctrl+C — End the session

Outbound Call Debugging#

Test your agent with a real phone call:

vr debug --outbound --to-phone-number +15551234567 vr debug --outbound --to-phone-number +15551234567 --from-phone-number +15559876543

Skipping the Push#

If your code is already deployed and you just want to start a debug session:

vr debug --skip-push

Testing#

Run tests for your voice agent project:

vr test

This validates your project, installs dependencies, fetches secrets from the specified environment, and runs pytest.

Options#

FlagDescription
--environment, -eEnvironment to fetch secrets from
--verbose, -vRun pytest in verbose mode
--coverage, -cRun with coverage reporting
--skip-installSkip dependency installation

Running Specific Tests#

vr test tests/test_handler.py vr test tests/test_handler.py --verbose --coverage

Passing Arguments to pytest#

Use -- to pass additional arguments directly to pytest:

vr test -- -k "test_greeting" --tb=short

Development Workflow#

A typical development cycle looks like this:

  1. Create a new project with vr init
  2. Write your agent handler in handler.py
  3. Test locally with vr test
  4. Debug interactively with vr debug
  5. Deploy to an environment with vr deploy development
  6. Iterate — make changes, re-test, and re-debug as needed
  7. Ship to production with vr deploy production
clidebugtestdevelopment