1. 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
  1. 4. Common Client Configuration

Claude Code Configuration Guide

Features#

Interactive configuration for API address and authentication token
Automatic API connection validation
Configure default model settings
Supports Windows / Linux / macOS
Environment variables auto-persist

Prerequisites#

Before starting, ensure you have Git installed (v2.40+ recommended) on your computer. Claude Code requires Git to manage code repositories.

Check if Git is Already Installed#

Open terminal and run:
If a version number is displayed normally (as shown below), Git is installed. You can skip the installation step:
git version 2.45.0

Install Git#

Windows:
Method 1: Command installation (Recommended)
Open PowerShell and run:
winget install --id Git.Git -e --source winget
Method 2: Manual download and install
Visit Git Official Website: https://git-scm.com/downloads/win
macOS:
Method 1: Install using Homebrew (Recommended)
Method 2: Run the following command in Terminal
Linux (Ubuntu / Debian):

Install Claude Code#

macOS / Linux / WSL:
Windows PowerShell (Recommended):
irm https://claude.ai/install.ps1 | iex
Windows CMD:
winget install Anthropic.ClaudeCode
提示
If "claude" is not recognized as an internal or external command, you need to add the installation path to PATH.

PowerShell Cannot Start Claude?#

If PowerShell reports a script execution policy error, run the following command to remove the restriction:
Set-ExecutionPolicy -Scope CurrentUser -ExecutionPolicy RemoteSigned
Verify installation after completion:
image.png

Step 2: Run Configuration#

setting.json Configuration#

  {
    "env": {
         "ANTHROPIC_BASE_URL": "https://dmc.cc/v1", 
    # Your API token
    "ANTHROPIC_AUTH_TOKEN": "sk-*********", 
    # Interactive main model
    "ANTHROPIC_MODEL": "DeepSeek-V3.2",
    # Explore sub-agent, conversation summary, and other lightweight background tasks
    "ANTHROPIC_DEFAULT_HAIKU_MODEL": "DeepSeek-V3.2", 
    # Execution phase in opusplan mode
    "ANTHROPIC_DEFAULT_SONNET_MODEL": "DeepSeek-V3.2",
    # Planning phase in opusplan mode
    "ANTHROPIC_DEFAULT_OPUS_MODEL": "DeepSeek-V3.2",
    # Set 300 seconds timeout
    "API_TIMEOUT_MS": "300000", 
    # Enable experimental beta content sent by claude code to API
    "CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS": "1"
    }
  }
image.png
1.
Fill in Base URL
2.
Fill in the correct key
3.
Configure model and save exit
4.
Open a new terminal and enter claude to open Claude Code
5.
Select Yes, proceed
6.
Enter "Hello" in the dialog and press Enter
7.
Model responds successfully. You can start using.

Quick Test#

image.png
image.png
© 2025 DMC
修改于 2026-05-13 18:41:25
上一页
AnythingLLM Configuration Guide
下一页
TypingMind Configuration Guide
Built with