27
15

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がネイティブWindowsをサポートしました🎉🎉🎉Bedrock APIキーにも対応!!!

Last updated at Posted at 2025-07-12

Claude Codeがバージョン1.0.51でWindowsをサポートしました!!

image.png

これまではWSLが必要でしたが、WSLなしでも動作するようになりました!!

やってみよう!

動作に必要なものをインストールしましょう

この2つがインストールできたらClaude Codeをインストールしましょう。

PowerShellまたはコマンドプロンプト
npm install -g @anthropic-ai/claude-code

こんなエラーがでたら、PowerShellの実行ポリシーを変更して実行します。

npm : File C:\Program Files\nodejs\npm.ps1 cannot be loaded because running scripts is disabled on this system. For more inf
ormation, see about_Execution_Policies at https:/go.microsoft.com/fwlink/?LinkID=135170.
At line:1 char:1
+ npm
+ ~~~
    + CategoryInfo          : SecurityError: (:) [], PSSecurityException
    + FullyQualifiedErrorId : UnauthorizedAccess

PowerShellの実行ポリシーを変更する方法(現在のPowerShellセッションにのみ影響)

Set-ExecutionPolicy -Scope Process -ExecutionPolicy RemoteSigned

PowerShellの実行ポリシーを変更する方法(ユーザー設定として保存)

Set-ExecutionPolicy -Scope CurrentUser -ExecutionPolicy RemoteSigned

インストールできたら起動しましょう。

PowerShellまたはコマンドプロンプト
claude

image.png

起動しました!

Git for Windowsをインストールする必要があるのですが、Git Bash上ではClaude Codeは起動しないので注意してください

せっかくなので、Amazon BedrockのAPIキーを使ってみよう

Windowsサポートと同じバージョン1.0.51で、BedrockのAPIキーにも対応しました。

Bedrockの画面でAPIキーを発行しましょう。
image.png

発行したAPIキーなどを環境変数にセットしてClaude Codeを起動します。

PowerShellの場合
$Env:AWS_BEARER_TOKEN_BEDROCK="bedrock-api-key-*****"
$Env:CLAUDE_CODE_USE_BEDROCK="1"
$Env:ANTHROPIC_MODEL="us.anthropic.claude-sonnet-4-20250514-v1:0"
$Env:ANTHROPIC_SMALL_FAST_MODEL="us.anthropic.claude-3-5-haiku-20241022-v1:0"
$Env:AWS_REGION="us-east-1"

claude
コマンドプロンプトの場合
SET AWS_BEARER_TOKEN_BEDROCK=bedrock-api-key-*****
SET CLAUDE_CODE_USE_BEDROCK=1
SET ANTHROPIC_MODEL=us.anthropic.claude-sonnet-4-20250514-v1:0
SET ANTHROPIC_SMALL_FAST_MODEL=us.anthropic.claude-3-5-haiku-20241022-v1:0
SET AWS_REGION=us-east-1

claude

すばらしい

27
15
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
27
15

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?