UNOFFICIAL CANDIDATE

Use AblitAI with Claude Code.

AblitAI translates Claude Code's Messages requests to the launch model while keeping the credential in the current process environment.

Anthropic does not support routing Claude Code to non-Claude models. This path is unofficial and reference-only. At the current 8,192-token limit, Claude Code 2.1.246 default mode stops before making an API request; --bare reaches AblitAI but receives the disabled tool-call gate, so standard tool-bearing requests are not release-supported. Do not use paid credits yet.

Before you start

1. Install the tested version

PowerShell, macOS, or Linux
node --version
npm --version
npm install --global @anthropic-ai/claude-code@2.1.246
claude --version

2. Download the session settings

The consumer environment subset contains no key. It disables thinking, automatic retries, automatic updates, telemetry, error reporting, and other nonessential traffic for this session.

PowerShell

PowerShell
$settings = Join-Path $HOME ".claude\ablitai.env"
New-Item -ItemType Directory -Force (Split-Path $settings) | Out-Null
if (Test-Path $settings) { throw "$settings exists; review it before replacing it." }
Invoke-WebRequest "https://ablitai.com/configs/claude-code.env.example" -OutFile $settings
Get-Content $settings | ForEach-Object {
  if ($_ -match '^([A-Z0-9_]+)=(.*)$') { Set-Item "Env:$($Matches[1])" $Matches[2] }
}

macOS or Linux

macOS / Linux
settings="$HOME/.claude/ablitai.env"
mkdir -p "$(dirname "$settings")"
test ! -e "$settings" || { echo "$settings exists; review it before replacing it." >&2; exit 1; }
curl --fail --proto '=https' --tlsv1.2 https://ablitai.com/configs/claude-code.env.example -o "$settings"
chmod 600 "$settings"
set -a; . "$settings"; set +a

3. Set the key and clear conflicting providers

PowerShell

PowerShell
"ANTHROPIC_API_KEY", "CLAUDE_CODE_OAUTH_TOKEN", "CLAUDE_CODE_USE_BEDROCK", "CLAUDE_CODE_USE_FOUNDRY", "CLAUDE_CODE_USE_VERTEX" | ForEach-Object { Remove-Item "Env:$_" -ErrorAction SilentlyContinue }
$secret = Read-Host "AblitAI API key" -AsSecureString
$env:ANTHROPIC_AUTH_TOKEN = [System.Net.NetworkCredential]::new("", $secret).Password
Remove-Variable secret

macOS or Linux

macOS / Linux
unset ANTHROPIC_API_KEY CLAUDE_CODE_OAUTH_TOKEN CLAUDE_CODE_USE_BEDROCK CLAUDE_CODE_USE_FOUNDRY CLAUDE_CODE_USE_VERTEX
printf 'AblitAI API key: ' >&2
ablit_stty="$(stty -g)"
trap 'stty "$ablit_stty"' EXIT HUP INT TERM
stty -echo
IFS= read -r ANTHROPIC_AUTH_TOKEN
stty "$ablit_stty"
trap - EXIT HUP INT TERM
unset ablit_stty
printf '\n' >&2
export ANTHROPIC_AUTH_TOKEN

4. Confirm access and credits

Create or import your no-email account, save its offline backup, then open the account page and confirm a positive available balance. A new key starts with zero credits and returns 402; during validation you need a pre-funded private-beta account, and after checkout opens you can add a pack there.

5. Run the closed-gate probe

This --bare probe is expected to return 400 Tool calling is disabled for this deployment. Claude Code still includes tools when the prompt says not to use them. Reaching that exact error proves the reference environment reached AblitAI, but it is not a launch step and does not establish support.

PowerShell
claude --print --bare --model qwen3.8-27b-abliterated `
  --no-session-persistence `
  "Reply with exactly ABLITAI_OK. Do not use tools."

In every new terminal used for this diagnostic, reload the downloaded settings and prompt for ANTHROPIC_AUTH_TOKEN again. Do not start an interactive paid session unless this page is later promoted from reference-only to supported.

macOS / Linux
claude --print --bare --model qwen3.8-27b-abliterated \
  --no-session-persistence \
  'Reply with exactly ABLITAI_OK. Do not use tools.'

Why --bare is the beta default

It avoids hooks, plugin sync, background prefetches, auto-memory, and project instruction discovery. A normal local request carried about 93 KiB of instructions and 26 tool definitions and currently returns Prompt is too long before reaching AblitAI; --bare carried about 4 KiB but still includes tools that Release A rejects. Large repositories and MCP catalogs further increase context use. A larger 32,768-token context is only a future candidate/revalidation plan. Never add --dangerously-skip-permissions; you should review and own every local tool permission.

Known client behavior

Claude Code labels the custom model as unrecognized and may display its own estimated dollar cost or model limits. Those client-side estimates are not AblitAI billing records. Your authoritative balance and token debit are shown on the account page.