Claude Codeの使い方(Claude Pro 20ドルプラン)

覚書です。

Claude Codeの使い方(Claude Pro 20ドルプラン)

Node.jsが必要なようですが、個人的にインストール済みだったため割愛。

npm install -g @anthropic-ai/claude-code
claude --version(もしくはclaude -v)
claude

claudeだけでログインになるっぽいです。

Light mode (colorblind-friendly)

個人的な好みで色を選びます。

 Claude Code can now be used with your Claude subscription or billed based on API usage through your Console account.


 Select login method:

 ❯ 1. Claude account with subscription
      Starting at $20/mo for Pro, $100/mo for Max - Best value, predictable pricing

   2. Anthropic Console account
      API usage billing

定額で使いたいため20ドルプランを選びます。ブラウザが起動するため[承認する](Claudeにログイン済みでした。ログインしていないとGmailなどでログインする必要があります。)

Login successful. Press Enter to continue…

ターミナルに上記のメッセージが表示されます。[enter]を押します。

Security notes:

 1. Claude can make mistakes
    You should always review Claude's responses, especially when
    running code.

 2. Due to prompt injection risks, only use it with code you trust
    For more details see:
    https://docs.anthropic.com/s/claude-code-security

 Press Enter to continue…

セキュリティの説明がでるため[enter]

 Use Claude Code's terminal setup?

 For the optimal coding experience, enable the recommended settings
 for your terminal: Shift+Enter for newlines

 ❯ 1. Yes, use recommended settings
   2. No, maybe later with /terminal-setup

 Enter to confirm · Esc to skip

おすすめ設定にしておきます。

 Do you trust the files in this folder?                                                                                                      │
│                                                                                                                                             │
│ /Users/path                                                                               │
│                                                                                                                                             │
│ Claude Code may read files in this folder. Reading untrusted files may lead Claude Code to behave in an unexpected ways.                    │
│                                                                                                                                             │
│ With your permission Claude Code may execute files in this folder. Executing untrusted code is unsafe.                                      │
│                                                                                                                                             │
│ https://docs.anthropic.com/s/claude-code-security                                                                                           │
│                                                                                                                                             │
│ ❯ 1. Yes, proceed                                                                                                                           │
│   2. No, exit       

フォルダを読みにいっていいか聞かれます。

Tips for getting started:

 1. Run /init to create a CLAUDE.md file with instructions for Claude
 2. Use Claude to help with file analysis, editing, bash commands and git
 3. Be as specific as you would with another engineer for the best results
 4. ✔ Run /terminal-setup to set up terminal integration

 ※ Tip: Start with small features or bug fixes, tell Claude to propose a plan, and verify its suggested edits


╭─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│                                                                                                                                             │
│ 🎉 Claude Code extension installed in Windsurf!                                                                                             │
│ Version: 1.0.17                                                                                                                             │
│                                                                                                                                             │
│ Quick start:                                                                                                                                │
│ • Press Cmd+Esc to launch Claude Code                                                                                                       │
│ • View and apply file diffs directly in your editor                                                                                         │
│ • Use Cmd+Option+K to insert @File references                                                                                               │
│                                                                                                                                             │
│ For more information, see https://docs.anthropic.com/s/claude-code-ide-integrations     
╭─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ > Try "fix typecheck errors"                                                                                                                │
╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
  ? for shortcuts  

上記の入力はサンプルのようです。入力されているメッセージを消して、適当に指令を送ります。

test.mdにはなんて入力されているか解説してください。
よかったらシェアしてね!
  • URLをコピーしました!
  • URLをコピーしました!

コメント

コメントする