2
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

AWS Bedrock経由にVSCodeのClaude Code拡張機能設定方法

Last updated at Posted at 2025-11-18

事前準備(割愛)

  • VSCodeインストール(Claude Code拡張機能も入れておく
  • AWS CLIインストール、Docker環境の場合は別途対応
  • Bedrock有効化、Profile準備

Bedrock接続検証

echo '{"anthropic_version":"bedrock-2023-05-31","max_tokens":100,"messages":[{"role":"user","content":"Hello"}]}' > request.json
aws bedrock-runtime invoke-model \
   --model-id jp.anthropic.claude-sonnet-4-5-20250929-v1:0 \
   --body file://request.json \
   --region ap-northeast-1 \
   --profile dev-ai-labs \
   --cli-binary-format raw-in-base64-out \
   output.txt

VSCodeでBedrock経由にClaude Code利用できるように設定

  1. VSCodeで Cmd+Shift+P 押す > Preferences: Open User Settings (JSON) 入力
  2. 以下のように追記
"claudeCode.environmentVariables": [
    {
        "name": "CLAUDE_CODE_USE_BEDROCK",
        "value": "1"
    },
    {
        "name": "AWS_REGION",
        "value": "ap-northeast-1"
    },
    {
        "name": "AWS_PROFILE",
        "value": "dev-ai-labs"
    },
    {
        "name": "ANTHROPIC_MODEL",
        "value": "jp.anthropic.claude-sonnet-4-5-20250929-v1:0"
    }
]
  1. VS Code を再読み込み

  2. Sparkアイコンを押したら、Claude Codeチャットが開かれる

VSCodeでCopilotチャット表示

Cmd+Shift+I:チャットウィンドウ表示
Cmd+I:クイックチャット表示

2
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?