Authentication
Cyberstrike requires authentication with at least one AI provider to function. This guide covers setting up credentials for supported providers.
Connect a Provider
The simplest way to authenticate — run in the TUI:
/connectSelect your provider from the interactive menu:
? Select provider❯ cyberstrike (recommended) anthropic (Claude Max or API key) github-copilot openai (ChatGPT Plus/Pro or API key) google openrouter …The list is built dynamically from the models catalog and ordered by priority, so the exact entries may vary. It’s an autocomplete prompt, not a fixed menu.
Provider-Specific Setup
Anthropic
- Get your API key from console.anthropic.com
- Run
/connect, select Anthropic, enter your API key
OpenAI
- Get your API key from platform.openai.com
- Run
/connect, select OpenAI, enter your API key
GitHub Copilot
- Have an active GitHub Copilot subscription
- Run
/connect, select Login with GitHub Copilot - Authorize via the browser OAuth flow — no API key needed
See GitHub Copilot for details.
OpenRouter
OpenRouter provides access to multiple models with a free tier:
- Get your API key from openrouter.ai/keys
- Run
/connect, select OpenRouter, enter your API key
Google Gemini
- Get your API key from ai.google.dev
- Run
/connect, select Google, enter your API key
Ollama (Local)
Ollama requires no API key but needs to be running locally:
# Start Ollamaollama serve
# Pull a modelollama pull llama3.3Then use /models to select an Ollama model.
Environment Variables
Set credentials via environment variables for CI/CD or automation:
# Anthropicexport ANTHROPIC_API_KEY="sk-ant-..."
# OpenAIexport OPENAI_API_KEY="sk-..."
# Googleexport GOOGLE_GENERATIVE_AI_API_KEY="AI..."
# OpenRouterexport OPENROUTER_API_KEY="sk-or-..."
# Groqexport GROQ_API_KEY="gsk_..."Add to your shell profile for persistence:
# ~/.bashrc or ~/.zshrcexport ANTHROPIC_API_KEY="sk-ant-..."Configuration File
Store credentials in the config file:
{ "provider": { "anthropic": { "options": { "apiKey": "{env:ANTHROPIC_API_KEY}" } } }}Tip
Use {env:VAR_NAME} syntax to reference environment variables in config files.
Managing Credentials
View Status
Use /status in the TUI to see connected providers and active credentials.
Switch Model
Use /models to switch between models from any connected provider. Or set a default in config:
{ "model": "anthropic/claude-sonnet-4-20250514"}Enterprise Authentication
AWS Bedrock
# Configure AWS credentialsaws configure
# Or via environmentexport AWS_ACCESS_KEY_ID="..."export AWS_SECRET_ACCESS_KEY="..."export AWS_REGION="us-east-1"Then run /connect and select Amazon Bedrock.
Azure OpenAI
export AZURE_API_KEY="..."export AZURE_RESOURCE_NAME="your-resource"Google Vertex AI
gcloud auth application-default loginSecurity Best Practices
- Never commit API keys to version control
- Use environment variables for sensitive values
- Rotate keys regularly for security
- Use scoped keys when available
- Monitor usage on provider dashboards
Troubleshooting
Invalid API Key
Error: Invalid API key- Verify key is correct (no extra spaces)
- Check key has not expired
- Ensure billing is active on provider
Rate Limits
Error: Rate limit exceeded- Wait and retry
- Check provider dashboard for limits
- Consider upgrading your plan
Network Issues
Error: Connection refused- Check internet connection
- Verify no proxy/firewall blocking
- Try different network