C
Claude Code CLI
Details
- Command
-
claude - Docs
- https://code.claude.com/docs/en/quickstart
Authentication
Claude account sign-in for Claude Code oauth2 discovered
$ claude Acquired by the CLI — running claude opens the auth flow and stores the credential.
env ANTHROPIC_API_KEY Sign in to the Anthropic Console, then create an API key from API Keys settings. The platform docs link to Get your API key and Authentication. Claude Code can also use this key when ANTHROPIC_API_KEY is set and you approve it on first run.