One install

Install MegaLens in one command.

Install the MegaLens CLI, sign in through your browser, and connect every supported AI coding tool on your machine in one run. No token copy, no silent sudo, and no automatic code uploads.

macOS, Linux, and WSL
curl -fsSL https://megalens.ai/install.sh | bash

Windows (PowerShell)
irm https://megalens.ai/install.ps1 | iex

Requires Node.js 18 or newer. If Node.js is missing, the installer stops and prints clear install instructions without modifying your system.

What the installer does

  1. 1

    Checks Node.js for your user account

    Verifies Node.js 18+ is available and installs the MegaLens CLI into your user directory. Never runs sudo or asks for admin elevation.

  2. 2

    Browser sign-in (no token copy)

    Opens your browser to approve this device and asks you to confirm your account in the terminal. No API key or token is ever copied or printed.

  3. 3

    Registers detected AI tools with backups

    Finds installed coding tools, backs up every config file before editing, and adds MegaLens after one terminal confirmation.

  4. 4

    Checks your GitHub connection

    If your MegaLens account already has GitHub connected, the installer confirms it right away. Otherwise it prints one link to connect GitHub.

Detected AI tools

MegaLens checks for these tools in your user profile, creates a private backup before editing any file, and skips read-only, invalid, or git-tracked configs safely.

Claude Code

~/.claude.json

Cursor

~/.cursor/mcp.json

Codex CLI

~/.codex/config.toml

Gemini CLI

~/.gemini/settings.json

Google Antigravity

~/.gemini/config/mcp_config.json

VS Code (Copilot)

Code/User/mcp.json

GitHub Copilot CLI

~/.copilot/mcp-config.json

Windsurf

~/.codeium/windsurf/mcp_config.json

Using ChatGPT, Claude.ai, or Lovable instead? Those connect directly in the browser with no local install. See all integrations.

Uninstall in one command

Removes MegaLens entries from your tool configs while keeping your other settings intact, revokes this installation's credential, and removes the user-level launcher.

Uninstall on macOS, Linux, WSL, or Windows
megalens uninstall

If you connected the MegaLens GitHub App, it runs independently on GitHub. You can manage or remove it anytime in your GitHub installation settings.

Safety and privacy

  • Installs only for the current user account. Never runs sudo or administrator elevation.
  • Never reads or uploads your code or git repositories during installation.
  • Writes config files atomically with owner-only permissions and keeps backups outside git repositories.