Default provider is openai with gpt-5.4.
export OPENAI_API_KEY=sk-...
bad run --goal "..." --url https://...Custom endpoint (LiteLLM, Azure, etc.):
bad run --goal "..." --url https://... --base-url http://localhost:4000/v1export ANTHROPIC_API_KEY=sk-ant-...
bad run --goal "..." --url https://... --provider anthropic --model claude-sonnet-4-6Uses AI SDK v6 via ai-sdk-provider-codex-cli. Runs the local codex binary instead of making HTTP calls.
codex login
bad run --goal "..." --url https://... --provider codex-cli --model gpt-5- Uses
codex loginauth orOPENAI_API_KEYfallback. CODEX_CLI_PATHoverrides the binary path.CODEX_ALLOW_NPX=0disables npx fallback.
Uses the local claude CLI via ai-sdk-provider-claude-code. Useful for subscription/OAuth auth.
claude login
bad run --goal "..." --url https://... --provider claude-code- Uses
claude loginauth orANTHROPIC_API_KEYfallback. CLAUDE_CODE_CLI_PATHoverrides the binary path.- Defaults to
sonnetif no model specified.
Native sidecar-runtime path for agent-dev-container environments.
bad run --goal "..." --url https://... \
--provider sandbox-backend \
--sandbox-backend-type claude-code \
--model sonnet- Expects local sidecar API at
http://127.0.0.1:$SIDECAR_PORT. - Auth via
SIDECAR_AUTH_TOKEN/SANDBOX_SIDECAR_AUTH_TOKEN. - Use
--sandbox-backend-type codexorclaude-codeto compare backends.