Integration
Use Connect Xcode to Tokens with Tokens
Xcode 26 and later can chat with models from a provider you add yourself. Apple requires the provider to support the Chat Completions API, which Tokens does. You add Tokens under Xcode > Settings > Intelligence as an Internet Hosted chat provider, and Xcode then lists the models your key can call.
Set it up in three steps
02Create a key for Connect Xcode to Tokens
Give the key its own monthly spending cap, so a runaway session stops at the cap.
Open your keys03Follow the guide
Point Connect Xcode to Tokens at Tokens with the settings in the guide, then pick any model from the catalog.
Read the guide
What Connect Xcode to Tokens connects to
- OpenAI-compatible base URL
- https://tokens.bd/v1
- Anthropic-compatible base URL
- https://tokens.bd
- API key
- One Tokens key (tok_live_…), with its own spending cap
- Models
- Any id from the model catalog
What the guide covers
7 min read
Ready to try Connect Xcode to Tokens on Tokens?
Create an account, make a key and send your first request in a couple of minutes.
