SolaFix AILanguage: English

Home › Claude › API

APIChecked

Claude CLI: API Key, CLI and Pricing

Searching for the Claude CLI? Here is the short answer as of December 2026: the CLI is a program called Claude Code that you run by typing commands, and it signs in through your browser. It can use a paid Claude plan or Claude Console API credentials, and plan prices are listed below.

SolaFix AI is an independent guide and is not affiliated with Anthropic.

At a glance

The Claude CLI is called Claude Code. You install it with one command and sign in through your browser.

It can use an eligible Claude subscription or Claude Console (API) credentials.

Pro costs $20 a month and includes Claude Code. Max is $100 and Ultra is $200 a month.

Not a developer? The Claude website and app are all you need.

01What the Claude CLI is, and how it differs from the Claude app

A CLI (command line interface) is a program you run by typing short commands instead of clicking buttons. The Claude CLI is named Claude Code. Think of the Claude website as a restaurant dining room, where you sit down and talk to the waiter. Claude Code is more like a kitchen helper that works right inside your own project folder.

There are two ways to pay for it. One is a Claude subscription such as Pro. The other is Claude Console credentials, which is the API route. An API (a doorway that lets programs talk to the AI) is the second door into the same kitchen.

For example

Ethan, a hobby coder who builds small web tools in the evening, already pays for Pro. He installs Claude Code, signs in with the same account and does not set up anything extra.

Megan, a freelance designer who only wants to ask questions and polish text, never opens a terminal. The Claude website and phone app cover everything she does.

02How to install Claude Code (the Claude CLI)

Installing is like putting a new tool on a shelf: you only do it once. The official install command is below. Copy it from the official quickstart if you can, because a command from a random website is like using a stranger's key on your front door.

Open a terminal (the text window where you type commands) on your computer.

Run the install command: curl -fsSL https://claude.ai/install.sh | bash

Type claude and press Enter. A browser window opens for sign-in.

Sign in with the account you want to use and approve the request. Then return to the terminal.

Sign in with the account that actually has your Claude plan. If you use a different account by mistake, you can end up with the message "There was an issue accessing Claude." Sign out in the browser and try again with the right one.

The official quickstart has the current install steps for Claude Code.

Open the Claude Code quickstart

This opens Anthropic's Claude Code documentation.

03Claude API key and Claude Console: how sign-in works

An API key works like a building access card. A program shows the card at the door, and the building knows whose account to charge. For Claude, this route goes through Claude Console credentials, and Claude Code can use them instead of a subscription.

You do not have to choose the API route. If you already have an eligible Claude plan, the browser sign-in is enough. The API docs are the place to follow the current steps for credentials, since screens can change.

For example

Luis, who runs a small online shop and wants a script to send questions to Claude automatically, needs the API route. A program has to place the order, so he uses Console credentials from the API docs and keeps the key private.

Never paste your API key into a public place or share it. It is an access card: whoever holds it can run requests on your account, and the fees land on you.

The API documentation is the starting point for credentials and setup.

Open the Claude API docs

This opens Anthropic's developer documentation.

04Claude CLI pricing: what each plan costs in the US

Claude Code comes with a Pro plan, so you do not buy it separately. Here are the individual plans in the US as of December 2026. Taxes may apply.

Free$0

Pro$20 a month, or $200 billed upfront for a year ($17 a month equivalent)

Max$100 a month (5x Pro usage)

Ultra$200 a month (10x Pro usage weekly)

Think of usage limits like a monthly data allowance on a phone plan. A bigger plan gives you more room before you slow down. Max and Ultra also include monthly API credits, and the pricing page shows the details.

If you subscribe through the iPhone app, the price shown for Pro in the US App Store is $20 a month. Apple decides the payment options there, so the final amount can differ from the website. For the plans themselves, see our Claude pricing guide.

The current prices are always on the official pricing page.

See Claude pricing

This opens Anthropic's pricing page.

05Claude CLI login not working? Common errors and fixes

Most sign-in problems show up as one of a few messages. Check the status page first, because some errors come from a service-side problem. Our Claude down and error guide covers the website and app.

Internal server error

The sign-in flow in Claude Code failed, and public reports included a problem on the service side. Check the status page and try again. If it keeps happening, contact support with the time and request details.

Auth error: Invalid code. Please make sure the full code was copied

Claude Code did not accept the code you pasted from the browser. Copy the whole current code and start the sign-in again. If it repeats, update Claude Code and report the CLI version and your operating system.

Please run /login · API Error: 401

The saved credential was rejected. Type /login to sign in again. If it continues, check which account or credential source Claude Code is using.

OAuth error: timeout of 15000ms exceeded

The browser step did not finish before the CLI gave up waiting. Check your internet connection and the status page, then retry. If it keeps failing, report the CLI version, your system and the login method to support.

Couldn't complete sign-in. You can try signing in from a different browser.

Sign-in was turned down. Try another browser, as the message suggests, and contact support if it stays the same.

There was an issue accessing Claude. Try signing out and back in

Claude Code could not use the account you signed in with. Sign out in the browser and sign in with the account you meant to use. Also check that it has an eligible plan or organization seat.

For website sign-in trouble instead, see Claude login help. To reach support, open your profile in Claude, then Help, then Get help.

Q&AFAQ

What is the Claude CLI?

It is Claude Code, a program you run by typing commands. You sign in through your browser.

What is the Claude CLI install command?

The official command is curl -fsSL https://claude.ai/install.sh | bash. Run claude afterward and follow the browser sign-in.

Do I need a paid plan to use Claude Code?

Claude Code can use an eligible Claude subscription or Claude Console credentials. Pro costs $20 a month and includes Claude Code.

How much does Claude cost in the US?

Free is $0, Pro is $20 a month, Max is $100 a month and Ultra is $200 a month. Taxes may apply.

Where do I get a Claude API key?

Follow the API docs to create credentials in Claude Console. The key is not created inside the Claude app.

Why does Claude Code say Please run /login?

The saved credential was rejected. Run /login to sign in again and check which account Claude Code is using.

Related guides

Claude: everything in one place

Claude pricing and plans

Claude login help

Claude Code API key and CLI

Prices, limits and links were checked on December 6, 2026. SolaFix AI is not affiliated with Anthropic.