New modelKimi K3.1 Pro Abliterated is now available. See the model

Use abliterated models
in Claude Code

Claude Code can run on Oathbreaker’s abliterated GLM-5.3, DeepSeek and Kimi models through the Anthropic Messages endpoint, billed per token from your prepaid credit. Set ANTHROPIC_BASE_URL to https://oathbreaker.ai, ANTHROPIC_AUTH_TOKEN to your Oathbreaker key and ANTHROPIC_MODEL to a model such as oathbreaker-glm-5.3, then run claude.

Before you start

  1. An Oathbreaker API key. Create an account with email or Google, add at least $5 of credit, then create a key under API keys in your console. The key starts with ob_sk_ and is shown once.
  2. Claude Code installed. Follow the official Claude Code install guide, then check it with claude --version.
  3. OATHBREAKER_API_KEY set in your terminal. In Bash or Zsh, run the command below, paste your key at the hidden prompt and press Enter. Start Claude Code from the same terminal.
printf 'Oathbreaker API key: '; read -rs OATHBREAKER_API_KEY; export OATHBREAKER_API_KEY; printf '\n'

The key stays in this terminal session; it is not written to your shell history.

Using PowerShell?

In PowerShell 7.2 or later, use this masked prompt instead, then start Claude Code from the same PowerShell session.

$env:OATHBREAKER_API_KEY = Read-Host -MaskInput "Oathbreaker API key"

The key stays in this PowerShell session.

Set up Claude Code

In the terminal where you set your key, run these lines. They send every Claude Code request to Oathbreaker: the main model, the opus and sonnet aliases, and background tasks, which use the haiku alias (oathbreaker-glm-5.3-flash here). The last line makes Claude Code compact a long conversation before it reaches the context limit.

export ANTHROPIC_BASE_URL=https://oathbreaker.ai export ANTHROPIC_AUTH_TOKEN="$OATHBREAKER_API_KEY" export ANTHROPIC_MODEL=oathbreaker-glm-5.3 export ANTHROPIC_DEFAULT_OPUS_MODEL=oathbreaker-glm-5.3 export ANTHROPIC_DEFAULT_SONNET_MODEL=oathbreaker-glm-5.3 export ANTHROPIC_DEFAULT_HAIKU_MODEL=oathbreaker-glm-5.3-flash export CLAUDE_CODE_AUTO_COMPACT_WINDOW=100000

Set OATHBREAKER_API_KEY first: these lines copy it when they run.

Using PowerShell?

Run these lines in the PowerShell session where you set your key.

$env:ANTHROPIC_BASE_URL = "https://oathbreaker.ai" $env:ANTHROPIC_AUTH_TOKEN = $env:OATHBREAKER_API_KEY $env:ANTHROPIC_MODEL = "oathbreaker-glm-5.3" $env:ANTHROPIC_DEFAULT_OPUS_MODEL = "oathbreaker-glm-5.3" $env:ANTHROPIC_DEFAULT_SONNET_MODEL = "oathbreaker-glm-5.3" $env:ANTHROPIC_DEFAULT_HAIKU_MODEL = "oathbreaker-glm-5.3-flash" $env:CLAUDE_CODE_AUTO_COMPACT_WINDOW = "100000"

Set OATHBREAKER_API_KEY first: these lines copy it when they run.

Then run claude from your project folder. Inside Claude Code, /status should show the Oathbreaker base URL.

The base URL has no /v1 because Claude Code adds /v1/messages itself. That is Oathbreaker’s Anthropic Messages endpoint, with the same models, prices and limits as Chat Completions. Claude Code sends the key as a bearer token; you do not need an Anthropic account or key for these requests.

Pick a model

Use GLM-5.3 for main work. Use GLM-5.3 Flash or DeepSeek Fast for background and cheap tasks. Switch to Kimi K3.1 Pro for the hardest problems; it costs the most per token. Every model uses the same key and credit balance, so you can switch at any time.

USD per one million tokens, pay as you go
ModelBest forInputCached inputOutputOutput limit (tokens)
GLM-5.3 Abliteratedoathbreaker-glm-5.3Main work. The default model, for everyday coding and agent tasks.$3.00$0.30$4.0032,768
GLM-5.3 Flash Abliteratedoathbreaker-glm-5.3-flashBackground and cheap tasks.$0.40$0.05$1.2032,768
DeepSeek V4.1 Flash Abliteratedoathbreaker-deepseek-v4.1-flashCheap tasks.$0.40$0.05$1.2032,768
DeepSeek V4.1 Flash Abliterated, Fastoathbreaker-deepseek-v4.1-flash-fastBackground and cheap tasks, on a route meant for quicker responses.$0.50$0.05$1.5032,768
Kimi K3.1 Pro Abliteratedoathbreaker-kimi-k3.1-proThe hardest problems. The largest model here, and the highest price.$4.50$0.45$9.0024,576

