Use TokenRex with Kilo Code
Use TokenRex as a custom OpenAI-compatible provider in Kilo Code.
Provider setup checked against the official reference. Live execution inside this third-party tool has not been tested; model limits, streaming and tool behavior must be verified separately.
Before you start
- A TokenRex API key
- A version of the app that accepts a custom OpenAI-compatible base URL
Setup methods
Provider setup
- 1
Open Kilo Code Settings → Providers and choose Custom provider. The official screenshots show another provider's examples, not TokenRex settings.

Official Kilo Code action for adding a custom endpoint. Official source - 1Choose Custom provider to open the configuration form.
- 2
Set provider ID to tokenrex and display name to TokenRex. Enter https://tokenrex.ai/api/public/v1 in Base URL and your private key in API Key.

Official Kilo Code form with another gateway's example values. Replace these with the TokenRex values above. Official source - 1Provider ID and display name identify the connection.
- 2Replace the example URL with the TokenRex versioned base.
- 3Enter your own key privately; never copy credentials from screenshots.
- 3
Use the OpenAI-compatible Chat Completions API type, not Responses. API-type labels differ by version.
- 4
Copy an exact enabled model ID from Models & Pricing. Set context, maximum output, image input and tool capabilities only from that model's verified details.
- 5
Register the copied Model ID, check supported capabilities and save the provider. Complete separate model registration if your installed version requires it.
- 6
Save and select this provider and model in a new conversation. Send a short message and confirm the exact model in TokenRex usage before enabling tools or running larger tasks.
Troubleshooting
- 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.