1
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?

Claude Code × AWS BedrockでVS CodeをAI開発環境に変える最短セットアップ手順

Posted at

ChatGPT Image 2025年10月17日 22_30_57.png

AIを活用した開発支援ツールを「自分の環境」で動かしたいエンジニアへ。
この記事では、Claude CodeをAWS Bedrock経由でVS Code上に導入する最短手順をまとめます。

セットアップ手順の全体像

1. 事前準備

  • Node.js v18以上
  • VS Code v1.98以上
  • Bedrockアクセス権を持つIAMユーザー(アクセスキー・シークレットキー)

2. Claude Codeのインストール

npm install -g @anthropic-ai/claude-code

3. VS Codeの拡張機能をインストール

VS Codeの拡張機能から「Claude Code for VS Code」を検索しインストール。
右上にスパークアイコンが出れば導入完了です。

Bedrock経由での設定方法

VS Codeの作業フォルダに .vscode/settings.json を配置し、以下を記述します。

[
  { "name": "CLAUDE_CODE_USE_BEDROCK", "value": "true" },
  { "name": "AWS_REGION", "value": "us-east-1" },
  { "name": "ANTHROPIC_MODEL", "value": "global.anthropic.claude-sonnet-4-5-20250929-v1:0" },
  { "name": "AWS_ACCESS_KEY_ID", "value": "★IAMで発行したキー★" },
  { "name": "AWS_SECRET_ACCESS_KEY", "value": "★シークレットキー★" }
]

⚠️ 注意:「{"CLAUDE_CODE_USE_BEDROCK": true}」形式では無視されます。
必ず "name""value" 形式で記述してください。

設定後、VS Codeを再起動すれば準備完了です。

動作確認

スパークアイコンからチャット画面を開き、「この関数をリファクタリングして」など自然言語で指示してみましょう。
即応答すればBedrock経由の接続成功です。

参考リンク

1
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
1
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?