Quick Install
The fastest way to get started - no installation required:Installation Methods
Method 1: NPX (Recommended)
Run directly without installation:- No installation required
- Always uses the latest version
- No disk space used
- Perfect for one-time or occasional use
Method 2: Global Installation
Install once, use anytime:- Faster startup (already installed)
- Works offline (after initial install)
- Shorter command
- Good for frequent use
Method 3: Local Project Installation
Install as a project dependency:package.json scripts:
- Team projects with standardized setup
- Version-locked installations
- CI/CD pipelines
System Requirements
Required
Node.js 18.0.0 or higher is required to run the MegaLLM CLI
- macOS
- Linux
- Windows
Supported Platforms
Supported Shells
Verification
After installation, verify everything works:Permissions
macOS/Linux
The CLI needs write permissions to:~/.claude/- Claude Code configuration~/.codex/- Codex configuration~/.config/opencode/- OpenCode configuration~/.bashrc,~/.zshrc, etc. - Shell configuration files
Windows
Run your terminal as Administrator if you encounter permission issues.AI Tool Installation
The CLI can automatically install AI coding tools if they’re missing. Required permissions:Troubleshooting Installation
npm command not found
npm command not found
Node.js isn’t installed or not in your PATH.Fix:
- Install Node.js from nodejs.org
- Restart your terminal
- Verify:
node --version
npx: command not found
npx: command not found
npm isn’t installed or is an old version.Fix:
EACCES permission errors
EACCES permission errors
You don’t have permission to install global packages.Fix:Or use
sudo (not recommended):Version mismatch errors
Version mismatch errors
You’re running an old version.Fix:
Network or proxy errors
Network or proxy errors
npm can’t connect to the registry.Fix:
Advanced Installation
Offline Installation
For environments without internet access:-
Download on internet-connected machine:
- Transfer file to offline machine
-
Install from tarball:
CI/CD Installation
For automated environments:Docker Installation
Include in your Dockerfile:Version Management
Check Current Version
Install Specific Version
Version History
View all available versions:Uninstallation
Remove Global Installation
Remove Configuration Files
The CLI creates configuration files that persist after uninstallation:Complete Cleanup
To completely remove all traces:Next Steps
Configuration
Complete setup workflow
Configuration
Configuration details
Examples
Usage examples
Troubleshooting
Common issues

