Skip to main content

Cyberstrike is now open source! AI-powered penetration testing for security professionals. Star on GitHub

Auth Commands

The cyberstrike auth commands manage AI-provider credentials. There are exactly three subcommands — login, logout, and list — and none of them take flags; each is interactive.

📸 SCREENSHOT: auth-commands.png

Authentication command interface

auth login

Terminal window
cyberstrike auth login [url]

Starts an interactive login. Cyberstrike shows a provider list (built from the models catalog) and prompts for the API key or OAuth flow. The optional url positional pre-selects a well-known provider URL; the provider is otherwise chosen from the menu — you do not pass the provider as a flag.

? Select provider
❯ cyberstrike (recommended)
anthropic (Claude Max or API key)
github-copilot
openai (ChatGPT Plus/Pro or API key)
google
openrouter

Credentials are stored in the data directory (~/.local/share/cyberstrike/auth.json).

auth list

Terminal window
cyberstrike auth list # alias: ls

Lists the providers you have credentials for.

auth logout

Terminal window
cyberstrike auth logout

Interactively select a stored credential to remove.

Caution

There is no auth status, auth verify, auth refresh, or auth switch command, and no --key/--oauth/--json/--all flags. Login is always the interactive auth login flow.

Environment Variables

Instead of storing credentials, you can provide provider keys via environment variables — see AI Providers and Environment Variables. For example:

Terminal window
export ANTHROPIC_API_KEY="sk-ant-..."
export OPENAI_API_KEY="sk-..."
export GOOGLE_GENERATIVE_AI_API_KEY="AI..."