DeepSeek Harness logo
Coding agents

Use TokenRex with DeepSeek Harness

Add a custom model API in DeepSeek Harness's provider settings.

Setup checked against the linked official documentation. No live TokenRex session inside this tool has been verified. Use a compatible chat model and its real limits; configuration support does not establish support for every model or feature.

Before you start

  • A current DeepSeek Harness installation
  • A private TokenRex API key
  • An enabled streaming, tool-capable chat model

Setup methods

01

Launch DeepSeek Harness

  1. 1

    Install Node.js following the current repository prerequisites. Open Terminal or PowerShell and run the official Web UI command below.

  2. 2

    Open http://127.0.0.1:3080 in your browser. Harness is a developer preview; check the official release instructions if its settings change.

Terminal commands
npx @deepseek-ai/dsh web

Setup reference
02

Add a custom model API

  1. 1

    Create a private TokenRex API key and copy an enabled chat model ID from Models & Pricing. The example model is replaceable; image, video, speech and embedding endpoints are not coding-agent chat models.

  2. 2

    Open Settings → Models → Add model provider and switch to Custom model API.

  3. 3

    Enter lowercase Provider ID tokenrex and display name TokenRex. Keep this provider ID stable after saving.

    DeepSeek Harness Models settings with Add model provider
    Official DeepSeek Harness Models page. The example provider is not a TokenRex connection. Official source
    1. 1Choose Add model provider below the existing provider cards.
  4. 4

    Enter https://tokenrex.ai/api/public/v1 as the base URL. Select OpenAI Chat Completions and enter your private TokenRex API key. The other protocol choices are separate formats, not interchangeable settings.

  5. 5

    Fetch available models or add your exact chat model ID manually. Save the provider, select it in the active profile and choose the model for a new conversation.

    DeepSeek Harness custom model API form with base URL, protocol and private key fields
    Official custom API form. Replace publisher example values with the TokenRex settings above. Official source
    1. 1Choose Custom model API.
    2. 2Use the TokenRex versioned base and OpenAI Chat Completions.
    3. 3Enter your own key privately and register the exact model ID.
  6. 6

    Start a new conversation with the selected model, send a short read-only question and check its response and TokenRex usage. Test streaming and tool calls separately before approving file edits or terminal actions. These checks can incur normal model charges.

Setup reference

Troubleshooting

The provider is saved but another model answers
Check the active profile and selected provider/model. Saving provider settings alone does not select that provider for every conversation.
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.