1. Obtain an API Key
Open the Ace Data Cloud application list, enter an available application, and copy the API Key.
2. Install OpenCode
3. Set the API Key
~/.zshrc or ~/.bashrc and reopen the terminal.
4. Configure the Provider
Edit~/.config/opencode/opencode.json:
claude-opus-5, gpt-6-sol), and replace all MODEL_ID values with the same name; for precise verification, use the id value in the /v1/models response. This value is the model name used by the API model parameter, not the UUID of the service or API. Ace Data Cloud uses Chat Completions here, so the adapter is @ai-sdk/openai-compatible.
5. Verify and Start
opencode in the project directory. If the model does not appear, check the configuration file path, JSON syntax, and environment variables; 401 indicates that the Key is invalid or has not been exported.
The IDE extension reuses the same OpenCode runtime configuration; see OpenCode IDE Extension.

