Integration
Use Crush with Tokens
Add Tokens to Charm's Crush as an openai-compat provider, using the new crushrc format or the older crush.json the Tokens CLI writes, then pick large and small models.
Set it up in one command
The Tokens CLI signs you in through the browser, creates a key, lets you pick a model and writes Crush's settings, keeping a backup of the old file. It needs Node 18 or newer.
curl -fsSL https://tokens.bd/cli/tokens.mjs -o tokens.mjs && node tokens.mjs setup --base-url https://tokens.bd --agents crushiwr https://tokens.bd/cli/tokens.mjs -OutFile tokens.mjs; node tokens.mjs setup --base-url https://tokens.bd --agents crushWhat Crush connects to
- OpenAI-compatible base URL
- https://tokens.bd/v1
- API key
- One Tokens key (tok_live_…), with its own spending cap
- Models
- Any id from the model catalog
What the guide covers
5 min read
Ready to try Crush on Tokens?
Create an account, make a key and send your first request in a couple of minutes.
