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】WSLでのClaude Code環境構築手順

1
Last updated at Posted at 2026-06-28

WSLの導入手順

  1. Microsoft StoreからUbuntuをインストールMictrosoftStoreのUbuntuインストール画面.png
  2. Ubuntuを開く
  3. ユーザー名とパスワードの初期設定を行う
  4. Ubuntuを最新に更新するため、以下のコマンドを実行
    • cd
    • sudo apt update
      • 初期設定で設定したパスワードを入力
    • sudo apt upgrade -y
    • sudo auto remove

Dockerの導入手順

  1. Microsoft StoreからDocker DesktopをインストールMictrosoftStoreのDockerDesktopインストール画面.png
  2. Docker Desktopを開く
  3. 歯車アイコンをクリック
  4. GeneralのStart Docker Desktop when you sign in to your computerにチェックDockerDesktopをスタートアップ起動.png
    ※Docker DesktopをPC起動時に起動させるようにすると、後で起動させる手間が減るため
  5. GeneralのUse the WSL 2 based engineにチェックDockerをWSLで有効にするため1.png
  6. ResourcesのWSL integrationにある、Enable integration with my default WSLとUbuntu にチェックDockerをWSLで有効にするため2.png
  7. 右下のApplyをクリック

Docker権限の設定

  1. Ubuntuを起動
  2. docker psコマンドを実行
    ※CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMESが表示されていたら3はスキップ
  3. sudo usermod -aG docker $USERコマンドを実行
  4. docker psコマンドを実行したら、CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMESが表示される

Claude Codeの導入手順

  1. Ubuntuを開く
  2. sudo apt install -y nodejs npmコマンドを実行して、Node.jsをインストール
  3. curl -fsSL https://claude.ai/install.sh | bashコマンドを実行して、Claude Codeをインストール

Claude Codeを開く

  1. Ubuntuを開く
  2. 以下の順でコマンドを実行
    • sudo apt update
      • 初期設定で設定したパスワードを入力
    • sudo apt upgrade -y
    • sudo auto remove
    • claude update
    • cd /mnt/※作業場所
    • claude
  3. 初期設定を行う
  4. (企業開発向け)/privacy-settingsで学習設定をオフにする
  5. 作業開始!

(番外編)Antigravity CLIのインストール方法

curl -fsSL https://antigravity.google/cli/install.sh | bashコマンドを実行して、Antigravity CLIをインストール

(番外編)Antigravity CLIを開く

  1. Ubuntuを開く
  2. 以下の順でコマンドを実行
    • sudo apt update
      • 初期設定で設定したパスワードを入力
    • sudo apt upgrade -y
    • sudo auto remove
    • agy update
    • cd /mnt/※作業場所
    • agy
  3. 初期設定を行う
  4. (企業開発向け)/privacyで学習設定をオフにする
  5. 作業開始!
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?