0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

10分でできるClaude Codeの初期構築

0
Last updated at Posted at 2026-07-07

【備忘録】Claude Codeの初期構築

次の会社でClaude Codeを使用するので練習する。

0. 使用環境

作業端末: MacBook Air 13
OS: macOS 15.6.1
M3


1. Claude Console でアカウント作成

  • Claude Code Console を検索してアカウントを作成
  • 利用プランとして 20 USD を選択

2. APIキーを作成

  • ダッシュボードにアクセス:
    https://platform.claude.com/dashboard
  • APIキーの項目から新規APIキーを作成

3. Claude Code をインストール

ターミナルで以下を実行:

brew install --cask claude-code

4. APIキーを環境変数に設定

ターミナルで以下を実行:

echo 'export ANTHROPIC_API_KEY="sk-ant-xxxx"' >> ~/.zshrc
source ~/.zshrc

sk-ant-xxxx はサンプル。実際には自分のAPIキーに置き換える。


5. Claude を起動

ターミナルで以下を実行:

claude

起動後、プロジェクトフォルダで このプロジェクトを説明して と入力して内容を確認。


6. Claude を停止

Ctrl-Cを連続で打つと停止します。


7. 所感

  • 初期セットアップは短時間で完了できた。
  • これから指示やループの仕方なども試していきたい。

補足(セキュリティ)

  • APIキーは第三者に共有しない
  • 可能なら利用上限アラートを設定しておく
0
0
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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?