Skip to content

For coding agents

This site publishes machine-readable documentation for coding agents alongside the human pages.

  • /llms.txt is the compact index and is linked in the site header.
  • /llms-full.txt contains the assembled documentation body for retrieval when the index is not enough.

Start with llms.txt, follow only the pages relevant to the task, and prefer canonical reference pages over copied command tables in prompts or project notes.

The installed CLI and running server are authoritative for the active build:

Terminal window
claude-code-proxy models
claude-code-proxy models --full
curl -s http://127.0.0.1:18765/v1/models

Use the compact CLI output for a provider overview. Use --full when a Cursor model alias must be resolved. Do not maintain an exhaustive model list in agent memory because provider catalogs and account access change.

To launch Claude Code through a running local proxy, set:

Terminal window
ANTHROPIC_BASE_URL=http://127.0.0.1:18765
ANTHROPIC_AUTH_TOKEN=unused
ANTHROPIC_MODEL=<routable-model-id>
ANTHROPIC_SMALL_FAST_MODEL=<routable-model-id>
CLAUDE_CODE_DISABLE_NONSTREAMING_FALLBACK=1

ANTHROPIC_* and CLAUDE_CODE_* configure the Claude Code client. CCP_*, PORT, and config.json configure the proxy process. Keep those layers separate when editing settings or debugging a launch.

Use these pages for exact operational details:

For a source checkout, implementation and tests are the final authority when documentation and behavior disagree. Relevant surfaces include src/main.rs, src/config.rs, src/registry.rs, src/server.rs, src/paths.rs, src/providers/, and integration tests under tests/.

  1. Check liveness with curl http://127.0.0.1:18765/healthz.
  2. Check the selected model with claude-code-proxy models.
  3. Check provider credentials with <provider> auth status.
  4. Read the monitor request detail and structured proxy.log.
  5. Read the redacted payload under errors/ for a failed response.
  6. Enable verbose logging or traffic capture only for a focused reproduction.

A source checkout includes ./scripts/debug-proxy, which starts an isolated proxy on a random loopback port and prints every artifact path.

Prompts and traffic captures are sensitive. Traffic captures preserve inbound prompts, tool definitions, tool inputs, tool outputs, translated requests, and stream events. Redacted headers do not make that content safe to publish.
  • Never print, commit, upload, or paste provider credentials, refresh tokens, session cookies, or account identifiers.
  • Treat Claude prompts, source excerpts, tool output, file paths, and traffic captures as user data.
  • Share the smallest redacted error payload that explains the failure.
  • Ask before sending diagnostics to an external service.
  • Keep traffic capture disabled outside a focused debugging session.
  • Delete sensitive temporary captures after the investigation.
  • Do not bind the unauthenticated listener beyond loopback without an access control layer.

Structured logs redact known credential fields, but verbose values and prompts can still contain secrets supplied by the user or tools. Inspect before sharing.