WorkBuddy

Use Case:

Suitable for beginners who want to add custom OpenAI models through a graphical interface.

Recommended Method: Use Standard Base URL

  1. Open Settings: Launch WorkBuddy, click the settings icon in the bottom-left corner, and go to Settings → Model.

  2. Add a Model: Under Custom Models, click Add, +, or Custom.

  3. Select Custom: Choose Custom as the provider, and select OpenAI Compatible or OpenAI Chat Completions as the protocol.

  4. Enter URL: Enter https://api.maitoken.net/v1 .

  5. Disable Custom Protocol: Keep Custom Protocol turned off. When disabled, WorkBuddy automatically appends the standard /chat/completions path.

  6. Enter Key and Model: Enter your own MaiToken Key for API Key, and <Model ID> for Model Name or Model ID.

  7. Configure Model Capabilities: If the UI asks whether the model supports Tool Calling or Streaming, enable them according to the model's actual capabilities. If you are unsure, enable them first and test whether the Agent runs properly.

  8. Save Configuration: Click Save, then select this model under the Custom group in the chat model selector.

Field Recommended Value
URL https://api.maitoken.net/v1
Custom Protocol Off
API Key <Your MaiToken Key>
Model <Model ID>
Only enable Custom Protocol if WorkBuddy does not allow saving a Base URL or explicitly requires a full request URL. Once enabled, change the URL to https://api.maitoken.net/v1/chat/completions .

How to Test After Setup

  1. Test Basic Chat: Enter "Reply OK only" in the chat box. Receiving a normal reply confirms that your API Key, URL, and Model ID are basically correct.

  2. Test Project Reading: Open a test project and enter "Please read the current project directory and list only the top-level file names without modifying any files."

  3. Test Agent: Ask the Agent to create a new file named test-maitoken.txt containing hello, then verify the file was created. Do not run initial tests on a real production project.

Troubleshooting

Issue Suggested Fix
Request URL becomes /v1/v1 /v1 was duplicated in the URL; keep only https://api.maitoken.net/v1 .
Returns 404 after enabling Custom Protocol When Custom Protocol is enabled, you must enter the full URL https://api.maitoken.net/v1/chat/completions .
Model does not appear in the list Manually enter the exact Model ID on the Custom model management page, then reopen the model selector.