Pay with crypto — USDT, TON, BTC. Claude, GPT and DeepSeek on one key
Setup guide

Connect your TKBK key to
Claude Code, Codex, Cursor and Cline.

Get a key, paste a few lines of config and run your tool. Every snippet below is ready to paste: replace cr_YOUR_KEY with your own key and send a first request.

Setup in 3 stepsClaude Code · Codex CLI · Cursor · Cline · SDKs

Get your API key

One key opens every model on the gateway. It starts with cr_ and is the only credential the tools below need.

  1. 1
    Open the buy page and pick an amount.
  2. 2
    Pay with crypto — USDT, TON, BTC — or Telegram Stars in our Telegram bot, which sells the same keys, or with a Russian bank card, YooMoney or SberPay on the site.
  3. 3
    Your cr_… key is issued automatically as soon as the payment confirms, with no sign-up. Treat it like a password: keep it out of git and off your stream.

Already have a key? Go to step 2. Top-ups go to the same key, so your configuration never changes.

Paste the config for your tool

Pick your tool, copy the snippet and swap in your key. Only two things change in any tool: the base URL and the key.

Base URLs at a glance

Three addresses cover every tool below. Claude clients take the bare address: they add /v1/messages themselves.

TKBK base URLs by API format
API formatBase URLModelsUsed by
Anthropic Messageshttps://api.tkbk.onlineClaudeClaude Code, Cline, n8n, Anthropic SDK
OpenAI Chat Completionshttps://api.tkbk.online/v1Every model on your keyOpenAI SDK, Cline, n8n
OpenAI Responseshttps://api.tkbk.online/openai/v1GPTCodex CLI, Cursor

Claude Code

Anthropic’s terminal agent. Needs Node.js 18 or newer.

  1. 1
    Install it: npm install -g @anthropic-ai/claude-code
  2. 2
    Set the base URL and your key, in the environment (below) or in settings.json.
  3. 3
    Open your project folder and run claude.
macOS / Linux — terminal
export ANTHROPIC_BASE_URL="https://api.tkbk.online"
export ANTHROPIC_AUTH_TOKEN="cr_YOUR_KEY"
# optional: keeps the /effort slider, which Claude Code hides behind a custom base URL
export CLAUDE_CODE_ALWAYS_ENABLE_EFFORT=1

claude
Windows — PowerShell
[Environment]::SetEnvironmentVariable("ANTHROPIC_BASE_URL", "https://api.tkbk.online", "User")
[Environment]::SetEnvironmentVariable("ANTHROPIC_AUTH_TOKEN", "cr_YOUR_KEY", "User")
[Environment]::SetEnvironmentVariable("CLAUDE_CODE_ALWAYS_ENABLE_EFFORT", "1", "User")
# open a new terminal window, then:
claude

Prefer a file? Put the same values in ~/.claude/settings.json (on Windows: %USERPROFILE%\.claude\settings.json). Claude Code reads its env block on every start.

~/.claude/settings.json
{
  "env": {
    "ANTHROPIC_BASE_URL": "https://api.tkbk.online",
    "ANTHROPIC_AUTH_TOKEN": "cr_YOUR_KEY",
    "CLAUDE_CODE_ALWAYS_ENABLE_EFFORT": "1"
  },
  "model": "claude-sonnet-5"
}

Set ANTHROPIC_AUTH_TOKEN only, and do not define ANTHROPIC_API_KEY at the same time. No Anthropic account or login is needed: usage is billed per token from your key’s balance.

Start with claude-sonnet-5; switch to claude-opus-5-5 or claude-fable-5-1 with /model for harder problems.

Check that it works

Claude Code starts and answers your first prompt. /model shows the active model.

Codex CLI

OpenAI’s terminal agent, routed to GPT models through TKBK. Needs Node.js 18 or newer.

  1. 1
    Install it: npm install -g @openai/codex
  2. 2
    Use option A for a quick try or option B for a permanent setup. One of them is enough.
  3. 3
    Open your project folder and run codex.
