Skip to main content
Watch: I Built an AI App Without Leaving Databricks

Setup guide - From DeepSeek and OpenCode docs

Use DeepSeek in OpenCode

OpenCode has a built-in DeepSeek provider, and both DeepSeek's integration guide and OpenCode's provider docs describe the same setup: /connect, choose DeepSeek, paste your API key, then pick a DeepSeek model with /models.

Last verified 5 steps3 official sources

Steps

  1. Step 1.

    Install or upgrade OpenCode from https://opencode.ai/download. DeepSeek strongly recommends version v1.18.30 or newer.

  2. Step 2.

    Start OpenCode.

    Terminal
    opencode
  3. Step 3.

    Run /connect, type deepseek and select the DeepSeek provider.

    Snippet
    /connect
  4. Step 4.

    Enter your DeepSeek API key from https://platform.deepseek.com/api_keys.

  5. Step 5.

    Run /models and select a DeepSeek model.

    Snippet
    /models

Caveats

  • The two guides label the models differently. DeepSeek's page says to select "DeepSeek-V4-Flash" and OpenCode's page uses "DeepSeek V4 Pro" as its example. DeepSeek's current API ids are deepseek-flash (DeepSeek-V4.1-Flash-1017) and deepseek-v4-pro. The legacy deepseek-v4-flash id still works but is routed to V4.1 Flash.
  • OpenCode's docs do not show the provider's base URL. The value listed here is DeepSeek's documented OpenAI-format base URL.

FAQ

How do I use DeepSeek in OpenCode?

OpenCode has a built-in DeepSeek provider, and both DeepSeek's integration guide and OpenCode's provider docs describe the same setup: /connect, choose DeepSeek, paste your API key, then pick a DeepSeek model with /models.

Which DeepSeek model ids work in OpenCode?

The official docs read for this guide list deepseek-flash and deepseek-v4-pro. Requests go to https://api.deepseek.com.

Is this an official DeepSeek and OpenCode setup?

The steps draw on both DeepSeek's and OpenCode's docs. It was last checked against 3 official pages on October 17, 2026.

Sources

Last verified against 3 official pages.

Newsletter

New models, set up the day they ship

One email per week. New model releases, the coding tools that support them and how to wire them up.