Kairo
█████ ███
░░███ ░░░
░███ █████ ██████ ████ ████████ ██████
░███░░███ ░░░░░███ ░░███ ░░███░░███ ███░░███
░██████░ ███████ ░███ ░███ ░░░ ░███ ░███
░███░░███ ███░░███ ░███ ░███ ░███ ░███
████ █████░░████████ █████ █████ ░░██████
░░░░░ ░░░░░ ░░░░░░░░ ░░░░░ ░░░░░ ░░░░░░

Secure CLI for managing Claude Code API providers with age (X25519) encryption, multi-provider support, and audit logging.
Quick Start
# Install
curl -sSL https://raw.githubusercontent.com/dkmnx/kairo/main/scripts/install.sh | sh
# Setup
kairo setup
# Configure a provider
kairo config zai
# Test provider
kairo test zai
# Switch and query
kairo switch zai "Help me write a function"
# Or use default provider
kairo -- "Quick question"
Commands
| Command |
Description |
kairo setup |
Interactive setup wizard |
kairo config <provider> |
Configure a provider |
kairo list |
List configured providers |
kairo status |
Test all providers |
kairo test <provider> |
Test specific provider |
kairo switch <provider> |
Switch and exec Claude |
kairo default <provider> |
Get/set default provider |
kairo reset <provider|all> |
Remove provider config |
kairo rotate |
Rotate encryption key |
kairo audit <list|export> |
View/export audit logs |
kairo -- "query" |
Query mode (default provider) |
kairo version |
Show version info |
kairo update |
Check for updates |
Features
| Feature |
Description |
| Multi-Provider |
Native Anthropic, Z.AI, MiniMax, Kimi, DeepSeek, custom |
| Secure Encryption |
Age (X25519) encryption for all API keys |
| Key Rotation |
Regenerate encryption keys periodically |
| Audit Logging |
Track all configuration changes |
| Interactive Setup |
Guided configuration wizard |
| Provider Testing |
Test connectivity and configuration |
| Auto-Update |
Notifications for new versions |
Documentation
User Guides:
Developer Resources:
Reference:
Modules
kairo/
├── cmd/ # CLI commands (Cobra) → [cmd/README.md](cmd/README.md)
├── internal/ # Business logic
│ ├── audit/ # Audit logging
│ ├── config/ # Configuration loading
│ ├── crypto/ # Age encryption
│ ├── providers/ # Provider registry
│ ├── validate/ # Input validation
│ └── ui/ # Terminal output
└── pkg/ # Reusable utilities → [pkg/README.md](pkg/README.md)
Configuration
Location: ~/.config/kairo/
| File |
Purpose |
Permissions |
config |
Provider configurations (YAML) |
0600 |
secrets.age |
Encrypted API keys |
0600 |
age.key |
Encryption private key |
0600 |
audit.log |
Configuration change history |
0600 |
Building
make build # Build to dist/kairo
make test # Run tests with race detection
make lint # Run code quality checks
make format # Format code with gofmt
Security
- Age (X25519) encryption for all API keys
- 0600 permissions on sensitive files
- Secrets decrypted in-memory only
- Key generation on first run
- Use
kairo rotate for periodic key rotation
License
MIT (c) 2025 dkmnx
Resources