Option A — environment variables (macOS / Linux)
export OPENAI_BASE_URL="https://api.tkbk.online/openai/v1"
export OPENAI_API_KEY="cr_YOUR_KEY"

codex

On Windows set the same two variables with [Environment]::SetEnvironmentVariable, as in the Claude Code example above, and open a new terminal.

Option B — ~/.codex/config.toml
model = "gpt-5.6-sol"
model_provider = "tkbk"

[model_providers.tkbk]
name = "TKBK"
base_url = "https://api.tkbk.online/openai/v1"
env_key = "OPENAI_API_KEY"
wire_api = "responses"
requires_openai_auth = false
Then, in your terminal
export OPENAI_API_KEY="cr_YOUR_KEY"

codex

Codex reads the key from OPENAI_API_KEY, which is what env_key points to. The default model is gpt-5.6-sol; gpt-6.1-sol works too. A model_not_found error means a typo in the model id.

Check that it works

Codex opens a session and answers your first prompt.

Cursor

Cursor reaches TKBK through its OpenAI base-URL override.

  1. 1
    Open Settings → Models.
  2. 2
    Turn on Override OpenAI Base URL and paste the address below.
  3. 3
    Paste your key into OpenAI API Key, then press Verify.
  4. 4
    Add the model gpt-5.6-sol to the list and switch off the models you do not use: Verify fails on the first enabled model that TKBK does not serve.
Cursor → Settings → Models
Override OpenAI Base URL:  ON
Base URL:                  https://api.tkbk.online/openai/v1
OpenAI API Key:            cr_YOUR_KEY
Add model:                 gpt-5.6-sol

With the override on, Cursor sends requests for these models to TKBK. Features that depend on Cursor’s own backend, such as Tab completion, may not be available; Chat and Edit work.

Check that it works

The Verify button turns green. Then open a chat (Ctrl/Cmd+L), pick the model and ask a question about your code.

Cline

The agent extension for VS Code. Use version 4.1.23 or newer: 4.1.22 failed on custom base URLs.

  1. 1
    Click the ⚙ icon in the Cline panel to open its settings.
  2. 2
    For Claude: choose Anthropic as the provider, tick Use custom base URL and enter the bare address, without /v1.
  3. 3
    For GPT, DeepSeek and the rest: choose OpenAI Compatible and use the address that ends in /v1.
  4. 4
    The key is the same in both cases.
Cline → ⚙ → API Configuration
# Claude models
API Provider:  Anthropic (tick "Use custom base URL")
Base URL:      https://api.tkbk.online
API Key:       cr_YOUR_KEY
Model:         claude-sonnet-5

# GPT, DeepSeek and the rest
API Provider:  OpenAI Compatible
Base URL:      https://api.tkbk.online/v1
API Key:       cr_YOUR_KEY
Model ID:      gpt-6.1-sol
Check that it works

Ask Cline to read your README and describe the project. If it answers, you are connected.

n8n

Automations and AI agents, cloud or self-hosted.

  1. 1
    Open Credentials → Create credential and choose Anthropic for Claude or OpenAI for everything else.
  2. 2
    Fill in the fields below. The key is the same for both credentials.
  3. 3
    In the OpenAI Chat Model node, switch off Use Responses API.
n8n credentials
# Credentials -> Create credential -> Anthropic
API Key:   cr_YOUR_KEY
Base URL:  https://api.tkbk.online

# Credentials -> Create credential -> OpenAI
API Key:   cr_YOUR_KEY
Base URL:  https://api.tkbk.online/v1

The Anthropic address has no /v1; the OpenAI one has. A 404 in the OpenAI Chat Model node almost always means Use Responses API is still on.

Check that it works

Click Execute step on the model node: the reply appears in its output.

OpenAI & Anthropic SDKs

The official SDKs only need a different base URL. Nothing else in your code changes.

  1. 1
    Install: pip install anthropic openai or npm install @anthropic-ai/sdk openai
  2. 2
    Pass the base URL and your key when you create the client.
  3. 3
    Run the script.

Anthropic SDK: Claude models

Python
from anthropic import Anthropic

client = Anthropic(base_url="https://api.tkbk.online", api_key="cr_YOUR_KEY")

