Home › Guide › Claude Code with a cheap API

Use Claude Code with a cheap API: setup in 3 minutes

Claude Code burns through tokens fast — paying the official per-token USD rates makes a serious coding session add up quickly. The cheaper route: point Claude Code at the Cho Tai Khoan API gateway, pay a fixed package from $0.72 (≈ 19.000đ), and use one key across 26 models.

Do not have Claude Code yet? Install it first (about 1 minute)

  1. Install the LTS version of Node.js from nodejs.org (skip this if your machine already has Node.js).
  2. Open Terminal (macOS / Linux) or PowerShell (Windows) and run:
npm install -g @anthropic-ai/claude-code

Windows users should also install Git for Windows from git-scm.com (remember to tick "Add to PATH") so Claude Code can use Bash commands like most online guides assume; without it, PowerShell still works.

Check the install: run claude --version — a version number means you are good.

Step 1 — Get a key first

  1. Go to the API gateway home page and pick a package (if you are just trying it out, the Starter package at $0.72 is enough to install and test every app).
  2. Pay by USDT, VietQR bank transfer or MoMo — the system issues a redeem code automatically.
  3. Redeem the code right on the page and you receive a key starting with sk-ctk-. Keep this key safe.

Step 2 — Point Claude Code at the gateway

You only need to add 2 lines of configuration so Claude Code calls through the gateway instead of calling the provider directly:

Open a command window: on Windows press Start, type PowerShell, press Enter. On macOS press Cmd + Space, type Terminal, press Enter.

If you have already checked your key on the home page in the same browser, the key in the boxes below is already filled in for you — just copy them as-is, no manual editing.

macOS / Linux — add to your ~/.zshrc file (or ~/.bashrc):

export ANTHROPIC_BASE_URL="https://api.chotaikhoan.com"
export ANTHROPIC_AUTH_TOKEN="KEY_CUA_BAN"

Windows — open PowerShell and run these 2 commands:

setx ANTHROPIC_BASE_URL "https://api.chotaikhoan.com"
setx ANTHROPIC_AUTH_TOKEN "KEY_CUA_BAN"

Replace KEY_CUA_BAN with your sk-ctk-... key. Then fully close and reopen Claude Code (and its terminal window) so it picks up the new configuration.

Step 3 — Check with the "magic sentence"

In Claude Code, type exactly: "Reply with exactly one word: running". If the app answers "running", you are running through the gateway. From now on, every use is charged against your package quota — open the Check key section on the home page to see exactly how much each call charged, split by input / output / cache tokens.

Common errors

This same key also works for Codex, Cursor and Cline — installing another app does not need another key. The list of 26 models and the rate of each model is on the API pricing page.

Start with the smallest package

The Starter package at $0.72 (≈ 19.000đ) is enough to install and test Claude Code yourself before buying a bigger package. Activation is automatic right after payment.

View packages — from $0.72🔑 Redeem a code for a key
Chợ Tài Khoản — api.chotaikhoan.com · Support on Telegram: @chotaikhoandotcom · Bot: @chotaikhoan_api_bot

API gateway home (English)API pricing (English)Setup guide (English)Redeem a codeClaude Code guideCodex guideCursor guideCline guideVS Code guideOpenClaw guideFAQWarranty & refundsIs this shop trustworthy?Trang chủ cổng API (Tiếng Việt)Bảng giá API (Tiếng Việt)Chợ Tài Khoản main store