Cursor logo
Editors

Use TokenRex with Cursor

Configure Cursor's version-dependent OpenAI endpoint override for compatible chat models.

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

OpenAI Base URL override

  1. 1

    Open Cursor Settings → Models and supply your private TokenRex key in the OpenAI API-key field.

  2. 2

    If available in your installed version, enable Override OpenAI Base URL and enter https://tokenrex.ai/api/public/v1.

  3. 3

    Add an exact enabled model ID, save, select it in chat and test. The override workflow is corroborated by Cursor's official support forum; the API-key help does not guarantee all gateway models work.

  4. 4

    BYOK does not power Tab completion. Reasoning models and Agent behavior must be checked in your specific Cursor release.

Setup reference
02

Alternative: Codex editor extension

A separate extension-based route, not a second native Cursor API setting.

  1. 1

    For a separate coding-agent workflow, install the official Codex editor extension in a supported Cursor release.

  2. 2

    Configure its user-level Codex custom provider as described in the Codex guide, with Responses compatibility and private API-key authentication.

  3. 3

    This configures Codex, not Cursor's native chat or Tab. Confirm the extension's provider selection before testing.

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.

Further references

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.