Skip to content

Installation

Prerequisites

  • macOS (Apple Silicon / Intel) or Linux
  • Node.js ≥ 18 (will be auto-installed if missing)
  • Bun runtime (will be auto-installed if missing)
  • At least one Agent backend installed

Agent Backends

BackendInstall Command
Claude Codenpm install -g @anthropic-ai/claude-agent-sdk
Codexnpm install -g @openai/codex
OpenCodenpm install -g opencode

You can install backends before or after IMtoAgent.

Terminal window
curl -fsSL https://imtoagent.pages.dev/install.sh | bash

The script:

  1. Detects your OS and environment
  2. Installs Bun if missing
  3. Installs Node.js if missing (Homebrew / nvm fallback)
  4. Installs or upgrades IMtoAgent
  5. Runs the setup wizard if no config exists
  6. Starts the gateway

Flags: --non-interactive, --skip-bun, --skip-start

Method 2: npm Global Install

Terminal window
npm install -g imtoagent
imtoagent setup

Method 3: Source Install

Terminal window
git clone https://github.com/imtoagent/imtoagent.git
cd imtoagent
bun install
bun run bin/imtoagent setup

Use this for development or if you want to modify the source code.