Tokenator

Sign in with your API key

EN
English
Русский
Signing you in…

Tokenator

Support
EN
English
Русский
News
-
Anthropic API
-
OpenAI API
-
Your API Key
-
Used
0
Limit
0
Remaining
0
Top up tokens
Usage by model
Expires: -
Available Models

1 Install Claude Code

Claude Code is the official Anthropic CLI. It runs inside your terminal.

npm (Linux / macOS / Windows)
npm install -g @anthropic-ai/claude-code

Don't have Node.js? Install it from nodejs.org

Restart your terminal after install so the claude command is picked up.

2 Connect to Tokenator

Two options — pick whichever you prefer.

Option A — environment variables

Linux / macOS (bash / zsh)
Loading...
Windows (PowerShell)
Loading...

To persist — append these to ~/.bashrc / ~/.zshrc on Linux/mac, or to $PROFILE on Windows (open it with notepad $PROFILE).

Option B — settings.json file

Put it here:
Linux/macOS: ~/.claude/settings.json
Windows: %USERPROFILE%\.claude\settings.json

If the .claude folder doesn't exist — create it. On Windows in Explorer go to your user folder and create a folder literally named .claude (with the leading dot).

Windows: how to open the user folder and show hidden items
  1. Press Win + R, type %USERPROFILE% and press Enter — Explorer will open your user folder (e.g. C:\Users\yourname).
  2. Or open File Explorer → click the address bar → paste %USERPROFILE% → Enter.
  3. Enable hidden items: in Explorer menu View → Show → Hidden items (Windows 11) or View → tick "Hidden items" (Windows 10). Folders starting with a dot like .claude are hidden by default.
  4. Don't see .claude? Create it: right-click empty space → New → Folder → name it .claude (with the dot). Put settings.json inside.

3 Run it

claude

Claude Code will start with Tokenator as its backend — anything you type is billed against your API key.

4 Switch models

Use /model inside Claude Code to interactively switch between available models.

Or set it directly:

/model model-name

5 Enable thinking

Tokenator уже включает поле reasoning:{enabled:true} для ваших запросов, если у ключа стоит галка Reasoning. Включить «глубокое размышление» внутри самого Claude Code можно одним из способов:

  • В сообщении напишите слово think, think hard, think harder или ultrathink — Claude Code увеличит budget thinking.
  • Или экспортируйте переменную MAX_THINKING_TOKENS=12000 перед запуском claude — это поднимет лимит thinking-токенов.
  • Если у текущего API-ключа Reasoning выключен — откройте вкладку Settings в дашборде и включите его, иначе Tokenator не пробросит флаг в upstream.
export MAX_THINKING_TOKENS=12000
claude

1 Install Opencode

Opencode is an open-source coding agent CLI. Install it via npm (needs Node.js 18+):

npm (Linux / macOS / Windows)
npm install -g opencode-ai

Don't have Node.js? Install it from nodejs.org

Restart your terminal after install so the opencode command is picked up.

2 Connect to Tokenator

Two options — pick whichever you prefer.

Option A — environment variables

Linux / macOS
Loading...
Windows (PowerShell)
Loading...

To persist: append to ~/.bashrc/~/.zshrc on Linux/mac, or to $PROFILE on Windows.

Option B — opencode.json file

Where to put the file:
Project-specific: opencode.json (in your project root)
Global (Linux/macOS): ~/.config/opencode/config.json
Global (Windows): %USERPROFILE%\.config\opencode\config.json
Windows: how to create C:\Users\<you>\.config\opencode
  1. Press Win + R, type %USERPROFILE% and press Enter — Explorer opens your user folder (C:\Users\yourname).
  2. Enable hidden items: View → Show → Hidden items (Windows 11) or View → tick "Hidden items" (Windows 10) — .config is a hidden folder.
  3. If there's no .config folder — create it: right-click → New → Folder → name it .config (with the leading dot).
  4. Inside .config create a folder opencode. Put config.json inside it.
  5. Full path should look like C:\Users\yourname\.config\opencode\config.json.
Loading...

oh-my-opencode (optional)

If you use oh-my-opencode to share configs, place this file here:

