naopoyo.com
  • Docs
  • Tags
  • Bookmarks
  • Tools
  • About
  • Docs
  • Tags
  • Bookmarks
  • Tools
  • About

目次

© naopoyo

🛖

Claude Code のはじめかた

公開日
2日前
2026-01-22
更新履歴
GitHubで見る
  • Claude Code

概要

Claude Code のセットアップ方法を記録しています。2026年1月時点でのプラン、料金を記載しています。

Claude.ai のアカウントを作成

Claude.ai のアカウントを作成します。月額 $20 の Pro プランで契約します。Free プランではウェブ上でのチャットしか使えないので Pro プラン以上を契約する必要があります。

Claude Code のインストール

Terminal
curl -fsSL https://claude.ai/install.sh | bash

上記のコマンドを実行すると、次のように表示されます。内容に従って ~/.zshrc を修正します。

Terminal
Setting up Claude Code...

✔ Claude Code successfully installed!

  Version: 2.1.15

  Location: ~/.local/bin/claude


  Next: Run claude --help to get started

⚠ Setup notes:
  • Native installation exists but ~/.local/bin is not in your PATH. Run:

  echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.zshrc && source ~/.zshrc


✅ Installation complete!

次のコマンドでバージョンが表示できるか確認しましょう。

Terminal
claude --version

Claude Code のアンインストール

以下のコマンドでバイナリと設定ディレクトリの削除を行います。

Terminal
rm -f ~/.local/bin/claude
rm -rf ~/.claude

~/.zshrc などの export PATH="$HOME/.local/bin:$PATH" も不要であれば削除します。

ログイン

ターミナルに claude と入力すると初回はログインが必要です。

1. Claude account with subscription · Pro, Max, Team, or Enterprise を選択すると、ブラウザが開くので、Claude.ai への接続を「承認する」で承認します。

言語を日本語に設定する

/config で設定を開き、「Config」→「Language」を日本語にします。

Ghostty のインストール

Ghostty はターミナルエミュレータです。次のように、Homebrewでインストールします。

Terminal
brew install --cask ghostty

Devcontainer で Claude Code を使用する

devcontainer.json に以下の設定を追記する。

devcontainer.json
{
  "features": {
    "ghcr.io/devcontainers/features/node:1": {}, // node が不要な場合は取り除く
    "ghcr.io/anthropics/devcontainer-features/claude-code:1.0": {}
  },
  "mounts": ["source=${localEnv:HOME}/.claude,target=/home/vscode/.claude,type=bind"],
}
GitHub - anthropics/devcontainer-features: Anthropic Dev Container Features, including Claude Code CLI
Anthropic Dev Container Features, including Claude Code CLI - anthropics/devcontainer-features
github.com favicon
github.com
GitHub - anthropics/devcontainer-features: Anthropic Dev Container Features, including Claude Code CLI

参考

Claude Code概要 - Claude Code Docs
Claude Codeについて学びましょう。Anthropicのエージェント型コーディングツールで、ターミナルに統合され、アイデアをこれまで以上に速くコードに変えるのに役立ちます。
claude.com favicon
claude.com
Claude Code概要 - Claude Code Docs

目次

最近更新された記事

🙃
Tailwind CSS メモ
約5時間前 - 2026年01月24日
  • Tailwind
  • CSS
🍕
Next.js + Vitest の環境構築手順
1日前 - 2026年01月23日
  • Vitest
  • Next.js
🚈
Claude Code メモ
2日前 - 2026年01月22日
  • Claude Code