Package Exports
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (tokenmix) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
TokenMix CLI
Zero-config CLI to use any open-source coding agent with TokenMix as the unified LLM backend.
One account, one balance, 160+ models routed automatically across Claude / GPT / Gemini / DeepSeek / Qwen / Moonshot / ...
Quick Start
# 1. Log in (opens browser, confirm a short code)
npx tokenmix login
# 2. Launch an agent
npx tokenmix opencode # install + configure + start OpenCode
npx tokenmix claude # install + configure + start Claude Code
npx tokenmix aider # configure + start Aider (Python required)
npx tokenmix kilo # print Kilo Code VSCode configurationAlternative login modes
npx tokenmix login --paste # interactive paste prompt (no browser)
npx tokenmix login --key sk-tm-... # supply API key directly (for CI / scripts)Supported Agents
| Agent | Install | CLI Action |
|---|---|---|
| OpenCode | npm i -g opencode-ai |
full auto |
| Claude Code | npm i -g @anthropic-ai/claude-code |
full auto |
| Aider | pip install aider-chat |
semi auto |
| Kilo Code | VSCode extension | config-only |
Commands
tokenmix login [--key sk-tm-xxx] Log in
tokenmix logout Remove credentials (and revert injected agent config)
tokenmix balance Open dashboard to view balance
tokenmix topup Open browser to top up
tokenmix models [--type chat] List available models with prices
tokenmix list List supported agents
tokenmix doctor Diagnose configuration
tokenmix opencode [args...] Launch OpenCode via TokenMix
tokenmix claude [args...] Launch Claude Code via TokenMix
tokenmix aider [args...] Launch Aider via TokenMix
tokenmix kilo Print Kilo Code configurationConfiguration Location
Your TokenMix credentials are stored locally at:
- macOS:
~/Library/Application Support/tokenmix/config.json - Linux:
~/.config/tokenmix/config.json(respectsXDG_CONFIG_HOME) - Windows:
%APPDATA%/tokenmix/config.json
File permissions are restricted to 0600 (owner read/write only).
Development
pnpm install
pnpm dev opencodeLicense
MIT — see LICENSE