4. Common Client Configuration
复制页面
DMC GATEWAY DOCS EN
Welcome
1. Quick Start Guide
Registration & Login
Token Management
Account Settings
Pricing
Quota & Top-up
3. Developer Code Integration
Native OpenAI Format
Chat Completions Format
Responses Format
Native Claude Format
POST
4. Common Client Configuration
OpenCode Configuration Guide
OpenAI Codex Installation & Configuration Guide
AnythingLLM Configuration Guide
Claude Code Configuration Guide
TypingMind Configuration Guide
n8n Configuration Guide
OpenClaw Installation & Configuration Guide
Hermes Agent Configuration Guide
6. Troubleshooting
Common Misconceptions
Common Usage FAQ
4. Common Client Configuration
复制页面
OpenCode Configuration Guide
OpenCode Configuration Guide for DMC Gateway
#
Overview
#
OpenCode is a Go-based command-line programming tool (CLI) that provides powerful AI-assisted coding for developers. DMC Gateway (DMC) provides a dedicated plugin for quick configuration.
API Address
#
https://dmc.cc
Step 1: Install OpenCode CLI
#
Linux/macOS
#
Windows (NPM)
#
macOS Homebrew
#
Step 2: Configure Plugin
#
Step 1: Fill in API URL
#
https://dmc.cc
Step 2: Fill in API Key
#
Get your API Key from
DMC Gateway
Step 3: Add Models
#
Add the models you want to use according to your needs.
Step 4: Use OpenCode
#
Provider Configuration (create new if file doesn't exist)
#
1.
Configure OpenCode file
Create opencode.json if it doesn't exist
Auth Configuration (create new if file doesn't exist)
#
~/.local/share/opencode/auth.json
Start OpenCode
#
Select Model
#
In the chat box, enter:
/model
Then select the model with
DMC
suffix.
Quick Test
#
FAQ
#
Q1: Cannot connect after configuration?
#
1.
Check if the API Key is correct
2.
Confirm the URL is set to
https://dmc.cc
3.
Check if network connection is normal
Q2: Model list is empty?
#
Manually add the desired model identifier in the plugin configuration.
Q3: Windows system cannot find command?
#
Make sure Node.js global path is added to the system PATH environment variable.
Related Resources
#
DMC Gateway Official Website
OpenCode Official Website
修改于
2026-05-14 12:57:22
上一页
Native Claude Format
下一页
OpenAI Codex Installation & Configuration Guide