Config Commands
The cyberstrike config commands manage configuration settings at global and project levels.
📸 SCREENSHOT: config-commands.png
Config command interface
Get Configuration
Get Single Value
cyberstrike config get modelOutput:
anthropic/claude-sonnet-4-20250514Get Nested Value
cyberstrike config get provider.anthropic.options.apiKeyGet All Settings
cyberstrike config getJSON Output
cyberstrike config get --jsonSet Configuration
Set Single Value
cyberstrike config set model anthropic/claude-opus-4-5-20251101Set Nested Value
cyberstrike config set provider.anthropic.options.thinking.enabled trueSet Array Value
cyberstrike config set permissions.allow '["Bash(nmap *)", "Bash(nuclei *)"]'Global vs Project
# Global (default)cyberstrike config set model anthropic/claude-sonnet-4-20250514 --global
# Project onlycyberstrike config set model anthropic/claude-opus-4-5-20251101 --projectUnset Configuration
Remove Value
cyberstrike config unset modelRemove Nested Value
cyberstrike config unset provider.openaiList Configuration
Show All
cyberstrike config listOutput:
Configuration━━━━━━━━━━━━━
Global (~/.cyberstrike/config.json): model: anthropic/claude-sonnet-4-20250514 theme: cyberpunk
Project (./cyberstrike.json): model: anthropic/claude-opus-4-5-20251101 agent: web-application
Effective: model: anthropic/claude-opus-4-5-20251101 (project) theme: cyberpunk (global) agent: web-application (project)Show Source
cyberstrike config list --show-sourceShows where each value comes from.
Edit Configuration
Open in Editor
cyberstrike config editOpens global config in default editor.
Edit Project Config
cyberstrike config edit --projectSpecify Editor
EDITOR=vim cyberstrike config editInitialize Configuration
Create Global Config
cyberstrike config init --globalCreate Project Config
cyberstrike config initCreates cyberstrike.json in current directory.
With Template
cyberstrike config init --template securityAvailable templates:
default- Basic configurationsecurity- Security testing focusedminimal- Minimal configuration
Validate Configuration
Validate Current Config
cyberstrike config validateOutput:
Configuration Validation━━━━━━━━━━━━━━━━━━━━━━━━
Global config: ✓ ValidProject config: ✓ Valid
Warnings: - API key should use environment variable referenceValidate Specific File
cyberstrike config validate path/to/config.jsonReset Configuration
Reset to Defaults
cyberstrike config resetReset Specific Setting
cyberstrike config reset modelForce Reset
cyberstrike config reset --forceImport/Export
Export Configuration
cyberstrike config export > my-config.jsonExport Without Secrets
cyberstrike config export --no-secrets > shareable-config.jsonImport Configuration
cyberstrike config import my-config.jsonMerge Import
cyberstrike config import my-config.json --mergeEnvironment Variables
List Environment Variables
cyberstrike config envOutput:
Environment Variables━━━━━━━━━━━━━━━━━━━━━
Variable Status Used By──────────────────────────────────────────ANTHROPIC_API_KEY ✓ Set provider.anthropicOPENAI_API_KEY ✗ Not set provider.openaiGOOGLE_API_KEY ✗ Not set provider.googleCYBERSTRIKE_MODEL ✗ Not set modelShow Env Overrides
cyberstrike config env --overridesPath Information
Show Config Paths
cyberstrike config pathsOutput:
Configuration Paths━━━━━━━━━━━━━━━━━━━
Global Config: ~/.cyberstrike/config.jsonProject Config: ./cyberstrike.json (not found)Auth File: ~/.cyberstrike/auth.jsonData Directory: ~/.cyberstrike/Cache: ~/.cyberstrike/cache/Logs: ~/.cyberstrike/logs/Common Settings
Model
cyberstrike config set model anthropic/claude-sonnet-4-20250514Theme
cyberstrike config set theme cyberpunkPermission Mode
cyberstrike config set permissions.mode defaultAuto-compact
cyberstrike config set autoCompact trueKeybindings
cyberstrike config set keybinds.leader "ctrl+a"Examples
Set Up for Security Testing
# Set modelcyberstrike config set model anthropic/claude-opus-4-5-20251101
# Set default agentcyberstrike config set agent web-application
# Allow common security toolscyberstrike config set permissions.allow '["Bash(nmap *)", "Bash(nuclei *)", "Bash(ffuf *)"]'
# Set output directorycyberstrike config set outputDir "./security-reports"Team Configuration
# Export team configcyberstrike config export --no-secrets > team-config.json
# Team member importscyberstrike config import team-config.json --mergeDebug Configuration Issues
# Validatecyberstrike config validate
# Show effective configcyberstrike config list --show-source
# Check env varscyberstrike config envTroubleshooting
Invalid JSON
Error: Invalid JSON in config fileSolution:
cyberstrike config validate# Shows specific error locationPermission Denied
Error: Cannot write to config fileCheck permissions:
ls -la ~/.cyberstrike/config.jsonchmod 644 ~/.cyberstrike/config.jsonConfig Not Loading
Warning: Project config not foundInitialize:
cyberstrike config initTip
Use cyberstrike config list to see which values come from global vs project configuration.
Related Documentation
- Configuration Guide - Full configuration options
- Project Config - Project-level settings
- Global Config - Global settings