halfoff.devDocs
Get a key
Get started

Integrations

Run Claude Code, Codex CLI, Gemini CLI, Cherry Studio, DeepChat, AionUI or any OpenAI-compatible app on half-price models with one Half Off Dev key.

If a client lets you override its API base URL, it can run on Half Off Dev, and every request it makes is billed at half the official price. The change is always the same two values, endpoint and key; your prompts, settings and workflow stay put. Start by creating an API key.

Pick your client#

Each guide covers one client end to end: config file or commands, which models to choose, and the errors people usually hit.

Let the dashboard fill it in#

On the API keys page, every key has a Use in tools button (and a fresh key gets Use in tools… right next to it). The dialog it opens holds a ready-made setup for each client above with your key already inserted, plus import shortcuts:

  • Claude Code, Codex CLI and Gemini CLI: Import with CC Switch registers Half Off Dev as a provider in the CC Switch desktop app, models included. You need CC Switch installed.
  • Cherry Studio, DeepChat and AionUI: Open in app adds Half Off Dev as a provider inside that app. You need the app installed.

A key you have just created is already in the dialog. For an older key, paste it in yourself: only a hash is stored, so Half Off Dev can't display it again.

Which base URL?#

It depends on the API format your client speaks, never on the model you pick:

API formatUsed byBase URL
Anthropic MessagesClaude Code, Anthropic SDKhttps://halfoff.dev
OpenAI Chat Completions and ResponsesCodex CLI, OpenAI SDK, OpenAI-compatible appshttps://halfoff.dev/v1
GeminiGemini CLI, Google Gen AI SDKhttps://halfoff.dev
OpenAI-compatible "API host" fieldCherry Studio, DeepChat, AionUIhttps://halfoff.dev (the app appends /v1)

When something fails#

What you seeWhat to do
401 Missing API keyNo key is reaching Half Off Dev. Check the variable name and that it is exported in the same shell that launches the client.
401 Invalid or revoked API keyThe key was mistyped, cut short or revoked. Paste it again or make a new one.
404 Model '...' is not availableThat model id doesn't exist. Copy one from GET /v1/models or the model list.
404 Unknown endpointThe client is asking for an API Half Off Dev doesn't serve, embeddings for example. Switch it to Chat Completions, Responses, Anthropic Messages or Gemini.
404 with /v1/v1/ in the pathThe client adds /v1 on its own. Give it https://halfoff.dev as the host.
402The balance is empty or the key has hit its spend cap. See Billing.

The individual guides list client-specific errors, and Errors covers every status code.