Claude CLI

Anthropic's Claude CLI provides access to the Claude family of models, which perform well at reasoning, code analysis, and structured output generation.

Setup

  1. Install the CLI: Follow the official Anthropic documentationarrow-up-right.

    npm install -g @anthropic-ai/claude-code
  2. Authenticate: Either set the environment variable or run login:

    export ANTHROPIC_API_KEY="sk-ant-..."
    # or
    claude login
  3. Verify it works: Test in your terminal:

    claude "hello"
  4. Configure in Burp: Open Burp AI Agent → Settings → AI Backend and set:

Setting
Value

Preferred Backend

Claude CLI (select from dropdown)

Claude CLI Command

claude (or the full path, e.g., /usr/local/bin/claude)

To specify a model, include the flag in the command field:

Setting
Value

Claude CLI Command

claude --model sonnet

Troubleshooting

  • "command not found": Ensure claude is installed and in your system PATH.

  • Authentication errors: Verify your ANTHROPIC_API_KEY is set correctly, or re-authenticate with claude login.

  • Empty responses: Check the Burp extension output tab for error details. The model name may be incorrect.

Last updated