OpenClaw God Mode

One-command setup for OpenClaw + Ollama. From zero to running bot in minutes.

๐Ÿง Linux ๐ŸชŸ Windows

โš ๏ธ WARNING: This Is NOT For Everyone

This project removes nearly every safety guardrail OpenClaw ships with by default. It is designed for advanced users who want maximum, unrestricted system control from their AI agent. If you do not understand the implications below, do not use this installer.

What This Installer Actually Does

OpenClaw's default install is designed to be safe, sandboxed, and limited:

This installer strips all of that away:

User-level executionUser systemd service with passwordless sudo
Device auth requireddangerouslyDisableDeviceAuth: true โ€” web UI has no login gate
Prompts for approvalPasswordless sudo (NOPASSWD: *** โ€” no human in the loop
Limited file accessFull read/write access to entire filesystem
No package installationCan apt/dnf/pacman install anything without asking
Network restrictedUnrestricted network access
Sandbox modelRoot shell model โ€” AI can modify system configs, create users, wipe drives

What This Means in Practice

Who Should Use This

Who Should NOT Use This

Use the official OpenClaw install instead: https://github.com/openclaw/openclaw

Features

๐Ÿš€

Zero to Running

One script installs Ollama, OpenClaw, pulls a model, and configures your bots. No manual steps.

๐Ÿ”’

Whitelist Security

DMs enabled but restricted to whitelisted Discord IDs only. Groups open. Tokens never committed.

โš™๏ธ

System-Level Control

Passwordless sudo, systemd user service, auto-starts on boot. Full non-interactive automation.

๐Ÿค–

Discord + Telegram

Configure both bots with minimal prompts. Multi-agent support via the configurator.

โ˜๏ธ

Cloud & Local Models

Defaults to kimi-k2.6:cloud. 229 models in catalog via the web Model Manager.

๐Ÿ–ฅ๏ธ

Cross-Platform

Native scripts for Linux (apt/dnf/pacman) and Windows (PowerShell/winget).

โšก

Configurator + Model Manager

Web UIs for generating install commands and managing Ollama models without terminal.

Quick Start

๐Ÿ’ก New: Try the โšก Quick Configurator to generate your install command with a few clicks. Or use the ๐Ÿค– Model Manager to pull and manage Ollama models.

Pick your platform. The script handles everything else.

bash
git clone https://github.com/jlaiii/openclaw-god-mode.git
cd openclaw-god-mode/linux
chmod +x install.sh
./install.sh

Supported: Ubuntu 20.04+, Debian 11+, Fedora 35+, Arch, Manjaro

powershell
git clone https://github.com/jlaiii/openclaw-god-mode.git
cd openclaw-god-mode\windows
.\install.ps1

Requires: Windows 10/11, PowerShell 5.1+ (Run as Administrator)

What the Script Does

  1. Detects OS โ€” Identifies distro and package manager
  2. Installs dependencies โ€” Node.js 22+, git, curl (if missing)
  3. Configures NOPASSWD sudo โ€” Passwordless sudo for non-interactive automation
  4. Installs Ollama โ€” Downloads official installer, starts service
  5. Pulls default model โ€” kimi-k2.6:cloud with retry logic
  6. Installs OpenClaw โ€” npm install -g openclaw
  7. Configures workspace โ€” Creates ~/.openclaw/ with multi-agent config
  8. Prompts for tokens โ€” Discord, Telegram, admin ID + extra whitelist users
  9. Enables channels โ€” Discord + Telegram (configurable per agent)
  10. Sets up systemd service โ€” User service, auto-starts on boot
  11. Verifies system access โ€” Tests shell, packages, network, file write
  12. Prints setup guide โ€” Discord intents, invite URL, BotFather steps

Discord Security Model

FeatureSettingHow It Works
DMsallowDMs: trueโœ… Enabled โ€” only whitelisted Discord IDs can DM
GroupsallowGroups: trueโœ… Enabled โ€” works in all servers (or whitelisted guild)
WhitelistMulti-userYou + any extra users added during setup
Guild lockOptionalRestrict to specific server, or leave open
Token storage.env fileAuto-.gitignored, never committed
Device authDisableddangerouslyDisableDeviceAuth: true for local use

Add more whitelisted users anytime by editing ~/.openclaw/config/gateway.yaml:

yaml
discord:
  allowedUsers: [123456789, 987654321, 555555555]

System-Level Setup

The Linux installer configures full non-interactive system control:

Start/stop the service:

bash
systemctl --user start openclaw-gateway.service   # Start now
systemctl --user stop openclaw-gateway.service    # Stop
systemctl --user enable openclaw-gateway.service  # Enable on boot (already done)
systemctl --user status openclaw-gateway.service  # Check status

Model Catalog

The installer pulls kimi-k2.6:cloud by default. The Model Manager syncs 229 models from ollama.com/search. Switch models by editing ~/.openclaw/openclaw.json or via the Model Manager.

yaml
# Cloud models (no local GPU needed)
model: ollama/kimi-k2.6:cloud

# Local models (requires GPU/CPU power)
model: ollama/llama3.2
model: ollama/mistral
model: ollama/phi4

Pull new models anytime: ollama pull <model> or use the Model Manager.

After Install

1. Set Your Bot Tokens

Edit ~/.openclaw/.env (Linux) or %USERPROFILE%\.openclaw\.env (Windows):

env
DISCORD_TOKEN=your_discord_bot_token
TELEGRAM_TOKEN=your_telegram_bot_token
ADMIN_DISCORD_ID=your_discord_user_id

2. Start OpenClaw

bash / powershell
# Manual start (foreground)
openclaw gateway run

# Or use systemd (background)
systemctl --user start openclaw-gateway.service

3. Verify

bash / powershell
openclaw status                    # Gateway status
ollama list                        # Installed models
systemctl --user status openclaw-gateway.service  # Service status

Roadmap

  • Docker Compose โ€” One-liner containerized deployment
  • Windows service auto-start โ€” Native service registration
  • TUI wizard โ€” Interactive menu with whiptail/dialog
  • Auto-update โ€” Script to refresh OpenClaw + Ollama
  • Backup/restore โ€” Config migration between machines

Contributing

Found a bug or want to add a feature? Open an issue or PR on GitHub.