Learning Timeline
Key Insights
Free Credits for New Users
If you are registering an Anthropic Console account for the first time, you usually receive $5 in free credits to try Claude Code at no initial cost.
Billing Requirements
Claude Code uses a 'pay-as-you-go' model. Ensure you have added credits (Add Credits) in the Anthropic Console so the tool can function to generate code.
Step by Step
How to Install and Set Up Claude Code CLI
- Open a new Terminal window on your computer (macOS, Linux, or Windows).
- Visit the official Anthropic documentation for Claude Code and copy the installation command provided.
- Paste the command into the Terminal and press 'Enter' to begin the installation process.
- Follow the installer instructions and select 'Standard Installation' for an easier setup process.
- Once installed, type `claude` in the Terminal to run the application for the first time.
- When the Terminal prompts for an API Key, open your browser and log in to the Anthropic Console (console.anthropic.com).
- Click on the 'API Keys' menu in the sidebar.
- Click the 'Create Key' button, give it a name (e.g., 'Claude Tutorial'), and click 'Create'.
- Copy the displayed API Key (make sure to save it as it will not be shown again).
- Return to the Terminal, paste the API Key, and press 'Enter' to link your account.
- Go to the 'Billing' section in the Anthropic Console to ensure you have sufficient credits.