Continue logo
Editors

Use TokenRex with Continue

Use TokenRex as a custom OpenAI-compatible provider in Continue.

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

01

Provider setup

  1. 1

    Open Continue's active model configuration from the extension. Use the config.yaml workflow for your release and preserve existing name, version and schema fields.

  2. 2

    Merge the models entry below into the existing list. This is a fragment, not a replacement for the whole configuration.

  3. 3

    Use provider: openai, apiBase: https://tokenrex.ai/api/public/v1 and your exact enabled model ID. Keep useResponsesApi: false for Chat Completions.

  4. 4

    Supply the key privately using your release's supported secret configuration or the local private-key placeholder. Keep files containing keys out of source control.

  5. 5

    Save and reload Continue if required. Select the model, send a short chat and check TokenRex usage. Autocomplete and other roles require separate configuration.

Configuration
# Merge into your existing configuration
models:
  - name: GPT-6 Astra (TokenRex)
    provider: openai
    model: gpt-6-astra
    apiBase: https://tokenrex.ai/api/public/v1
    apiKey: <your private TokenRex API key>
    useResponsesApi: false

Setup reference

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.