Skip to main content
OpenCode Desktop accepts custom OpenAI-compatible providers from its Settings panel. This guide adds A2Agent as a provider and attaches one or more models so you can start chatting right away.

Prerequisites

Add a Provider

  1. Open Open Code Desktop.
  2. Click Home in the top-left corner, or press Ctrl+B. Image
  3. Go to Settings → Providers → Show More Providers. Image
  4. Choose Custom OpenAI-compatible provider.

Fill in the Provider Information

Add Models

Enter the model-id. For available IDs, see A2Agent Models.You can add one or more models. Image

Select a Model and Start Chatting

Open OpenCode, and in Select model, choose the model you just added under the a2agent-opencode group, for example glm 5.3. Image Send any message, such as hi; if you receive a normal reply, the configuration is successful.