PC Client Quick Connect

Connect eight PC AI clients to CoffeeRouter with clearly identified native import, web import, and copied configuration workflows.

Connect an existing CoffeeRouter token to eight popular desktop and web clients without entering endpoint details from memory. This guide separates native client import, web import, and manual configuration so you always know what will happen before you continue.

Overview and Use Cases

Use PC Client Quick Connect when you want to:

Coding agentsUse CoffeeRouter with Codex or another development-focused desktop client.
Desktop chatConnect Cherry Studio, Chatbox, LobeHub, ChatWise, Jan, or Msty Studio.
Browser workspacesOpen NextChat in the browser and import the generated settings.

Open the PC Clients Dialog

  1. Sign in to the CoffeeRouter console.
  2. Open Token Management.
  3. Find an existing token and click Chat in that row.
  4. Select PC Clients.
  5. Choose the client you want to configure.

PC Clients dialog screenshot (to be added)

Connection Method Comparison

ClientConnection methodAPI endpointAPI formatImportant note
CodexCopy configurationSite URL + /v1OpenAI ResponsesMerge the configuration into the user's .codex/config.toml and set the COFFEEROUTER_API_KEY environment variable.
Cherry StudioNative client protocol importSite root, without /v1OpenAI CompatibleAfter importing the provider, fetch or add models in Cherry Studio.
ChatboxNative client protocol importSite root, without /v1/v1/chat/completionsSelect a primary model before importing.
LobeHubCopy configurationSite URL + /v1OpenAI CompatibleEnter the copied endpoint, token, and selected model in LobeHub's OpenAI provider settings.
NextChat / ChatGPT Next WebOpen the web app for quick importSite root, without /v1OpenAI Chat CompletionsUses a NextChat settings fast-link.
ChatWiseCopy configurationSite URL + /v1OpenAI ResponsesAdd a custom Provider in the desktop client.
JanCopy configurationSite URL + /v1OpenAI CompatibleAdd a Custom Provider in Jan.
Msty StudioCopy configurationSite URL + /v1OpenAI CompatibleEnter the values manually under Online Providers.

For the hosted CoffeeRouter service, the site root is https://www.coffeerouter.ai and the versioned API base is https://www.coffeerouter.ai/v1. If you use a self-hosted CoffeeRouter instance, replace only the origin with your own trusted deployment.

Official Downloads

Install clients only from their official websites or repositories. External links open in a new tab.

Client Setup

Codex

  • Method: Copy configuration
  • API base: https://www.coffeerouter.ai/v1
  • API format: OpenAI Responses
  1. In the PC Clients dialog, select Codex and copy the generated configuration.
  2. Open the user-level Codex configuration file at ~/.codex/config.toml. On Windows, this is under %USERPROFILE%\.codex\config.toml.
  3. Merge the generated provider block with your existing configuration instead of overwriting unrelated settings.
  4. Set COFFEEROUTER_API_KEY in your user environment to the CoffeeRouter token.
  5. Restart the desktop app or terminal so it receives the new environment variable, then select the configured model.

The resulting structure is equivalent to:

model = "your-model-id"
model_provider = "coffeerouter"

[model_providers.coffeerouter]
name = "CoffeeRouter"
base_url = "https://www.coffeerouter.ai/v1"
env_key = "COFFEEROUTER_API_KEY"
wire_api = "responses"

Set the environment variable to sk-your-api-key. Do not paste the token directly into config.toml; Codex officially supports reading the provider key from the environment variable named by env_key.

Cherry Studio

  • Method: Native client protocol import
  • API base: https://www.coffeerouter.ai
  • API format: OpenAI Compatible
  1. Select Cherry Studio in the PC Clients dialog.
  2. Use the import action shown by CoffeeRouter and allow the browser to open Cherry Studio.
  3. Review the provider name, API base, and masked token before confirming the import.
  4. Open the imported provider in Cherry Studio and fetch the available models, or add the required model IDs manually.
  5. Select a model in the chat view and send a test message.

This is a real client-protocol import. The public documentation intentionally does not display the complete import URL because it may contain the active token.

