DeepSeek in OpenCode

Run OpenCode on DeepSeek at 55% off the official price, peak hours included. One block in your config adds HaryAI with every model we sell.

Start free →

Verify your email and get $0.35 of balance

US dollars per 1M tokens
ModelInput, cache hitInput, cache missOutput
DeepSeek V4.1 FlashDeepSeek, peak hours$0.006$0.3$1.2
DeepSeek, off-peak$0.003$0.15$0.6
HaryAI$0.003$0.135$0.54
DeepSeek V4 ProDeepSeek, peak hours$0.044$1.32$3.96
DeepSeek, off-peak$0.022$0.66$1.98
HaryAI$0.022$0.594$1.782

Set it up

  1. Add this to ~/.config/opencode/opencode.json and put your HaryAI key in place of the placeholder. If the file already has a providers block, add haryai inside it.

    ~/.config/opencode/opencode.json
    {
      "$schema": "https://opencode.ai/config.json",
      "model": "haryai/deepseek-flash",
      "providers": {
        "haryai": {
          "name": "HaryAI",
          "package": "@opencode/ai/providers/openai-compatible",
          "settings": {
            "baseURL": "https://api.haryai.com/v1",
            "apiKey": "<your HaryAI key>"
          },
          "models": {
            "deepseek-flash": {
              "name": "DeepSeek V4.1 Flash",
              "capabilities": {
                "input": ["text", "image"]
              }
            },
            "deepseek-v4-pro": {
              "name": "DeepSeek V4 Pro"
            }
          }
        }
      }
    }
  2. Start OpenCode and pick a model under haryai with /models.

Questions

Do I need a DeepSeek account?

No. Your HaryAI key is enough.

Do images work?

Yes, with V4.1 Flash. The block above already turns them on.

How do I remove it?

Delete the haryai block from ~/.config/opencode/opencode.json.

Sources

DeepSeek at 55% off the official price

Verify your email and get $0.35 of balance