Use TokenRex with Open WebUI
Use TokenRex as a custom OpenAI-compatible provider in Open WebUI.
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
With permission to manage connections, open Admin Settings → Connections and add an external OpenAI-compatible connection.
- 2
Set URL to https://tokenrex.ai/api/public/v1 and enter your private TokenRex key. Use the standard server-side connection for this method.

Official Open WebUI Amazon Bedrock proxy example. This illustrates fields only; use TokenRex values, not the pictured URL. Official source - 1Replace the connection URL with the TokenRex base.
- 2Use your private key in the API-key authentication field.
- 3
Save and refresh discovery. If /models verification fails, check the address and key; use explicit IDs where your release supports a manual allowlist, and test chat separately.
- 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
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.
Browser Direct Connections — experimental
- 1
An administrator must first enable Direct Connections in Open WebUI.
- 2
Add https://tokenrex.ai/api/public/v1 as the OpenAI-compatible URL and your private key in your personal connection settings.
- 3
This experimental mode sends requests from your browser and requires provider CORS support. If requests are blocked, use the server-side connection rather than disabling browser security.
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.