forked from pthonwdong-svg/claude-code
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
72 lines (54 loc) · 2.94 KB
/
.env.example
File metadata and controls
72 lines (54 loc) · 2.94 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
# ============================================================
# Claude Code 环境变量配置模板
# 复制为 .env 后按需修改
# ============================================================
# ── 认证(必须配置其中一项)──────────────────────────────────
# 方式 1:直接设置 API Key(PAYG / Enterprise)
# ANTHROPIC_API_KEY=sk-ant-xxxxx
# 方式 2:OAuth 登录(Pro / Max / Team)
# 运行 `claude login` 进行 OAuth 认证,无需手动配置
# 方式 3:通过脚本获取 API Key
# 在 settings.json 中配置 apiKeyHelper
# ── API 端点 ────────────────────────────────────────────────
# 自定义 API 地址(默认 https://api.anthropic.com)
# ANTHROPIC_BASE_URL=https://api.anthropic.com
# ── 模型选择 ────────────────────────────────────────────────
# 覆盖默认模型(支持别名或完整模型 ID)
# 别名:sonnet / opus / haiku / opusplan / best
# 完整 ID:claude-sonnet-4-6 / claude-opus-4-6 / claude-haiku-4-5
# 1M 上下文:claude-opus-4-6[1m] / claude-sonnet-4-6[1m]
# ANTHROPIC_MODEL=sonnet
# 覆盖轻量模型(用于分类器等内部任务)
# ANTHROPIC_SMALL_FAST_MODEL=claude-haiku-4-5-20251001
# ── 云提供商(互斥,仅选其一)────────────────────────────────
# AWS Bedrock
# CLAUDE_CODE_USE_BEDROCK=1
# AWS_REGION=us-east-1
# Google Vertex AI
# CLAUDE_CODE_USE_VERTEX=1
# Azure Foundry
# CLAUDE_CODE_USE_FOUNDRY=1
# ── 代理配置 ────────────────────────────────────────────────
# HTTP/HTTPS 代理
# https_proxy=http://127.0.0.1:7890
# http_proxy=http://127.0.0.1:7890
# all_proxy=socks5://127.0.0.1:7890
# ── 行为控制 ────────────────────────────────────────────────
# 精简模式(跳过 hooks/LSP/plugins/keychain)
# CLAUDE_CODE_SIMPLE=1
# 禁用自动记忆
# CLAUDE_CODE_DISABLE_AUTO_MEMORY=1
# 禁用快速模式
# CLAUDE_CODE_DISABLE_FAST_MODE=1
# 自定义配置目录(默认 ~/.claude)
# CLAUDE_CONFIG_DIR=~/.claude
# 禁用终端标题更新
# CLAUDE_CODE_DISABLE_TERMINAL_TITLE=1
# ── 远程 / 容器 ────────────────────────────────────────────
# 远程模式
# CLAUDE_CODE_REMOTE=1
# ── 调试 ────────────────────────────────────────────────────
# 开发环境
# NODE_ENV=development
# 详细工具日志
# OTEL_LOG_TOOL_DETAILS=1