Add Router One to WorkBuddy as a custom model
Tencent WorkBuddy is an AI agent for office work. Besides its built-in models it takes custom models: per WorkBuddy's model configuration docs (checked 2026-11-22), you open Avatar → System Settings → Models (Settings → Model in the Chinese edition), add a model, choose Custom as the provider and enter an endpoint URL, an API key and a model name. Enter https://api.router.one/v1/chat/completions as the endpoint URL and a Router One catalog ID as the model name, and requests sent to that custom model go to Router One on your key. A WorkBuddy custom model uses the OpenAI Chat Completions format, which is all Router One needs: every chat model in the catalog, Claude included, is served on POST /v1/chat/completions, so one key reaches the Claude, GPT, Gemini, Grok and DeepSeek chat models, and every request the gateway forwards to a model is recorded in Dashboard → Logs with its tokens, wallet charge or plan quota used, latency and status (a streamed request that failed before any output may have no record). Checked against WorkBuddy's model configuration docs in English and Chinese and its changelogs on 2026-11-22, when the latest versions listed were 5.11.4 on the English changelog and 5.11.3 (released 2026-11-15) on the Chinese changelog.
Create a dedicated key and pick exact model IDs
In Dashboard → API Keys, choose Create Key to make a key for WorkBuddy alone, and give it a maxSpend cap. WorkBuddy's Chinese model configuration docs (checked 2026-11-22) warn that use can keep triggering model calls and advise watching your spending with the third party; on Router One, maxSpend is the hard stop on wallet charges, and a dedicated key lets you filter Dashboard → Logs down to WorkBuddy's requests. Then copy the chat model IDs you want from /models, such as anthropic/claude-sonnet-5, openai/gpt-5.6-sol, google/gemini-3.8-flash or deepseek-v4.1-flash, exactly as listed, vendor prefix included where the ID has one (GPT-6.2 IDs such as openai/gpt-6.2-sol are listed too, but per OpenAI's rules below their tool calling requires the Responses API, which a WorkBuddy custom model does not use; read the Tool Calling note before adding one). The Custom dialog takes one model name—the exact parameter accepted by the API, not a display label—so add one custom model for each Router One ID you want to pick in WorkBuddy. Image-generation IDs such as gpt-image-2 are not chat models; leave them out.
Add Router One as a Custom model: the URL is the full /v1/chat/completions path
In WorkBuddy, open Avatar → System Settings → Models and click Add Model (in the Chinese edition, Settings → Model → Custom Models → 添加模型; since its 5.9.0 release the Chinese edition also opens this from the conversation model selector). For Provider, choose Custom (自定义 / Custom), which WorkBuddy's docs name for a model service not in the preset list. Enter https://api.router.one/v1/chat/completions under Endpoint, paste the dedicated key under API Key and enter an exact catalog ID under Model Name, for example anthropic/claude-sonnet-5. In Advanced Settings, set the capability checkboxes as described below, leave Custom Protocol off and leave Input and Output on Use provider default, then click Save. After saving, select the custom model manually in the conversation's model selector. Per WorkBuddy's English docs (checked 2026-11-22), the WorkBuddy AI Add Model dialog also has a Test connection button for a preliminary response check (test requests may incur service usage and do not by themselves verify tool calling, image input or long inputs), and choosing Auto there does not mean every added custom model takes part in the selection; the dialog pictured in the Chinese docs has no such button. The finished dialog:
- 接口地址 / URL
- https://api.router.one/v1/chat/completions
# WorkBuddy:设置 → 模型 → 自定义模型 → 添加模型 → 提供商:自定义 / Custom # WorkBuddy AI: Avatar → System Settings → Models → Add Model → Provider: Custom 提供商 / Provider: 自定义 / Custom 接口地址 / Endpoint: https://api.router.one/v1/chat/completions API KEY / API Key: sk-your-router-one-key 模型名称 / Model Name: anthropic/claude-sonnet-5 # 高级配置 / Advanced Settings(按 /models 详情页 / per the model page) 工具调用 / Tool Calling: 勾选 / on 图片输入 / Image Input: 勾选 / on 自定义协议 / Custom Protocol: 关闭 / off 输入、输出 / Input, Output: 使用提供商默认值 / Use provider default
The URL, Custom Protocol and the OpenAI format
Per WorkBuddy's model configuration docs (checked 2026-11-22), Custom Protocol is a checkbox in Advanced Settings. When it is off (the default), WorkBuddy normalizes the endpoint URL to end with /chat/completions—per the English docs, other path segments required by the provider are not automatically appended—while the Chinese docs describe the default as using the standard /chat/completions path with automatic validation and completion. When Custom Protocol is on, WorkBuddy sends requests to the URL exactly as entered without appending /chat/completions or running path validation. The English docs also emphasize that Custom Protocol only changes URL handling and is not a general-purpose API protocol converter: the endpoint must still speak the OpenAI-compatible Chat Completions format. Router One is a gateway whose Chat Completions endpoint is on the standard path, so leave Custom Protocol off and enter the full URL with /v1 in it, https://api.router.one/v1/chat/completions—matching the example placeholder shown in both the English and Chinese Add Model dialogs, which state OpenAI-compatible API only. That covers every chat model in the catalog: Router One serves Claude, GPT, Gemini, Grok and DeepSeek IDs alike on POST /v1/chat/completions. Router One's Messages endpoint, POST https://api.router.one/v1/messages, is for clients built on the Anthropic format, such as Claude Code; a WorkBuddy custom model does not use it.
Capability flags, Input and Output
Per WorkBuddy's docs (checked 2026-11-22), preset providers fill in capability flags automatically; with Custom, set them yourself in Advanced Settings based on the model's actual capabilities on /models rather than turning every flag on:
- Tool Calling (工具调用): tick it when the model page lists tool calling (the Add Model screenshot in the English docs shows it ticked; the one in the Chinese docs shows it unticked). A WorkBuddy custom model uses the /chat/completions path, so mind OpenAI's endpoint rules for GPT-6 and GPT-6.2 IDs: per OpenAI's GPT-6 guide (the GPT-6 Astra view of latest-model, checked 2026-11-22), GPT-6 Astra and GPT-6.1 Sol call tools only through the Responses API and, on OpenAI's own API, do not accept reasoning effort none, and GPT-6 Sol calls functions on Chat Completions only with reasoning effort none; per the same guide (checked 2026-11-22), GPT-6.1 Terra, listed as of the 2026-10-28 catalog, also calls tools only through the Responses API. Per the same guide (checked 2026-11-22), GPT-6 Luna, listed as of the 2026-10-30 catalog, calls functions on Chat Completions only with reasoning effort none, as GPT-6 Sol does. Per OpenAI's GPT-6.2 guide (latest-model) and its GPT-6.2 Astra and GPT-6.2 Sol model pages (checked 2026-11-22), GPT-6.2 Astra and GPT-6.2 Sol support Chat Completions but also call tools only through the Responses API, and OpenAI's own API rejects reasoning effort none for them. For WorkBuddy tasks that need tools, pick a model these rules do not restrict and whose page lists tool calling, such as anthropic/claude-sonnet-5.
- Image Input (图片输入): tick it only when the model page lists image input; deepseek-v4-flash, for example, is text-only. As WorkBuddy's English docs note, image input means image understanding, not image generation.
- Reasoning (推理模式): the model pages carry no tag for it, so tick it only for a model that reasons. Where a model exposes a thinking intensity setting, WorkBuddy's English docs advise setting only levels the service accepts.
- Input and Output (输入, 输出): both start on Use provider default (使用提供商默认值). Entering a larger number does not expand the model's actual capacity: if you set Input, keep it at or below the context window on the model page; set Output only if you want a cap of your own.
Billing: custom-model requests bill to your Router One account
WorkBuddy's Chinese model configuration docs (checked 2026-11-22) settle this in their note on credit consumption: all charges a custom model incurs, tokens and subscriptions alike, are paid by you to the third party, which for these models is Router One; the English docs page does not discuss billing. On Router One, requests on a model that your plan tier lists draw that tier's allowance, and once it is used up they bill the wallet; requests on every other model bill the wallet per token at the rates on the model's page, and /pricing lists each plan's models and allowance. Top up your Router One wallet by card, Alipay, WeChat Pay or stablecoins (USDT/USDC) in Dashboard → Deposit (subscriptions are billed by card or base wallet balance, excluding promotional credit). The Chinese docs also note that every turn sends the whole current context to the model, so the larger the context, the more input tokens each request carries. Filter Dashboard → Logs by the WorkBuddy key: each record shows the model, tokens, the wallet charge or plan quota it used, status, total time and, for streamed requests that produced output, time to first token (TTFT).
Which model ID should WorkBuddy send?
Copy the exact model ID from /models, preserving case, hyphens, and version suffixes; do not substitute a display name. Open its detail page and match the supported API endpoints, context window, and capabilities such as tool calling to the provider and features selected in WorkBuddy. A catalog listing does not mean the client can use every feature of that model. Give each client or application a dedicated API key with a maxSpend cap. A key's spend cap (maxSpend) limits what that key can charge to your wallet: once its cumulative wallet charges reach the cap, its wallet-billed requests return HTTP 402. Requests covered by your plan's quota draw from the account's shared plan quota and do not count toward any key's cap.
Which API protocol is WorkBuddy using?
OpenAI-compatible describes an interface format; it does not make Chat Completions (/v1/chat/completions), Responses (/v1/responses), and Anthropic Messages (/v1/messages) interchangeable. Check the installed client version, provider configuration, and actual request path against the model detail page and API compatibility fact sheet. A successful plain-text chat does not establish support for hosted tools, conversation state, or file-editing features.
Verify the WorkBuddy call in your request trace
Send a simple text request from WorkBuddy, then match its trace in Dashboard → Logs by time, model, and request_id: tokens, the wallet charge or plan quota it used, latency, and status. Next, test streaming, tool calls, and multi-turn history separately. For failures, retain the actual request path, full error message, and request_id. If there is no matching log, either the request never reached the gateway (client configuration or connectivity) or the gateway refused it before calling a model — a 401 for the key, a 402 for funds, a 429 from your key's or account's limits, or a 400 or 404 for the model ID or endpoint; a streamed request that failed before any output may have no log either. The status and error message the client received tell which, so check them before attributing the error to the gateway or upstream.
FAQ
Does WorkBuddy charge for a custom model?
Per WorkBuddy's Chinese model configuration docs (checked 2026-11-22), all charges a custom model incurs, tokens and subscriptions alike, are paid by you to the third party; for a Router One model, that is your Router One account. A request on a model your plan tier lists draws that tier's allowance; every other request, and any request past the allowance, bills your wallet per token at the rates on the model's page. Give WorkBuddy its own key with a maxSpend cap, and check its wallet charges or plan quota usage in Dashboard → Logs and Dashboard → Usage.
Can WorkBuddy use Claude through Router One?
Yes. A WorkBuddy custom model uses the OpenAI Chat Completions format, and Router One serves Claude-family IDs such as anthropic/claude-sonnet-5 on POST /v1/chat/completions, alongside GPT, Gemini, Grok and DeepSeek IDs. Keep the same URL and enter the Claude ID as the model name. Router One's Messages endpoint, POST https://api.router.one/v1/messages, is for clients built on the Anthropic format, such as Claude Code.
Should the URL be https://api.router.one/v1 or the full /v1/chat/completions?
Enter the full https://api.router.one/v1/chat/completions. Per WorkBuddy's docs (checked 2026-11-22), with Custom Protocol off WorkBuddy normalizes the URL to end with /chat/completions (the English docs note you can enter a base URL containing /v1 or the full URL, and that other path segments the provider requires are not automatically appended). Router One's endpoint is on that standard path, and both the English and Chinese Add Model dialogs show the full /v1/chat/completions form as their placeholder. So keep Custom Protocol off and enter the full URL, /v1 included.
How is WorkBuddy's setup different from CodeBuddy's, and where is the configuration saved?
Both come from Tencent. CodeBuddy Code and CodeBuddy IDE are coding tools that read custom models from models.json files, covered in the CodeBuddy guide; WorkBuddy, an AI agent for office work, adds custom models through the settings UI (Avatar → System Settings → Models in WorkBuddy AI, or Settings → Model in the Chinese edition). Per WorkBuddy's English docs (checked 2026-11-22), WorkBuddy AI's default user-level configuration file is ~/.workbuddy-ai/models.json (%USERPROFILE%\.workbuddy-ai\models.json on Windows); if you changed the user configuration directory, the model settings page shows the path. Per WorkBuddy's Chinese docs (checked 2026-11-22), the Chinese edition stores configuration and API keys only locally in workbuddy/models.json without uploading them to the cloud, and custom models configured earlier through ~/.codebuddy/models.json keep working and can be viewed, edited or deleted in the interface. When you stop using a key, delete the custom model in WorkBuddy and revoke the key in Dashboard → API Keys.
Which models can WorkBuddy use through the gateway?
Choose a current catalog model that supports both the endpoint and the features WorkBuddy uses. Check /models and the model detail page for the exact ID, current rates, and capabilities; a family name such as GPT or Claude is not a compatibility guarantee. A client that lists a model has only read the ID, from its own configuration or from GET /v1/models; verify an actual request too.
Models are listed, but requests fail with 400 or 404. What should I check?
Record the actual request path and error message, then check the exact model ID. A 400 can indicate invalid parameters, unsupported tools, or a model/endpoint mismatch; a 404 can indicate an incorrect path or missing resource, so it does not by itself establish that a model was retired. If the error says must be called via, use the named endpoint or select a model supported on the current endpoint. Do not add or remove /v1 or /chat/completions across all clients indiscriminately.
Does this work from Mainland China?
Yes. The gateway is reachable from Mainland China without a VPN, and the configuration is identical to the global setup.
How do I debug a 401/402/403/429?
Start from what your client received: the status, the error body and the X-Request-ID header. A 401 (missing, unknown, revoked or expired key), a 402 (wallet balance, or the key's maxSpend cap) and a 429 from your key's or account's rate limits are refused before any model is called, so they never appear in Dashboard → Logs — nor does a 400 or 404 for a wrong model ID or endpoint. For 401, check that the full key is sent and still active in Dashboard → API Keys; for 402, top up or raise the key's maxSpend; for a 403, keep the full error body. For 429, back off and retry later; a 429 that does show up in Logs came back from upstream after the gateway's retries. Keep the request_id and follow the error-codes reference.