$ man unlockai

Docs

Your key works anywhere that speaks the OpenAI or Anthropic API: Claude Code, Codex, Cursor, Grok Build, Kimi CLI, OpenCode, phone chat apps, and your own code.

The two values you need

Base URLhttps://api.••••••••.comShown once you buy a key · Get a key
Keysk-…Issued once, in your dashboard
Tools

Claude Code

~/.zshrc or ~/.bashrc
export ANTHROPIC_BASE_URL=https://api.••••••••.com
export ANTHROPIC_AUTH_TOKEN=sk-…
# start claude as usual
claude

Claude Code respects ANTHROPIC_BASE_URL — every request then meters against your credits.

Tools

Codex CLI

env
export OPENAI_BASE_URL=https://api.••••••••.com/v1
export OPENAI_API_KEY=sk-…
codex
Tools

Cursor

  1. 1Open Settings → Models
  2. 2OpenAI API Key: paste your key
  3. 3Set Override OpenAI Base URL to https://api.••••••••.com/v1
SDKs

Python (openai)

python
from openai import OpenAI

client = OpenAI(
    base_url="https://api.••••••••.com/v1",
    api_key="sk-…",
)
resp = client.chat.completions.create(
    model="claude-sonnet-5",   # any model on the catalog
    messages=[{"role": "user", "content": "hello"}],
)
print(resp.choices[0].message.content)
SDKs

Node (openai)

node
import OpenAI from "openai";

const client = new OpenAI({
  baseURL: "https://api.••••••••.com/v1",
  apiKey: "sk-…",
});
const r = await client.chat.completions.create({
  model: "gpt-6-sol",
  messages: [{ role: "user", content: "hello" }],
});
HTTP

Anthropic SDK / raw curl

curl — anthropic messages api
curl https://api.••••••••.com/v1/messages \
  -H "x-api-key: sk-…" \
  -H "anthropic-version: 2023-06-01" \
  -H "content-type: application/json" \
  -d '{
    "model": "claude-sonnet-5",
    "max_tokens": 128,
    "messages": [{"role": "user", "content": "hello"}]
  }'
curl — openai chat completions
curl https://api.••••••••.com/v1/chat/completions \
  -H "authorization: Bearer sk-…" \
  -H "content-type: application/json" \
  -d '{
    "model": "deepseek-v4.1-flash",
    "messages": [{"role": "user", "content": "hello"}]
  }'
Reference

Errors you’ll see

402insufficient_balanceOut of credits — top up in the dashboard.
401unauthorizedBad or revoked key.
503sales_pausedProvider pause — retry in a minute.