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
| Backend | Install Command |
|---|---|
| Claude Code | npm install -g @anthropic-ai/claude-agent-sdk |
| Codex | npm install -g @openai/codex |
| OpenCode | npm install -g opencode |
You can install backends before or after IMtoAgent.
Method 1: One-Click Install (Recommended)
curl -fsSL https://imtoagent.pages.dev/install.sh | bashThe script:
- Detects your OS and environment
- Installs Bun if missing
- Installs Node.js if missing (Homebrew / nvm fallback)
- Installs or upgrades IMtoAgent
- Runs the setup wizard if no config exists
- Starts the gateway
Flags: --non-interactive, --skip-bun, --skip-start
Method 2: npm Global Install
npm install -g imtoagentimtoagent setupMethod 3: Source Install
git clone https://github.com/imtoagent/imtoagent.gitcd imtoagentbun installbun run bin/imtoagent setupUse this for development or if you want to modify the source code.