Skip to main content

Configure WorkBuddy with UniKey

This guide shows how to use UniKey's OpenAI-compatible API in WorkBuddy. Choose either the visual setup in WorkBuddy or the models.json file method. Both methods use the same UniKey API key and model names.

1. Download and sign in to WorkBuddy

  1. Download and install WorkBuddy from the official WorkBuddy download page.
  2. Open WorkBuddy.
  3. Sign in with WeChat or your mobile phone number.
  4. Create a UniKey API key at UniKey. Keep it private: do not commit it to Git, share it in chat, or include it in screenshots.

UniKey values you will need

SettingValue
ProviderCustom
API URLhttps://www.getunikey.ai/v1/chat/completions
API keyYour UniKey API key
Model nameA lowercase model ID from the UniKey pricing page

Use the full /v1/chat/completions URL in WorkBuddy. Model IDs are case-sensitive; copy them in lowercase from the UniKey pricing page.

Method 1: Add a model in WorkBuddy

This is the recommended method for most users.

  1. In WorkBuddy, open Settings.
  2. Select Models in the left sidebar.
  3. Select Add Model.

WorkBuddy Models page

  1. In the model editor, enter the following values:
FieldValue
ProviderCustom
API URLhttps://www.getunikey.ai/v1/chat/completions
API KeyYour UniKey API key
Model nameFor example, gpt-5.6-terra
  1. Under Advanced settings, use these recommended values for the models in this guide:
SettingRecommended value
Tool callsEnabled
Image inputEnabled
Reasoning modeEnabled
Reasoning onlyDisabled
Allow disabling reasoningEnabled
Custom protocolDisabled
Default reasoning strengthAutomatic
Supported reasoning strengthsMedium, High, XHigh
Maximum input tokens262144
Maximum output tokens65536

WorkBuddy custom model form

  1. Select Save.
  2. Repeat these steps for each UniKey model you want to use, then select the model in a WorkBuddy chat and send a short test message.

If a model does not support image input, tool calls, or reasoning, turn off the matching option for that model.

Method 2: Edit models.json directly

Use this method when you want to add several models at once.

  1. Fully quit WorkBuddy.
  2. Open the WorkBuddy model configuration folder:
~/.workbuddy/models.json

~ is your current user home folder. Before changing the file, make a manual backup by copying models.json to models.json.bak in the same folder.

  1. Replace the file contents with the configuration below.
  2. Replace every PASTE_YOUR_UNIKEY_API_KEY_HERE value with your own UniKey API key. Do not change the model IDs unless you have confirmed their lowercase names on the UniKey pricing page.
[
{
"id": "gpt-5.6-terra",
"name": "gpt-5.6-terra",
"vendor": "Custom",
"url": "https://www.getunikey.ai/v1/chat/completions",
"apiKey": "PASTE_YOUR_UNIKEY_API_KEY_HERE",
"supportsToolCall": true,
"supportsImages": true,
"supportsReasoning": true,
"useCustomProtocol": false,
"reasoning": {
"supportedEfforts": ["medium", "high", "xhigh"]
},
"maxInputTokens": 262144,
"maxOutputTokens": 65536
},
{
"id": "gpt-5.6-sol",
"name": "gpt-5.6-sol",
"vendor": "Custom",
"url": "https://www.getunikey.ai/v1/chat/completions",
"apiKey": "PASTE_YOUR_UNIKEY_API_KEY_HERE",
"supportsToolCall": true,
"supportsImages": true,
"supportsReasoning": true,
"useCustomProtocol": false,
"reasoning": {
"supportedEfforts": ["medium", "high", "xhigh"]
},
"maxInputTokens": 262144,
"maxOutputTokens": 65536
},
{
"id": "gpt-5.5",
"name": "gpt-5.5",
"vendor": "Custom",
"url": "https://www.getunikey.ai/v1/chat/completions",
"apiKey": "PASTE_YOUR_UNIKEY_API_KEY_HERE",
"supportsToolCall": true,
"supportsImages": true,
"supportsReasoning": true,
"useCustomProtocol": false,
"reasoning": {
"supportedEfforts": ["medium", "high", "xhigh"]
},
"maxInputTokens": 262144,
"maxOutputTokens": 65536
}
]
  1. Save the file and restart WorkBuddy.
  2. Open Settings → Models to check that the new models appear, then select one in a chat to test it.

Troubleshooting

ProblemWhat to check
Authentication errorRe-enter the UniKey API key and make sure it has no spaces or missing characters.
Model not foundCheck the lowercase model ID on the UniKey pricing page.
Model does not appearConfirm that models.json is valid JSON, then fully restart WorkBuddy.
A feature does not workDisable the corresponding tool, image, or reasoning option and try again.

When requesting help, replace the API key value with REDACTED before sharing any configuration file or screenshot.