Chatbox

  • Method: Native client protocol import
  • API Host: https://www.coffeerouter.ai
  • API Path: /v1/chat/completions
  1. Select Chatbox in the PC Clients dialog.
  2. Select the primary chat model that Chatbox should use.
  3. Use the import action and allow the browser to open Chatbox.
  4. Confirm that the API Host is the site root and the API Path is /v1/chat/completions.
  5. Save the provider and test the selected model.

Chatbox combines the Host and Path. Do not use https://www.coffeerouter.ai/v1 as the Host, because that would duplicate the version segment.

LobeHub

  • Method: Copy configuration
  • API base: https://www.coffeerouter.ai/v1
  • API format: OpenAI Compatible

Copy the following values from the CoffeeRouter PC Clients dialog:

SettingValue
Provider NameCoffeeRouter
API FormatOpenAI Compatible
API Endpointhttps://www.coffeerouter.ai/v1
API KeyThe current token selected in Token Management
Model IDThe model selected in the CoffeeRouter dialog

In the LobeHub OpenAI provider settings, enter the API Endpoint and API Key. Then add the copied Model ID, or enable the corresponding model if it already appears in the model list. Save the provider and send a test message with that model.

Use the actions in this order:

  1. Copy configuration in the CoffeeRouter PC Clients dialog.
  2. Select Open LobeHub Settings below and enter the copied values.
  3. If the client is not installed, select Download LobeHub below.

NextChat / ChatGPT Next Web

  • Method: Open the web app for quick import
  • API base: https://www.coffeerouter.ai
  • API format: OpenAI Chat Completions
  1. Select NextChat / ChatGPT Next Web in the PC Clients dialog.
  2. Review the destination and settings summary before opening the generated fast-link.
  3. Open the NextChat web page and confirm the imported service URL and model.
  4. Save the settings and send a test message.
  5. Clear the URL from browser and clipboard history if it contained the token.

NextChat uses a Settings fast-link. This is a browser-based quick import, not a native desktop-client protocol. The complete fast-link is intentionally omitted from this static page.

ChatWise

  • Method: Copy configuration
  • API base: https://www.coffeerouter.ai/v1
  • API format: OpenAI Responses
  1. Select ChatWise in the PC Clients dialog and copy the displayed endpoint, token, and model ID.
  2. In ChatWise, add a Custom Provider.
  3. Choose the OpenAI Responses-compatible format.
  4. Enter https://www.coffeerouter.ai/v1, sk-your-api-key, and the copied model ID.
  5. Save the provider, select it in a new chat, and send a test message.

ChatWise does not use a CoffeeRouter import protocol for this setup; each value must be copied into the client.

Jan

  • Method: Copy configuration
  • API base: https://www.coffeerouter.ai/v1
  • API format: OpenAI Compatible
  1. Select Jan in the PC Clients dialog and copy the configuration values.
  2. In Jan, open the model-provider settings and add a Custom Provider.
  3. Select the OpenAI-compatible provider type.
  4. Enter https://www.coffeerouter.ai/v1, sk-your-api-key, and the required model ID.
  5. Save the provider, activate the model, and start a test conversation.

Jan requires manual provider configuration; copying the values does not install or open the client automatically.

Msty Studio

  • Method: Copy configuration
  • API base: https://www.coffeerouter.ai/v1
  • API format: OpenAI Compatible

Msty Studio supports custom OpenAI-compatible providers. By configuring the CoffeeRouter API endpoint and token, you can use Claude, GPT, Gemini, and other models available to your token in Msty Studio.

Read Msty Studio's official online-provider guide

Msty Studio uses manual fields and does not support a CoffeeRouter one-click import protocol for this flow.

Before You Begin

Make sure that:

  • You have installed the latest version of Msty Studio.
  • You are signed in to the CoffeeRouter console.
  • You have created an active token on the Token Management page.
  • The token has access to the chat models you want to use.

Add CoffeeRouter

  1. Select Msty Studio in CoffeeRouter's PC Clients dialog and copy the displayed configuration.
  2. Open Msty Studio and go to Model Hub → Model Providers.
  3. Select Add Provider.
  4. Under Provider, choose OpenAI Compatible.
  5. Enter the following values:
