
Use TokenRex with Apple Xcode
Add TokenRex as an internet-hosted model provider in Xcode Intelligence.
Setup checked against the linked documentation. Screenshots are reference examples from the tool's publisher, not proof of a TokenRex connection. Live execution inside this third-party app has not been tested; verify a short request before running larger tasks.
Before you start
- A private TokenRex API key
- An enabled model ID from Models & Pricing
- A supported version of the tool; review the method's protocol requirements
Setup methods
Internet Hosted chat provider
Custom-provider availability depends on your Xcode release. Check Apple's current documentation first; this Internet Hosted workflow has not been verified in a running Xcode installation.
- 1
Use an Xcode release that supports custom chat providers. Open Settings → Intelligence → Chat → Add a Chat Provider → Internet Hosted.
- 2
Enter https://tokenrex.ai/api/public as the provider URL. Xcode appends /v1/models and /v1/chat/completions itself.
- 3
Supply your private API key using the authentication fields provided by your Xcode version. Follow its field labels; authentication formatting has not been tested here.
- 4
Refresh model discovery, select an enabled model and test a small chat. Do not assume models can be manually registered when discovery fails.
Locally Hosted provider
A documented Xcode alternative for local servers, not a second direct TokenRex connection method.
- 1
Apple also supports a Locally Hosted chat provider for an API running on your computer or local network.
- 2
Use that option only for a local service you control. TokenRex's public URL belongs under Internet Hosted, not Locally Hosted.
- 3
Installed coding agents are configured separately from custom chat providers; this option is not a substitute for their authentication.
Troubleshooting
- No models appear
- Check that the root URL has no /v1 suffix and that authenticated /v1/models discovery succeeds. Verify your installed Xcode version's authentication fields.
- Authentication fails
- Check that the saved TokenRex key is active and belongs in the tool's API-key field, not its subscription sign-in. Remove accidental spaces, check your wallet balance, and never share the key in screenshots or exported settings.
- The model is missing or the request URL returns 404
- Copy an exact enabled model ID from Models & Pricing. Follow this method's URL field: some tools expect the versioned base, others the root or full completion address. Check the documented API protocol before changing the path.
- Chat works but streaming or tools fail
- Test a short plain-text conversation first. Confirm the selected model and installed tool version support the required protocol and capabilities. Enable agent actions only after separately checking streaming and tool calls.
Verify the connection
Send a short message with the selected model, read its response, then confirm the exact model appears in your TokenRex usage. Test streaming and tool use separately before larger agent tasks.