C
Claude Code CLI
Details
- Command
-
claude - Docs
- https://code.claude.com/docs/en/overview
Authentication
Claude Code login session oauth2 discovered
$ claude Acquired by the CLI — running claude opens the auth flow and stores the credential.
env ANTHROPIC_API_KEY In the Claude Console, open Settings → API keys and create a key. Use workspaces to scope keys by project or environment. Send it in the x-api-key header for direct HTTP requests, or set ANTHROPIC_API_KEY for SDKs and supported CLIs.