WorkBuddy Practical: 09 - Integrating External APIs

Explains external API integration, including authentication, parameters, errors, rate limits, and output checks. Readers can bring public or business data into Agent tasks without treating APIs as unconditionally trustworthy.

Even if you have no platform points left, you can connect your own LLM APIs. WorkBuddy supports integrating external LLM APIs, Coding Plans, and Token Plans.

Enter from settings, select model options, click "Add Model", and choose from various coding plans or custom APIs.

For instance, for DeepSeek, you only need to enter your API key. Or, for a local Ollama model, start Ollama locally (default port 11434, OpenAI-compatible endpoint). Local models ensure that data never leaves your computer, support offline usage, and cost zero tokens.

The config file is C:\Users\USERNAME\.workbuddy\models.json,you can edit it:

JSON
{
    "id": "k3",
    "name": "k3",
    "vendor": "Custom",
    "url": "https://api.kimi.com/coding/v1",
    "apiKey": "YOUR API KEY",
    "supportsToolCall": true,
    "supportsImages": true,
    "supportsReasoning": true,
    "useCustomProtocol": false
  }

REFERENCES

References

  1. 01WorkBuddyGuide GitHub 仓库
  2. 02WorkBuddy 实战蓝皮书在线阅读 - 第 9 章 如何接入外部 API

Series

WorkBuddy In Action

Next step

Continue with related topics

Continue along the same topic.

Browse latest news