> ## Documentation Index
> Fetch the complete documentation index at: https://docs.globalai.vip/llms.txt
> Use this file to discover all available pages before exploring further.

# WorkBuddy with Global AI: Custom Provider Configuration

> Connect WorkBuddy to Global AI via a custom provider. Enter the endpoint and key to chat with mainstream models for coding.

WorkBuddy is a standalone AI coding assistant that supports custom providers to connect third-party model APIs. This page shows how to configure Global AI in WorkBuddy for day-to-day coding chat. Download: [codebuddy.cn](https://www.codebuddy.cn/).

## Configuration

<Steps>
  <Step title="Install and sign in">
    Download and install WorkBuddy from [codebuddy.cn](https://www.codebuddy.cn/), then sign in to reach the main screen.

    <img src="https://mintcdn.com/globalai/ERAjY6P56loyiAIX/images/image-9.png?fit=max&auto=format&n=ERAjY6P56loyiAIX&q=85&s=3219e6be96ad3039e566e796e83088c7" alt="WorkBuddy main screen" width="1200" height="800" data-path="images/image-9.png" />
  </Step>

  <Step title="Open Settings">
    Click your avatar in the lower left and choose **Settings**.

    <img src="https://mintcdn.com/globalai/ERAjY6P56loyiAIX/images/image-10.png?fit=max&auto=format&n=ERAjY6P56loyiAIX&q=85&s=90cbd01c057878483eba39624d31229a" alt="Open Settings" width="1200" height="800" data-path="images/image-10.png" />
  </Step>

  <Step title="Add a custom model">
    Find the **Models** tab on the left and fill in:

    * **Provider**: choose **Custom**
    * **Endpoint**: `https://globalai.vip/v1/chat/completions`
    * **API Key**: paste [your `sk-` key](https://globalai.vip/keys)
    * **Model name**: copy the target model ID from the [Pricing page](https://globalai.vip/pricing) and paste it
    * **Advanced settings**: we recommend checking **Tool calls**, **Image input**, and **Thinking mode** at minimum

    Leave other options at their defaults, click **Save**, then close the settings dialog to return to the main screen.

    <img src="https://mintcdn.com/globalai/ERAjY6P56loyiAIX/images/image-11.png?fit=max&auto=format&n=ERAjY6P56loyiAIX&q=85&s=bf23fd298669f53b1230a913231bc27d" alt="Add custom model" width="1200" height="800" data-path="images/image-11.png" />
  </Step>

  <Step title="Choose the model and send a message">
    Pick the model you just added from the selector below the input, then send a test message.

    <img src="https://mintcdn.com/globalai/ERAjY6P56loyiAIX/images/image-12.png?fit=max&auto=format&n=ERAjY6P56loyiAIX&q=85&s=f20f64654357526ac02cc859035cd203" alt="Send a test message" width="1280" height="1048" data-path="images/image-12.png" />
  </Step>

  <Step title="Verify the integration">
    A normal reply means the integration works. You can also check [Usage logs](https://globalai.vip/usage-logs/common) to confirm the call was recorded.
  </Step>
</Steps>

## Troubleshooting

<AccordionGroup>
  <Accordion title="Authentication error on call">
    Confirm you are using a `sk-` key from Global AI and that it has not expired. Edit or regenerate at [globalai.vip/keys](https://globalai.vip/keys).
  </Accordion>

  <Accordion title="Model not found">
    Model IDs change over time. Use the current IDs shown on [globalai.vip/pricing](https://globalai.vip/pricing) and paste without extra whitespace.
  </Accordion>

  <Accordion title="Tool calls or image input fail">
    Not every model fully supports tool calls, image input, and thinking mode. If you see errors, uncheck the relevant option in settings or switch to a model that supports it.
  </Accordion>
</AccordionGroup>

## References

* [WorkBuddy website](https://www.codebuddy.cn/)
* [Global AI pricing](https://globalai.vip/pricing)


## Related topics

- [Global AI Client Integrations: Parameters and Selection](/en/clients/overview.md)
- [ChatWise Setup: Unified Multi-Provider Access via Global AI](/en/clients/chatwise.md)
- [Add Global AI to Dify as a Model Provider](/en/clients/dify.md)
- [ChatGPT(Codex) with Global AI: CC Switch or Manual Setup](/en/clients/codex.md)
- [ChatBox with Global AI: Desktop and Mobile Setup](/en/clients/chatbox.md)
