Editors
Use TokenRex with Apple Xcode
Add TokenRex as an internet-hosted model provider in Xcode Intelligence.
This requires an Xcode release that offers internet-hosted model providers. Xcode adds the versioned path itself, so enter the root URL without /v1.
Before you start
- A supported Xcode release
- A TokenRex API key
- Xcode Intelligence enabled
Step-by-step setup
- 1
Open Xcode › Settings › Intelligence.
- 2
Choose Add a Model Provider, then select Internet Hosted.
- 3
Enter https://tokenrex.ai/api/public as the provider URL. Do not add /v1.
- 4
Paste only your TokenRex key in the API key field; do not type Bearer before it.
- 5
Add the exact model IDs you want to use, then select one in Xcode's coding assistant.
Configuration
text
Provider URL
https://tokenrex.ai/api/public
API key
tb_sk_...
Example model
openai/gpt-6-astraVerify the connection
Ask Xcode to explain selected code and confirm the chosen model appears in your TokenRex Dashboard.