SolaFix AILanguage: English

Home › Claude Code › API

APIChecked

Claude Code CLI: GitHub, CLI and Pricing

If you searched for the Claude Code CLI and an API key, here is the short version as of December 2026. Claude Code is a tool you run in a terminal, and it can sign in with a Claude account or with an API key. You install it with one command, and the key route is billed separately from a Pro or Max plan.

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

At a glance

Claude Code CLI is a program you start by typing claude in a terminal (a text window for typing commands).

You can sign in with a Claude account, an Anthropic Console account, or an ANTHROPIC_API_KEY.

Pro ($20 a month) includes Claude Code. The free Claude plan does not.

Not sure which route to pick? A Claude Pro plan is the simplest start. A key is for people who want API billing.

Checking the live status…

Live status comes from the official status page. If it does not load, use the button below.

Open the official Claude Code status page

01Claude Code CLI: what it is and how to install it

Think of the CLI (command-line interface, a way to use software by typing instead of clicking) as a walkie-talkie to Claude. You press the button in your terminal, say what you need, and Claude answers back right there. There are no windows to click through.

The install is one line, and it differs by system. The official overview page has the current version of each line, so copy from there if anything looks different.

macOS, Linux, WSLcurl -fsSL https://claude.ai/install.sh | bash

Windows PowerShellirm https://claude.ai/install.ps1 | iex

Windows CMDcurl -fsSL https://claude.ai/install.cmd -o install.cmd && install.cmd && del install.cmd

WSL (Windows Subsystem for Linux, a Linux mode inside Windows) is supported too. Prefer a download button? The Claude Code download page covers the desktop app and the web version as well.

The official overview page lists every install option.

Open the Claude Code docs

This opens Anthropic's own documentation.

02Claude Code API key vs a Claude subscription

An API key (a long secret code that proves who is asking) works like a building access card. The program shows the card at the door, and the building knows whose account to charge. A Claude subscription is different: it is more like a monthly gym pass.

Claude Code accepts several sign-in routes. They are a Claude account, an Anthropic Console account, an ANTHROPIC_API_KEY, and credentials from Amazon Bedrock, Google Cloud Vertex AI or Microsoft Foundry. Most people only ever meet the first three.

For example

Victor, a spreadsheet analyst trying a terminal for the first time, already pays for Claude Pro. He installs the CLI, types claude, and signs in with the same Claude account. He never touches an API key.

Kate, a freelance developer who wants usage billed through the API, sets up an ANTHROPIC_API_KEY instead. Claude Code asks her to approve using it, and her usage runs on API credentials rather than a plan.

The free Claude plan does not include Claude Code in the pricing comparison. If you only have a free chat account, a Pro plan or API credentials are the two ways in.

03How to sign in to Claude Code step by step

Install the CLI with the one-line command for your system, then open a new terminal window.

Type claude and press Enter to start it.

Sign in when it asks. Use your Claude account, or choose the route that matches your Console, provider or key setup.

Using a key instead? Set ANTHROPIC_API_KEY first, start claude, and approve its use when prompted.

Treat the key like a house key. Anyone holding it can run requests on your account, and the bill lands on you, so never paste it into a public place.

Having trouble with the account side? The Claude Code login help goes through it in more detail.

04Claude Code pricing: where to look

Plan prices are easy to see, and they sit on the official pricing page. Here is what the plans cost in the US as of December 2026. Prices shown do not include tax.

Free$0, Claude Code not included

Pro$20 a month ($200 billed yearly)

Max 5x$100 a month

Max 20x$200 a month

Max 5x gives five times the Pro usage and Max 20x gives twenty times. Usage limits apply to all of them, and how fast you reach them depends on the model, the length of the conversation and file size. For API-key use, the fees are billed separately, so check the official pricing page for current rates. The Claude Code pricing guide compares the plans in more detail.

Current prices are on Anthropic's pricing page.

Open the Claude pricing page

This opens Anthropic's own pricing page.

05Claude Code command not found or 403 error? Fixes

Most CLI problems fall into a few buckets. The official troubleshooting page lists each one. Here are the ones people hit most often.

command not found

Your computer cannot find the program. Either the CLI is not installed, or its install folder is missing from PATH (the list of places your computer looks for programs). Run the install troubleshooting steps, then open a new terminal and try again.

For example

Andre, a student setting up his laptop between classes, installs the CLI and types claude in the same window. He sees command not found. He closes the window, opens a new terminal and tries again.

Release verification failed for Claude Code

The installer or updater could not verify the release it downloaded. Follow the installer troubleshooting steps and retry with a supported installation method.

403 Forbidden

Access was denied for the account, organization or provider you used. Check which account is signed in, and use the supported login method for the provider you chose.

API Error: 5xx and 529 Overloaded

A 5xx error means something broke on the server side. A 529 means the service is temporarily overloaded. In both cases, check the status block at the top of this page, wait a little and retry. Our Claude Code status page covers outages.

429

You hit a rate limit (a cap on how many requests you can send in a window of time) or used up your capacity. Wait for the limit to reset and review your usage and plan limits.

Unable to get organization UUID

Cloud sessions need a claude.ai subscription sign-in. An API key or Console credentials do not give Claude Code the account details it needs there. Run claude auth login or /login, then retry with the Claude account you use for the cloud session.

06Where to get help

If the fixes above do not work, sign in to Claude, open the profile menu, choose Get help and use the support messenger. Free users can chat with Fin. For technical problems with the CLI, the Claude Code GitHub repository issues page is the place to report them.

The Help Center is the official place to start.

Open Claude support

This opens Anthropic's support article.

Q&AFAQ

Do I need an API key to use Claude Code?

No. You can sign in with a Claude account, and a Pro or Max plan includes Claude Code. An API key is one of several sign-in options.

How do I install the Claude Code CLI?

Run the one-line command for your system: the curl line for macOS, Linux and WSL, or the irm line for Windows PowerShell. Then open a new terminal and type claude.

Is Claude Code free?

The free Claude plan does not include Claude Code in the pricing comparison. Pro costs $20 a month in the US, and CLI or API use can instead be billed through Console or API credentials.

Why does it say command not found after I install it?

Your computer cannot find the program, usually because the install folder is missing from PATH. Open a new terminal and try again, then follow the troubleshooting steps if it still fails.

Can I use Claude Code with Amazon Bedrock or Google Vertex AI?

Yes. The CLI and IDE integrations support credentials from Amazon Bedrock, Google Cloud Vertex AI and Microsoft Foundry.

Related guides

Claude Code overview

Download Claude Code

Claude Code login help

Claude Code plans and prices

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