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
- Use Claude Code
2.1.246with Node.js 22 or newer; native Windows also requires Git for Windows. - The reference model ID is
qwen3.8-27b-abliterated. - Release A exposes an 8,192-token total context with up to 4,096 output tokens.
- Thinking, images, audio, hosted web search, and standard tool-bearing requests are not available on the text-only release route.
1. Install the tested version
node --version
npm --version
npm install --global @anthropic-ai/claude-code@2.1.246
claude --version2. 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
$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
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 +a3. Set the key and clear conflicting providers
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 secretmacOS or 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_TOKEN4. 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.
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.
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.