Claude Code Cli接入Deepseek

1. C:\Users\.claude下创建settings.json

{
    "env": {
      "ANTHROPIC_AUTH_TOKEN": "your_api_key",
      "ANTHROPIC_BASE_URL": "https://api.deepseek.com/anthropic",
      "ANTHROPIC_MODEL": "deepseek-v4-pro[1m]",
      "ANTHROPIC_DEFAULT_SONNET_MODEL": "deepseek-v4-pro[1m]",
      "ANTHROPIC_DEFAULT_OPUS_MODEL": "deepseek-v4-pro[1m]",
      "ANTHROPIC_DEFAULT_HAIKU_MODEL":"deepseek-v4-flash",
      "CLAUDE_CODE_SUBAGENT_MODEL":"deepseek-v4-flash",
      "CLAUDE_CODE_EFFORT_LEVEL":"max"
    },
    "permissions": {
      "allow": [],
      "deny": []
    }
  }

2. C:\Users\Zychen下的.claude.json中加入"hasCompletedOnboarding": true

{
  "numStartups": 4,
  "installMethod": "global",
  "tipsHistory": {
    "agents-view-multiclauding": 1,
    "new-user-warmup": 2,
    "plan-mode-for-complex-tasks": 4
  },
  "firstStartTime": "xxx",
  "machineID": "xxx",
  "opusProMigrationComplete": true,
  "sonnet1m45MigrationComplete": true,
  "seenNotifications": {},
  "hasResetAutoModeOptInForDefaultOffer": true,
  "migrationVersion": 13,
  "userID": "xxx",
  ## 加入以下一行免登录
  "hasCompletedOnboarding": true,
}

OK了!

Logo

汇聚全球AI编程工具,助力开发者即刻编程。

更多推荐