How do you sign in to your account?
Installation and first steps · lesson 5 of 11
The first time you type claude and press Enter, the program asks you to authenticate (to prove who you are).
Usually your browser opens and you log in there.
Which account do I use?
You have three options:
- Claude subscription (Pro, Max, Team, Enterprise): you log in with your claude.ai account - API key from the Anthropic Console: you pay for what you use, counted in tokens (small pieces of text) - Cloud providers: Amazon Bedrock or Google Vertex AI
The subscription is the simplest option.
Cloud providers are for companies that already use these services. They’re set up through environment variables (settings that programs read when they start).
What’s an API key?
A “password for programs”. You pay for what you use, counted in tokens (small pieces of text, roughly a syllable or a short word).
It’s handy for automation, for example CI (systems that run checks on their own every time the code changes).
Does the free account work?
No, Claude Code doesn’t work on the free account. The cheapest subscription, Pro, costs $20 a month, plus tax (or $17 a month if you pay for a whole year).
You can cancel it any time, and it’s enough for the whole course.
Can I switch accounts later?
Yes. To switch accounts, type /login in Claude.
To sign out, type /logout.
And in the desktop app?
In the desktop app: you sign in inside the app, the first time you open it, with your claude.ai account. The app, the web and the phone work with a Claude subscription, not with an API key. If the Code tab asks you to “upgrade”, your account is on the free plan.
In the terminal, you can switch accounts any time, without leaving Claude. Let’s try it.