Files
dc-docs/output/feishu-docs/IGr9wUHPUi6dMwkE1s6cVKPfnGe.md
T
2026-06-23 14:43:31 +08:00

37 lines
1.3 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# IGr9wUHPUi6dMwkE1s6cVKPfnGe
Source: https://dianchukeji.feishu.cn/wiki/IGr9wUHPUi6dMwkE1s6cVKPfnGe
# 1 下载并安装AWS CLI
https://awscli.amazonaws.com/AWSCLIV2.msi
# 2 配置aws configure
在命令行中输入:aws configure
按提示依次输入 AK、SK、区域(us-east-1)、输出格式(回车跳过)。
如下:
- AWS Access Key ID:你的 AK
- AWS Secret Access Key:你的 SK
- Default region name:us-east-1
- Default output format:直接回车
> :chestnut:
这里的ak和sk,指的是AWS那边配发的Access Key和Secret Access Key,需要向IT同学申请
# 3 Claude Code 配置
## 3.1 打开claude的配置文件:
![图片](../feishu-images/IGr9wUHPUi6dMwkE1s6cVKPfnGe_Jb9LbEdMmoA6.png)
## 3.2 在配置文件中写入:以下内容
{
"env": {
"CLAUDE_CODE_USE_BEDROCK": "1",
"AWS_REGION": "us-east-1",
"ANTHROPIC_MODEL": "us.anthropic.claude-opus-4-6-v1",
"ANTHROPIC_SMALL_FAST_MODEL": "us.anthropic.claude-haiku-4-5-20251001-v1:0",
"HTTP_PROXY": "http://127.0.0.1:1080",
"HTTPS_PROXY": "http://127.0.0.1:1080"
},
"skipDangerousModePermissionPrompt": true,
"includeCoAuthoredBy": false
}
> :trophy:
这里的http_proxy主要是为了配置代理网络,如果不写上这2行的话,会被Claude禁止使用api