Prismatic API/Docs/Claude Code CLI
Documentation

Claude Code CLI

Route Claude Code through Prismatic with the Anthropic-compatible Messages endpoint.

Configuration

  • Set ANTHROPIC_AUTH_TOKEN to your Prismatic API key.
  • Set ANTHROPIC_BASE_URL to https://api.prismaticapi.com because the client appends /v1/messages.
  • Set default model IDs with ANTHROPIC_DEFAULT_SONNET_MODEL and ANTHROPIC_DEFAULT_HAIKU_MODEL.
  • Increase API_TIMEOUT_MS for long tool-heavy sessions.

Example

settings.json
{
  "env": {
    "ANTHROPIC_AUTH_TOKEN": "pa_YOUR_KEY",
    "ANTHROPIC_BASE_URL": "https://api.prismaticapi.com",
    "ANTHROPIC_DEFAULT_SONNET_MODEL": "claude-sonnet-4-6",
    "ANTHROPIC_DEFAULT_HAIKU_MODEL": "claude-haiku-4-5",
    "API_TIMEOUT_MS": "3000000"
  }
}

Recommended models

  • claude-sonnet-4-6 — strong model for reasoning, refactors and coding agents.
  • claude-haiku-4-5 — fast option for autocomplete, small questions and lightweight tasks.
  • deepseek-v3-2 or another public ID — alternative based on your active catalog and plan.

Troubleshooting

Authentication error

Check that the API key has no extra spaces and has not been revoked in the dashboard.

Model rejected

Use a public model ID returned by GET /v1/models; do not use labels or aliases.

Connection issue

Confirm the configured base URL is exactly the one shown above and that your network allows HTTPS to api.prismaticapi.com.

Notes

  • Claude Code uses /v1/messages, not /v1/chat/completions.
  • Use model IDs returned by GET /v1/models.
  • If authentication fails, confirm the key has not been revoked in the dashboard.