Claude Code setup
Run Claude Code against UncensoredLabs abliterated models using our Anthropic Messages compatible `/v1/messages` endpoint.
Configure Claude Code
Point Claude Code at UncensoredLabs by setting ANTHROPIC_BASE_URL and ANTHROPIC_API_KEY in your shell environment. Claude Code calls POST /v1/messages with x-api-key authentication, automatic prompt caching metrics, tool calling, and SSE streaming.
export ANTHROPIC_BASE_URL="https://uncensoredlabs.dev"
export ANTHROPIC_API_KEY="ul_your_application_api_key"
export ANTHROPIC_MODEL="deepseek-v4.1-flash-1017-abliterated"
export ANTHROPIC_SMALL_FAST_MODEL="glm-5.3-flash-abliterated"
claude $env:ANTHROPIC_BASE_URL = "https://uncensoredlabs.dev"
$env:ANTHROPIC_API_KEY = "ul_your_application_api_key"
$env:ANTHROPIC_MODEL = "deepseek-v4.1-flash-1017-abliterated"
$env:ANTHROPIC_SMALL_FAST_MODEL = "glm-5.3-flash-abliterated"
claude You can also persist these variables in ~/.claude/settings.json under the env key so every terminal session launches with your preferred abliterated model.
/v1 to ANTHROPIC_BASE_URL; the Anthropic SDK appends /v1/messages automatically. Choose an exact model ID from /models such as deepseek-v4.1-flash-1017-abliterated, glm-5.3-flash-abliterated, glm-5.3-abliterated, or kimi-k3.1-pro-abliterated.Verify the connection
Use an application API key from the dashboard, not your account sign-in key. Keep credentials outside committed configuration.
Start a new session and request a short response. Then ask the client to list files without changing them, and review its tool permissions before a longer task.
Troubleshooting
| Status | What to check |
|---|---|
| 400 / 404 | Check the base URL, exact model ID and protocol path. Do not append the completions path twice to a base-URL field. |
| 401 / 403 | Check the application API key, its model permissions and whether it has been revoked. |
| 402 | Check available credit and existing reservations. A reservation can exceed the final charge; use a smaller output limit before retrying. |
| 429 | Respect Retry-After and reduce concurrent tasks. Do not immediately retry the same request in a loop. |