Skip to main content

Overview

OpenCode lets you configure custom model providers through its config file. With HubTo, you can route OpenCode requests through a single gateway and manage API keys, models, and quotas in one place.

Quick setup

Set your API key:
Create or update ~/.config/opencode/opencode.json:
Then start OpenCode:

Notes

  • Use https://api.hubto.ai/v1 as the base URL.
  • You can switch models by updating model to values like hubto/deepseek-v3.1.
  • You can also put opencode.json in a project root if you want per-project config.