Docs
API referenceSign in

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.

Shell environment (macOS / Linux)
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
PowerShell (Windows)
$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.

Do not append /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.

Configuration examples were checked against the linked official documentation on November 1, 2026. Client versions and features vary; these guides do not certify every client release.

Troubleshooting

OpenAI Chat Completions (/v1/chat/completions), Anthropic Messages (/v1/messages), and stateless OpenAI Responses (/v1/responses) are supported. Image input and reasoning effort depend on the selected model. Client web-search features may require a separate service.
StatusWhat to check
400 / 404Check the base URL, exact model ID and protocol path. Do not append the completions path twice to a base-URL field.
401 / 403Check the application API key, its model permissions and whether it has been revoked.
402Check available credit and existing reservations. A reservation can exceed the final charge; use a smaller output limit before retrying.
429Respect Retry-After and reduce concurrent tasks. Do not immediately retry the same request in a loop.