FieldValue
Provider NameCoffeeRouter
API Endpoint (Inference Endpoint)https://www.coffeerouter.ai/v1
API KeyYour CoffeeRouter token, for example sk-your-api-key

Use HTTPS and include exactly one /v1 segment. Do not enter a duplicated path such as:

https://www.coffeerouter.ai/v1/v1

Add Models

After entering the provider settings, select Fetch Models to retrieve the available model list.

If Msty Studio cannot retrieve the models automatically, add them manually:

  1. Return to Token Management in CoffeeRouter.
  2. Check the models available to the current token.
  3. Add each required model ID to Msty Studio exactly as it appears in CoffeeRouter.
  4. Save the provider configuration.

Model IDs are case-sensitive and must match the names shown by CoffeeRouter exactly.

Start Using CoffeeRouter

  1. Create a new conversation.
  2. Open the model selector.
  3. Find the CoffeeRouter provider.
  4. Select the model you want to use.
  5. Send a test message.

Common Issues

401 or invalid API Key

Check that you copied the complete CoffeeRouter token (represented here by sk-your-api-key), the token is enabled and has not expired, sufficient quota remains, and any token IP allowlist permits access from the current device.

The model list cannot be retrieved

Skip automatic retrieval and manually add model IDs from the list allowed by the CoffeeRouter token.

404 response

Confirm that API Endpoint (Inference Endpoint) is exactly:

https://www.coffeerouter.ai/v1

Do not omit /v1 or add it twice.

Can I use Claude models?

Yes. When Msty Studio connects through the OpenAI Compatible provider, Claude models are called through CoffeeRouter's OpenAI-compatible API. Standard chat and streaming usually work, while support for Anthropic-specific features depends on the capabilities Msty Studio exposes for custom providers.

Why Some Addresses Include /v1

CoffeeRouter supports several API formats, and clients assemble the final request URL in different ways:

  • Site root, without /v1: Cherry Studio, Chatbox, and NextChat expect an origin or keep the request path separately. For example, Chatbox combines the Host with /v1/chat/completions.
  • Versioned base, with /v1: Codex, LobeHub, ChatWise, Jan, and Msty Studio expect a versioned API base and then append a resource such as /responses or /chat/completions.

Always use the value shown for the selected client. Adding or removing /v1 without checking the client's URL behavior can produce a duplicated path or a request to a nonexistent endpoint.

Security and Compliance

  • Treat generated import URLs as secrets, even if they work only once.
  • Treat copied LobeHub configurations as secrets because they contain the selected token.
  • Do not publish complete Deep Links or NextChat settings fast-links.
  • If a token may have leaked, disable or delete it in CoffeeRouter Token Management, create a replacement, and configure the client again.
  • Use your own CoffeeRouter deployment, or confirm that the service operator has legitimate upstream authorization and fulfills all applicable compliance obligations. Never connect an unknown API endpoint or key to a production environment.

Frequently Asked Questions

Which clients support a real one-click client import?

Only Cherry Studio and Chatbox use native client import protocols in this flow. NextChat opens a web page and imports browser settings. Codex, LobeHub, ChatWise, Jan, and Msty Studio require copied configuration.

Why do some addresses include /v1 while others do not?

Each client constructs its final request differently. Use the site root when the client appends a complete versioned path, and use the /v1 base when the client appends only the API resource. Follow the value listed for that client rather than applying one address to every app.

Why does Codex require an environment variable?

The Codex Provider configuration uses env_key = "COFFEEROUTER_API_KEY" to read the token from the process environment. This keeps the secret out of config.toml and follows the official custom-provider configuration model.

What should I do if an import action does not open the client?

Install or update the client from its official download link, return to the CoffeeRouter dialog, and try again. Allow the browser to open external applications when prompted. For copy-based clients, open the application manually and enter the displayed values.

How do I configure LobeHub?

Copy the LobeHub configuration from the CoffeeRouter PC Clients dialog, open LobeHub's OpenAI provider settings, and enter the endpoint and token. Then add or enable the selected model. This is manual configuration, not a provider-import link.

How do I revoke or replace a client token?

Disable or delete the old token in CoffeeRouter Token Management, create a new token, and repeat the configuration for every affected client. Also clear any import URL from browser and clipboard history.

Official References