Docs
Skip to content

Use with OpenCode

OpenCode can use the OpenAI-compatible endpoint exposed by the gateway.

Configure

Set the gateway token and base URL:

bash
export OPENAI_API_KEY="sk-your-token"
export OPENAI_BASE_URL="https://api.geoq.help/v1"

Then start OpenCode in your project:

bash
opencode

Select a model that is available in your gateway account. The actual model list is shown in the console.

基于 new-api 二次开发,AGPL-3.0 协议