Skip to main content
Deploy OpenClaw AI gateway on your server with a single command, powered by Crazyrouter as the API backend. Ready to use out of the box.

Quick Install

curl -fsSL https://raw.githubusercontent.com/xujfcn/crazyrouter-openclaw/main/install.sh | bash
Or download and run:
wget https://raw.githubusercontent.com/xujfcn/crazyrouter-openclaw/main/install.sh
bash install.sh
The installer supports both Chinese and English. You’ll be prompted to choose a language at startup. You can also set INSTALLER_LANG=en or INSTALLER_LANG=zh to skip the prompt.

Prerequisites

ItemDescription
Crazyrouter API KeySign up at crazyrouter.com, then go to Token Management to create one
Telegram Bot Token (optional)Create a bot via @BotFather on Telegram

Installation Process

The script automatically handles these 10 steps:
1

Detect System Environment

Identifies Linux/macOS, x64/arm64, and selects the appropriate installation method
2

Install Node.js 22+

Auto-installs via NodeSource (apt/dnf/yum) or Homebrew if not present
3

Install OpenClaw

Installs the OpenClaw package globally via npm
4

Configure API Key

Interactive prompt for your Crazyrouter API Key (or reads from environment variable)
5

Pre-configure AI Models

Sets up 15+ popular models, ready to use immediately
6

Apply Stability Patches

TLS crash guard, memory directory backup, and more
7

Install IM Plugins

DingTalk, WeCom, QQ Bot, and other messaging plugins
8

Configure System Service

Uses systemd on Linux, launchd on macOS for auto-start on boot
9

Start Gateway

Launches the OpenClaw service on port 18789 (default)
10

Telegram Bot Setup

Interactive Telegram Bot configuration with automatic owner pairing

Pre-configured Models

ProviderModels
ClaudeOpus 4.6, Sonnet 4.6
GPT5.2, 5.3 Codex, 5 Mini, 4.1, 4.1 Mini, 4o Mini
Gemini3.1 Pro, 3 Flash
DeepSeekR1, V3.2
OthersKimi K2.5, GLM-5, Grok 4.1, MiniMax M2.1

Environment Variables

Use environment variables for non-interactive installation:
VariableDescriptionDefault
CRAZYROUTER_API_KEYPre-set API key, skips interactive prompt
GATEWAY_PORTGateway port18789
INSTALLER_LANGInstaller language (zh/en)Interactive
# Non-interactive install example
CRAZYROUTER_API_KEY=sk-xxx INSTALLER_LANG=en \
  curl -fsSL https://raw.githubusercontent.com/xujfcn/crazyrouter-openclaw/main/install.sh | bash

Post-Install Management

systemctl --user status openclaw    # Check status
journalctl --user -u openclaw -f    # View logs
systemctl --user restart openclaw   # Restart
systemctl --user stop openclaw      # Stop

Supported IM Platforms

Telegram

Interactive setup during install with auto owner pairing

Discord

Connect via OpenClaw plugin

DingTalk

Plugin auto-configured during install

WeCom

Plugin auto-configured during install

QQ Bot

Plugin auto-configured during install

Slack / Lark

Connect via OpenClaw plugin

System Requirements

  • Linux (x64/arm64) or macOS (x64/arm64)
  • 1-2 GB RAM
  • Internet access
  • Crazyrouter API Key

GitHub Repository

View source code, submit issues, or contribute