message = client.messages.create(
    model="claude-sonnet-5",
    max_tokens=1024,
    messages=[{"role": "user", "content": "Hello from TKBK"}],
)
print(message.content[0].text)
Node.js
import Anthropic from "@anthropic-ai/sdk";

const client = new Anthropic({
  baseURL: "https://api.tkbk.online",
  apiKey: "cr_YOUR_KEY",
});

const message = await client.messages.create({
  model: "claude-sonnet-5",
  max_tokens: 1024,
  messages: [{ role: "user", content: "Hello from TKBK" }],
});
console.log(message.content[0].type === "text" ? message.content[0].text : "");

OpenAI SDK: every model on your key

Python
from openai import OpenAI

client = OpenAI(base_url="https://api.tkbk.online/v1", api_key="cr_YOUR_KEY")

response = client.chat.completions.create(
    model="gpt-6.1-sol",  # or claude-sonnet-5, deepseek-v4-pro, grok-4.7
    messages=[{"role": "user", "content": "Hello from TKBK"}],
)
print(response.choices[0].message.content)
Node.js
import OpenAI from "openai";

const client = new OpenAI({
  baseURL: "https://api.tkbk.online/v1",
  apiKey: "cr_YOUR_KEY",
});

const response = await client.chat.completions.create({
  model: "gpt-6.1-sol", // or claude-sonnet-5, deepseek-v4-pro, grok-4.7
  messages: [{ role: "user", content: "Hello from TKBK" }],
});
console.log(response.choices[0].message.content);

Keep the key out of your source code: both SDKs also read it from ANTHROPIC_API_KEY and OPENAI_API_KEY in the environment.

Check that it works

The model’s reply is printed in your terminal.

Run it and check

Start your tool and send a short prompt. Copying a config proves nothing; an answer from the model does.

  1. 1
    Start your tool in a project folder: claude, codex, or open Cursor or Cline.
  2. 2
    Ask for something small, like “list the files in this folder”.
  3. 3
    Got an answer? You are connected.

No tool at hand? Test the key from any terminal:

First request — curl
curl https://api.tkbk.online/v1/messages \
  -H "Authorization: Bearer cr_YOUR_KEY" \
  -H "anthropic-version: 2023-06-01" \
  -H "content-type: application/json" \
  -d '{
    "model": "claude-sonnet-5",
    "max_tokens": 64,
    "messages": [{ "role": "user", "content": "Say one word: works" }]
  }'
Check that it works

A JSON reply whose content holds the model’s text means the key, the balance and the address are all fine.

To see which model ids your key can use:

List models — curl
curl https://api.tkbk.online/v1/models \
  -H "Authorization: Bearer cr_YOUR_KEY"
We’ll help you connect

If a request fails

Find your error below. For support, the error text is enough — never send your API key.

401 Unauthorized

The key was copied incompletely or with a trailing space. It starts with cr_ and contains only letters and digits. Copy it again from your order page or from the Telegram bot. In Claude Code put the bare key in ANTHROPIC_AUTH_TOKEN, without a “Bearer ” prefix, and do not set ANTHROPIC_API_KEY at the same time.

404 or Not Found

Almost always a wrong path in the base URL. Claude clients use https://api.tkbk.online with no path: they add /v1/messages themselves. OpenAI-compatible clients use https://api.tkbk.online/v1; Codex CLI and Cursor use https://api.tkbk.online/openai/v1. In n8n’s OpenAI Chat Model node, switch off “Use Responses API”.

Model not found

Check the spelling: ids are lowercase with hyphens, for example claude-sonnet-5 or gpt-6.1-sol. To list every id your key can use, run the models request from step 3.

Balance or limit error

The balance on your key is used up. Top up the same key in your account on the site or through the Telegram bot — the key and your settings stay the same, so there is nothing to recreate.

Still not working

Message us on Telegram and attach the error text. It is usually one line of configuration. Do not send your API key — the error text is enough.

Ready to connect?

Get a key in a minute, paste one of the configs above and send your first request. Stuck? Message us on Telegram with the error text.