1
1. Install OpenCode
Install the latest build via npm or brew, then create an API key in SacredGPT.

npm i -g opencode-ai@latest
# or: brew install anomalyco/tap/opencodeOpen-source coding agent for terminal and desktop. Connect SacredGPT as a custom OpenAI-compatible provider.
01 — Version & UI Path
02 — Step-by-Step Setup
Install the latest build via npm or brew, then create an API key in SacredGPT.

npm i -g opencode-ai@latest
# or: brew install anomalyco/tap/opencodeIn opencode.json define a custom provider using @ai-sdk/openai-compatible and the SacredGPT baseURL.
In OpenCode open providers, choose SacredGPT, then a model such as sacredai-heretic.
03 — Configuration Example
{
"$schema": "https://opencode.ai/config.json",
"provider": {
"sacredgpt": {
"npm": "@ai-sdk/openai-compatible",
"name": "SacredGPT",
"options": {
"baseURL": "https://sacredgpt.pro/v1",
"apiKey": "{env:SACREDGPT_API_KEY}"
},
"models": {
"sacredai-heretic": { "name": "SacredAI Heretic" }
}
}
}
}04 — Troubleshooting
Confirm opencode.json is in the project root or ~/.config/opencode/, then restart OpenCode.
Export SACREDGPT_API_KEY=sgpt_live_… or set apiKey directly. Live keys require 2FA.
Tell us what happened and what you expected. The page address and browser details help us reproduce it faster.