Tài liệu

WorkBuddy

Configure WorkBuddy with custom EasyAPI models to access every supported model through the relay.

Prerequisites

  • WorkBuddy client installed (https://www.workbuddy.ai)
  • An EasyAPI API token created in the console

Step 1: Open Model Settings

In WorkBuddy, click Settings in the top-right corner and select Models in the left navigation; you can also edit the local models.json file directly.

WorkBuddy

Step 2: Configure EasyAPI Custom Models

Add EasyAPI-compatible models in ~/.codebuddy/models.json or ~/.workbuddy/models.json. The url must be the full Chat Completions address (including /v1/chat/completions); set apiKey to your EasyAPI token.

availableModels must include the ids defined in models; use the model names from the EasyAPI model plaza as the model id.

Chat Completions URLhttps://token.easyapi.com/v1/chat/completions

The url field in WorkBuddy's models.json must use the full path above, not just the /v1 root.

~/.codebuddy/models.json

{
  "models": [
    {
      "id": "gpt-4o",
      "name": "GPT-4o (EasyAPI)",
      "vendor": "OpenAI",
      "url": "https://token.easyapi.com/v1/chat/completions",
      "apiKey": "sk-your-easyapi-token",
      "maxInputTokens": 128000,
      "maxOutputTokens": 16384,
      "supportsToolCall": true
    }
  ],
  "availableModels": [
    "gpt-4o"
  ]
}

Step 3: Restart and Select a Model

After saving, fully quit and reopen WorkBuddy, then select the configured EasyAPI model in the chat model dropdown to start a conversation.

Verification

  • Start a conversation in WorkBuddy and confirm you receive a model reply
  • A matching request appears in EasyAPI console under Usage Records