Overview
OpenCode is a terminal-first AI coding tool. It supports configurable providers, including OpenAI-compatible endpoints like ModelStack.Prerequisites
- OpenCode installed
- ModelStack API key from dashboard
Installation
Use the official installer:Configure ModelStack
Set your provider in OpenCode config with:- Base URL:
https://api.modelstack.cc/v1 - API key: your ModelStack key
- Model: e.g.
claude-sonnet-4-6
Troubleshooting
- Confirm your API key is active
- Confirm base URL is exact (no extra path)
- Confirm model name exists in supported models
Last verified: 2026-03-07