OpenCode + MeshTok

OpenCode is the most popular open-source terminal coding agent, supporting 75+ model providers. Connect it to MeshTok to use DeepSeek, GLM, Qwen and 175 other models for agentic coding at a fraction of the cost.

165k MIT GitHub

Setup guide

Connect OpenCode to MeshTok. Key setting: baseURL in opencode.json

1. Install OpenCode

npm install -g opencode

2. Create opencode.json with MeshTok provider

{
  "$schema": "https://opencode.ai/config.json",
  "provider": {
    "MeshTok": {
      "npm": "@ai-sdk/openai-compatible",
      "name": "MeshTok",
      "options": {
        "baseURL": "https://meshtok.com/v1"
      },
      "models": {
        "deepseek/deepseek-v4-pro": { "name": "DeepSeek V4 Pro" }
      }
    }
  }
}

3. Set your API key and run

export MeshTok_API_KEY="sk-your-key"
opencode --model MeshTok/deepseek/deepseek-v4-pro
Need an API key? Get your MeshTok key Credits start at $5, and you only pay for tokens you use.

Recommended models for OpenCode

These models work well with OpenCode. All available through one MeshTok API key.

DeepSeek
DeepSeek V4 Pro
DeepSeek
$0.43 / $0.86 /M View
Zhipu GLM
GLM-5.2
Zhipu GLM
$1.14 / $4.00 /M View
OpenAI
GPT-5.6 Sol
OpenAI
$5.00 / $30.00 /M View
Anthropic
Claude Sonnet 5
Anthropic
$3.00 / $15.00 /M View

Other apps you might like

AiderClineContinueRoo CodeCursorWindsurf