How to Configure OpenCode with Models Hosted on an AI Gateway
If you already use OpenCode but your models are exposed through an AI Gateway instead of the model provider’s public endpoint, the setup is straightforward once you know where OpenCode expects the provider URL to stop. This post walks through configuring OpenCode to use Anthropic-hosted models through an AI Gateway, the mistakes that commonly cause Not Found errors, and the small details that make the setup reliable. The goal We want OpenCode to:...


