Quick Start
Get started in seconds:What It Does
The CLI automatically:- Detects installed AI tools and your system configuration
- Installs missing tools if needed (with your permission)
- Configures AI assistants with your MegaLLM API key
- Backs up existing configurations before making changes
- Validates settings to ensure everything works correctly
Supported Tools
Claude Code
System & project-level configuration
Codex/Windsurf
System-level configuration
OpenCode
System & project-level configuration
Key Features
Smart Detection
Auto-detects OS, shell, installed tools, and existing configurations
Automated Setup
Interactive wizard with step-by-step guidance
Secure Storage
Automatic backups and secure API key management
Cross-Platform
Works on macOS, Linux, Windows with all major shells
How It Works
1
Run the CLI
Execute
npx megallm@latest in your terminal2
System Detection
CLI detects your OS, shell, and installed AI tools
3
Choose Configuration
Select which tool(s) to configure and at what level (system/project)
4
Enter API Key
Provide your MegaLLM API key (or get guided to create one)
5
Review & Confirm
Review configuration summary and confirm
6
Apply Settings
CLI configures files, sets environment variables, and reloads shell
Setup Levels
Choose between two configuration levels:System-Level (Global)
Applies to all projects on your machine. Best for:- Personal development environments
- Single developer setups
- Quick testing and prototyping
~/.claude/- Claude Code~/.codex/- Codex/Windsurf~/.config/opencode/- OpenCode
Project-Level (Local)
Applies only to the current project directory. Best for:- Team projects with shared configurations
- Different API keys per project
- Version-controlled settings
./.claude/- Claude Code./opencode.json- OpenCode
Codex/Windsurf only supports system-level configuration
Requirements
Node.js 18.0.0+ is required. Check your version:
node --version- macOS (Intel & Apple Silicon)
- Linux (all major distributions)
- Windows (10/11 with WSL or native)
- bash
- zsh
- fish
- PowerShell
Installation Options
NPX (Recommended)
No installation needed:Global Installation
Install once, use anytime:Specific Version
Run a specific version:First-Time Setup Example
Getting Your API Key
1
Visit Dashboard
Go to megallm.io/dashboard
2
Sign Up or Log In
Create an account or log in to existing one
3
Generate API Key
Navigate to API Keys section and click “Create New API Key”
4
Copy Key
Copy your key (starts with
sk-mega-) - you won’t see it again5
Use in CLI
Paste the key when prompted during setup
What’s Next?
Installation Guide
Detailed installation and requirements
Configuration
Complete setup workflow and configuration
Configuration
Configuration details for each tool
Examples
Practical usage examples
Troubleshooting
Common issues and solutions
FAQ
Frequently asked questions
Quick Links
- Claude Code Configuration
- Codex/Windsurf Configuration
- OpenCode Configuration
- GitHub Repository
- NPM Package
Support
Need help? We’re here for you:- Email: support@megallm.io
- Discord: Join our community
- GitHub Issues: Report bugs or request features