Where to put the file:
Global (Linux/macOS): ~/.config/opencode/oh-my-opencode.json
Global (Windows): %USERPROFILE%\.config\opencode\oh-my-opencode.json
Windows: where to put oh-my-opencode.json
  1. Press Win + R, type %USERPROFILE% and press Enter — Explorer opens your user folder.
  2. Important: enable hidden files first — View → Show → Hidden items (Windows 11) or View → tick "Hidden items" (Windows 10).
  3. Check if .config exists. If not — right-click → New → Folder → name it .config.
  4. Inside .config open the opencode folder (or create it if it's missing).
  5. Put oh-my-opencode.json next to config.json. Full path: C:\Users\yourname\.config\opencode\oh-my-opencode.json.
Loading...

3 Launch

opencode

Pick a model from the Tokenator provider in the Opencode UI and start coding.

1 Install Cline in VS Code

Don't have VS Code? Download it from code.visualstudio.com.

1. Open VS Code.
2. Click the Extensions icon in the left sidebar (or press Ctrl+Shift+X / Cmd+Shift+X).
3. Search for Cline
4. Click Install on the extension by saoudrizwan.
5. After installing, open Cline from the left activity bar (the robot icon).

2 Configure Cline

Settings steps:
1. Open Cline settings in VS Code
2. Select API Provider: OpenAI Compatible
3. Base URL: Loading...
4. API Key: Loading...
5. Model ID: Loading...

1 Install Kilo Code in VS Code

Don't have VS Code? Download it from code.visualstudio.com.

1. Open VS Code.
2. Go to the Extensions panel (Ctrl+Shift+X / Cmd+Shift+X).
3. Search for Kilo Code
4. Click Install on the Kilo Code extension.
5. Open Kilo Code from the left activity bar after install.

2 Configure Kilo Code

Settings → Providers → Custom provider
Provider ID: tokenator
Display name: Tokenator
Base URL: Loading...
API Key: Loading...
Add models (ID + Name):

1 Install Codex CLI

Codex is the official OpenAI coding agent CLI.

npm (Linux / macOS / Windows)
npm install -g @openai/codex

Don't have Node.js? Install it from nodejs.org

Restart your terminal after install so the codex command is picked up.

2 Connect to Tokenator

Download the config file for your OS and place it in the .codex folder:

Put the file here:
Linux/macOS: ~/.codex/config.toml
Windows: %USERPROFILE%\.codex\config.toml
Linux / macOS: where to put the file
  1. Open a terminal.
  2. Check if the folder exists: ls -la ~ | grep .codex
  3. If it doesn't exist — create it: mkdir -p ~/.codex
  4. Move or copy the downloaded file into ~/.codex/:
    mv ~/Downloads/config.toml ~/.codex/
  5. Verify: ls ~/.codex/ — you should see config.toml.
Windows: how to find and create the .codex folder
  1. Press Win + R, type %USERPROFILE% and press Enter — Explorer opens your user folder (e.g. C:\Users\yourname).
  2. Enable hidden items: View → Show → Hidden items (Windows 11) or View → tick "Hidden items" (Windows 10).
  3. Look for a folder named .codex. If it doesn't exist — right-click → New → Folder → name it .codex (with the leading dot).
  4. Put config.toml inside.
  5. Full path should be: C:\Users\yourname\.codex\config.toml.
Linux / macOS — ~/.codex/config.toml
Loading...
Windows — %USERPROFILE%\.codex\config.toml
Loading...

3 Run it

Launch Codex with a specific model:

codex --model=modelname

1 Установка

OpenClaw — это CLI-приложение, которое поднимает локальный gateway к LLM-провайдерам. Ставится через npm, требует Node.js 22.16+ (рекомендуется 24).

npm (Linux / macOS / Windows)
npm install -g openclaw@latest

Нет Node.js? Поставь с nodejs.org

Перезапусти терминал, чтобы команда openclaw подхватилась. Проверь: openclaw --version

2 Подключение к Tokenator

OpenClaw читает конфиг из ~/.openclaw/config.json. Скачай готовый файл или скопируй вручную:

или скопируй ниже вручную
Loading...
Куда положить файл:
Linux / macOS: ~/.openclaw/config.json
Windows: %USERPROFILE%\.openclaw\config.json
Linux / macOS: куда положить файл
  1. Открой терминал.
  2. Проверь, есть ли папка: ls -la ~ | grep .openclaw
  3. Если папки нет — создай: mkdir -p ~/.openclaw
  4. Перенеси скачанный файл: mv ~/Downloads/config.json ~/.openclaw/
  5. Проверь, что файл лёг куда надо: ls ~/.openclaw/ — должен быть config.json.
Windows: как открыть папку и сделать видимой .openclaw
  1. Нажми Win + R, введи %USERPROFILE% и Enter — Explorer откроет твою пользовательскую папку (например C:\Users\username).
  2. Включи показ скрытых файлов: View → Show → Hidden items (Windows 11) или View → галочка "Hidden items" (Windows 10). Папки с точкой впереди (.openclaw) скрыты по умолчанию.
  3. Если папки .openclaw нет — создай: правый клик по пустому месту → New → Folder → имя .openclaw (с точкой в начале).
  4. Положи в неё config.json. Финальный путь: C:\Users\username\.openclaw\config.json

3 Запуск

OpenClaw работает как фоновый демон. Первый запуск — через мастер:

openclaw onboard --install-daemon

Мастер спросит, какие каналы подключить (Telegram, WhatsApp, Slack, Discord), запросит API-токены мессенджеров и поднимет сервис.

После этого отправь сообщение в подключённый чат — OpenClaw читает его, шлёт в Tokenator, получает ответ и отвечает в той же переписке.

4 Доступные модели

В поле agent.model вписывай openai/<имя-модели>. Клик по плашке копирует готовое значение в буфер:

1 Открой Custom API Endpoint

Открой настройки: Cursor → Settings (или Cmd/Ctrl + ,) и перейди в раздел Models. Спустись до блока OpenAI API Key, разверни его и включи тумблер Override OpenAI Base URL (Custom API Endpoint).

2 Заполни два поля

Скопируй каждое значение и вставь в соответствующее поле в Cursor.

OpenAI API Key
Loading...
Override OpenAI Base URL
Loading...

3 Добавь модели

Над полями с ключом и Base URL Cursor показывает выпадающий список моделей. Раскрой его кнопкой + View Models — увидишь дефолтный набор Cursor. В самом низу списка нажми + Add custom model — появится поле для ввода имени.

Введи имя с префиксом cursor- и нажми Add Model. Cursor добавит её в свой список и начнёт использовать. Повтори для каждой нужной модели.

Доступные тебе модели — клик по плашке копирует готовое имя в буфер:

Важно про имена моделей. Cursor проверяет каждую модель на знакомое имя и блокирует claude-* / gpt-* по умолчанию. Чтобы Cursor пропустил модель, добавь префикс cursor- к её имени. Tokenator резолвит такие префиксы как aliases — cursor-claude-sonnet-4-6 внутри маршрутизируется как claude-sonnet-4-6.
Совет. Cursor не умеет переключаться между моделями внутри одной сессии. Если хочешь несколько вариантов под рукой — добавь сразу несколько через + Add custom model (например cursor-claude-sonnet-4-6 и cursor-claude-opus-4-7). Активную модель меняй в селекте чата Cursor.

OpenAI-compatible API

Loading...

Anthropic-compatible API

Loading...

Token balance

Plain GET endpoint. Returns JSON with used, limit, remaining for the calling key. Available under both /v1/tokens (OpenAI auth) and /anthropic/v1/tokens (Anthropic auth).
Loading...

Streaming

Streaming is on by default. If your request body has no stream field, the server replies with Server-Sent Events as soon as tokens are produced. To get a single non-stream JSON response (the original API behaviour), pass "stream": false explicitly.
Default
→ SSE stream
"stream": true
→ SSE stream
"stream": false
→ single JSON response
Loading...

Web search

Web search is on by default for every chat request — the model fetches fresh data from the internet automatically. You can turn it off per API key on the Settings tab. The plugins example below shows how to pass the same setting explicitly (useful if your client strips unknown fields or you want it pinned). Works on every chat model (Claude, GPT, Gemini, etc.).
Default
→ web search ON
Settings → OFF
→ training data only
Loading...
Web search runs for every chat request unless you turn it off in Settings. The example above is for clients that strip unknown JSON fields and need the plugin spelled out.

Image Generation (Python)

Loading...

Image Generation (cURL)

Loading...

Video Generation (Python)

Synchronous endpoint — the request blocks until the upstream job finishes (30-90 sec, up to 15 min). Returns the same OpenAI-shaped {data:[{url}]} as images.
Loading...

Video Generation (cURL)

Loading...
effort
Only the last 5 detailed requests are stored
Мышление
Глубокое размышление модели перед ответом.
Поиск в интернете
Модель сможет искать актуальные данные в интернете при ответе.
Uptime