Skip to main content
Self-hosted means you run LemonClaw directly on your own VPS or machine. You only pay for AI model usage through your LemonData balance — no instance fees.
Prefer a hosted setup? Create a Claw instance to get the same LemonClaw runtime and WebUI without managing servers yourself.

Quick Install

curl -fsSL https://raw.githubusercontent.com/hedging8563/lemonclaw/main/deploy/self-hosted/install.sh | bash
The installer will prompt you for your LemonData API Key. Get one from your Dashboard.

What Gets Installed

1

Node.js 22+

Automatically installed if missing (via NodeSource on Linux, Homebrew on macOS)
2

LemonClaw

LemonClaw package pre-configured with LemonData API
3

15 AI Models

Claude, GPT-5, Gemini, DeepSeek, and more — ready to use
4

IM Plugins

DingTalk, WeCom, and QQ plugins pre-installed
5

System Service

Auto-starts on boot (systemd on Linux, launchd on macOS)

Requirements

RequirementDetails
OSLinux (Ubuntu/Debian/CentOS/RHEL) or macOS
Architecturex64 or arm64
RAM1 GB minimum, 2 GB recommended
API KeyGet one here

After Installation

The installer outputs your access credentials:
✓ LemonClaw installed successfully!

  WebUI:        http://your-ip:18789
  Token:        your-gateway-token
  Auto-login:   http://your-ip:18789?token=your-gateway-token
  Model:        claude-sonnet-4-6
Save your token! You need it to access the WebUI and connect messaging platforms.

Connect Messaging Platforms

Access the WebUI at http://your-ip:18789 with your token, then follow the platform-specific guides:
The platform guides in this section cover the same LemonClaw WebUI used by both hosted Claw instances and self-hosted LemonClaw installs. If a guide mentions the Claw Dashboard, self-hosted users should open their own WebUI directly instead.

Telegram

Discord

WhatsApp

Slack

DingTalk

WeCom

Management Commands

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

Configuration

Config file location: ~/.lemonclaw/config.json After editing, restart the service to apply changes.

Change Default Model

{
  "agents": {
    "defaults": {
      "model": {
        "primary": "lemondata-claude/claude-opus-4-6"
      }
    }
  }
}
Available model prefixes (depending on which providers you enabled in LemonData Provider Setup):
  • lemondata/ — OpenAI-compatible route (openai-completions)
  • lemondata-responses/ — OpenAI Responses route (openai-responses)
  • lemondata-claude/ — Claude native route (anthropic-messages)
  • lemondata-gemini/ — Gemini native route (google-generative-ai)
  • lemondata-minimax/ — MiniMax native route (anthropic-messages)

Upgrade

# Re-run the installer to upgrade to the latest version
curl -fsSL https://raw.githubusercontent.com/hedging8563/lemonclaw/main/deploy/self-hosted/install.sh | bash
# Then restart the service
systemctl --user restart lemonclaw  # Linux
# or
launchctl stop cc.lemondata.lemonclaw && launchctl start cc.lemondata.lemonclaw  # macOS

Uninstall

# Stop and disable service
systemctl --user stop lemonclaw && systemctl --user disable lemonclaw  # Linux
launchctl unload ~/Library/LaunchAgents/cc.lemondata.lemonclaw.plist  # macOS

# Remove LemonClaw
rm -rf ~/.lemonclaw

Self-Hosted vs Managed

Self-HostedManaged (Claw)
Instance costFree$20 / 30 days
AI usagePay-per-usePay-per-use
InfrastructureYour serverWe manage everything
UpdatesManual (re-run installer)Automatic
SupportCommunityPriority