Members pay 25% less on every model except Kimi K3.1 Pro Abliterated, which has one price for everyone. Cached input is billed at its lower rate only when a cache hit is reported. Output limits and output prices include reasoning tokens. See pricing and billing details.

Switch models in Claude Code

To change the main model, set ANTHROPIC_MODEL, ANTHROPIC_DEFAULT_OPUS_MODEL and ANTHROPIC_DEFAULT_SONNET_MODEL to another identifier from the table. ANTHROPIC_DEFAULT_HAIKU_MODEL picks the model for background tasks. To try another model for one session, start Claude Code with --model:

claude --model oathbreaker-kimi-k3.1-pro

Applies to this session only.

Check it works

From your project folder, in the terminal where you set the key, send one short request. It costs a little credit: the agent sends its instructions and tool definitions with every request.

claude -p "Reply with OK"

-p prints one reply and exits.

Expected reply: OK. Your console’s Usage tab then shows the request.

Limits and fixes

Claude Code’s tools, such as file edits and shell commands, run on your computer as usual: the model asks for them with tool calls and Claude Code runs them. Two features depend on hosted capabilities these models do not have.

  • No web search. Claude Code’s web search is a hosted tool, so it is left out of requests.
  • No image input. Images and documents you attach are replaced with a short note, because the models read text only.
What you seeWhat it means and what to do
HTTP 400: prompt is too long: This request exceeds the maximum context length…The conversation, tool output and requested output no longer fit the model’s context (131,072 tokens on oathbreaker-glm-5.3). No inference was sent, so nothing was charged. Claude Code reads this as a signal to compact; if it keeps failing, run /compact or start fresh with /clear. oathbreaker-deepseek-v4.1-flash, oathbreaker-deepseek-v4.1-flash-fast and oathbreaker-kimi-k3.1-pro accept up to 262,144 bytes per request, so long sessions on them need compacting sooner.
HTTP 401: Provide a valid Oathbreaker API key. or This API key is invalid or revoked.Claude Code did not send an active Oathbreaker key. Check that OATHBREAKER_API_KEY is set in the terminal you started Claude Code from: echo ${#OATHBREAKER_API_KEY} (or $env:OATHBREAKER_API_KEY.Length in PowerShell) prints 49 for a complete key. If you revoked or lost the key, create a new one in your console.
HTTP 402: Out of credit.Your balance cannot cover the request’s maximum possible cost. Add credit and try again.
HTTP 429Each account runs up to 10 generations at once and starts up to 60 requests per minute, shared across its keys. Wait for the Retry-After seconds, and run fewer parallel agents.
/status shows another base URLThe variables are not set in this terminal. Run them again in the terminal you start claude from, then start a new session.

Still stuck? Email support@oathbreaker.ai with the error message and request ID, never your API key. The API error reference covers every error code.

Common questions

Can Claude Code use a non-Anthropic model?

Yes. Claude Code sends its requests to whatever server ANTHROPIC_BASE_URL names, as long as it speaks the Anthropic Messages format. Oathbreaker serves that format at https://oathbreaker.ai/v1/messages, so Claude Code’s agent loop, tools and file edits work with abliterated GLM-5.3, DeepSeek and Kimi models. Hosted extras such as web search are not available.

Which abliterated model is best for coding in Claude Code?

Use GLM-5.3 for main work. Use GLM-5.3 Flash or DeepSeek Fast for background and cheap tasks. Switch to Kimi K3.1 Pro for the hardest problems; it costs the most per token. We do not publish benchmark scores, so give two models the same small task with tests and compare the result and the token cost in your console.

Do I need a Claude subscription or an Anthropic API key?

Not for these requests. With the variables above, Claude Code authenticates to Oathbreaker with your Oathbreaker key, and usage is charged to your prepaid Oathbreaker credit. You still install Claude Code itself from its official guide.

How do I switch Claude Code back to its default models?

Open a new terminal without these variables, or remove them from the current one with unset ANTHROPIC_BASE_URL ANTHROPIC_AUTH_TOKEN ANTHROPIC_MODEL ANTHROPIC_DEFAULT_OPUS_MODEL ANTHROPIC_DEFAULT_SONNET_MODEL ANTHROPIC_DEFAULT_HAIKU_MODEL CLAUDE_CODE_AUTO_COMPACT_WINDOW.

Set up another agent

The same key, base URL and models work in every agent Oathbreaker documents.

OATHBREAKERA DECLARATION OF INTENT / 001
BEFORE YOU ENTER

TAKETHEOATH.

Break the default.
Keep your word.

I take this oath to put my power
in service of humanity.

To build with purpose.
To question with courage.
To act with care.

I will not use it to exploit, deceive,
or cause needless harm.

I will respect the rights of others
and take responsibility for what I create.

The power is mine.
The responsibility is mine.