Skip to main content

Quick Install

The fastest way to get started - no installation required:
This runs the latest version directly without installing anything permanently.

Installation Methods

Run directly without installation:
Advantages:
  • No installation required
  • Always uses the latest version
  • No disk space used
  • Perfect for one-time or occasional use
Usage:

Method 2: Global Installation

Install once, use anytime:
Then run with:
Advantages:
  • Faster startup (already installed)
  • Works offline (after initial install)
  • Shorter command
  • Good for frequent use
Update:
Uninstall:

Method 3: Local Project Installation

Install as a project dependency:
Add to package.json scripts:
Run with:
Best for:
  • 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
Check your Node.js version:
If you need to install or update Node.js:
Using Homebrew:
Using nvm (recommended):
Official Installer: Download from nodejs.org

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
If you encounter permission errors:

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:
If you don’t have permission for global installs: Option 1: Use npx
Option 2: Fix npm permissions

Troubleshooting Installation

Node.js isn’t installed or not in your PATH.Fix:
  1. Install Node.js from nodejs.org
  2. Restart your terminal
  3. Verify: node --version
npm isn’t installed or is an old version.Fix:
You don’t have permission to install global packages.Fix:
Or use sudo (not recommended):
You’re running an old version.Fix:
npm can’t connect to the registry.Fix:

Advanced Installation

Offline Installation

For environments without internet access:
  1. Download on internet-connected machine:
  2. Transfer file to offline machine
  3. 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:
View latest version:

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