Skip to content

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

  1. 01Create an account

    Sign up, then start on a plan or top up your prepaid wallet.

    Create an account
  2. 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 keys
  3. 03Follow 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

  1. 01What you need
  2. 02Add Tokens
  3. 03Pick a model
  4. 04What uses the custom provider
  5. 05Check that it works
  6. 06Troubleshooting

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.

Create an account