JetBrains AI Assistant logo
Editors

Use TokenRex with JetBrains AI Assistant

Use TokenRex as a custom OpenAI-compatible provider in JetBrains AI Assistant.

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 TokenRex API key
  • A version of the app that accepts a custom OpenAI-compatible base URL

Setup methods

01

Providers & API keys

  1. 1

    Open Settings → Tools → AI Assistant → Providers & API keys.

    JetBrains AI Assistant Providers and API keys settings
    Official JetBrains provider settings. Official source
    1. 1Providers & API keys is the settings section.
    2. 2Choose a third-party provider, then use Test Connection.
  2. 2

    Choose the OpenAI-compatible third-party provider, enter https://tokenrex.ai/api/public/v1 and your private key.

    JetBrains OpenAI-compatible URL, API key and Test Connection fields
    Official JetBrains example for another gateway. Replace its URL and masked key with your TokenRex settings. Official source
    1. 1Choose OpenAI-compatible and enter the TokenRex versioned URL.
    2. 2Enter your key privately and use Test Connection. Verify tools before enabling them.
  3. 3

    Use Test Connection, select an enabled model and apply the settings. Organizational policy may restrict BYOK.

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.