Skip to content

Latest commit

 

History

History
64 lines (45 loc) · 1.63 KB

File metadata and controls

64 lines (45 loc) · 1.63 KB

Providers

Default provider is openai with gpt-5.4.

OpenAI (default)

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/v1

Anthropic

export ANTHROPIC_API_KEY=sk-ant-...
bad run --goal "..." --url https://... --provider anthropic --model claude-sonnet-4-6

Codex CLI

Uses 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 login auth or OPENAI_API_KEY fallback.
  • CODEX_CLI_PATH overrides the binary path.
  • CODEX_ALLOW_NPX=0 disables npx fallback.

Claude Code

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 login auth or ANTHROPIC_API_KEY fallback.
  • CLAUDE_CODE_CLI_PATH overrides the binary path.
  • Defaults to sonnet if no model specified.

Sandbox Backend

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 codex or claude-code to compare backends.