Skip to main content

All models hosted on Deploy can be used inside your agent harness of choice. This guide gives you two paths:
  1. Agent-assisted: Prompt your current coding agent to generate a configuration for your model.
  2. Manual setup: Merge the provided config snippet into the config file yourself.

Connect to your agent harness

You will need to specify the following in your config:
SettingValue
Base URLRegion-dependent. If you’re accessing from outside the US, you may have lower latency with:
Model IDAny model key listed under Available models. The guide below uses deepseek-ai/deepseek-v4.1-flash-1017 as an example.
API KeyYour Deploy Secret Key from Service API Keys.

Agent-assisted installation

Make sure your current OpenCode model works, then paste the prompt below. It installs Deploy as a provider, resolves your API key safely, and walks you through verification.
Prompt

Manual setup

Config file: opencode.json at the global path ~/.config/opencode/opencode.json (macOS/Linux), %USERPROFILE%.config\opencode\opencode.json (Windows), or the project-level opencode.json in the repo root. Global and project configs merge.
  1. Open or create the config file at one of the paths above. If a config already exists, keep every key you have (merge, don’t overwrite). If your OpenCode version is older than 1.x, install or upgrade first with npm i -g opencode-ai.
  2. If you are a Virginia (VA1) customer, use https://api-va1.deploy.com/api/v1 as the base URL. Otherwise, use https://api.deploy.com/api/v1.
  3. Merge in this provider block, replacing {DEPLOY_API_KEY} with your Deploy Secret Key (create the key at deploy.com → navigation sidebar → Service API Keys → Create API Key):
  1. Restart OpenCode so the config reloads (quit and relaunch, or /exit and re-run opencode), open the model picker (/models), select Deploy / Deepseek 4.1 Flash 1017, and send:
    Reply with the single word: connected