English
Get started

← All templates · AI and agents

Deploy OpenClaw in one click

An AI assistant that lives in your chat apps

What is OpenClaw?

OpenClaw is an open-source personal AI assistant that you message in the chat apps you already use: WhatsApp, Telegram, Slack, Discord, Signal and over twenty more. It reads and writes files and runs shell commands, with full or sandboxed access. It remembers your preferences, projects and people in plain Markdown files. Cron jobs let it do recurring work and post the result to a chat. Skills from ClawHub add abilities, and it can write its own.

People self-host OpenClaw so its state, memory and credentials stay on a machine they control. A server suits it better than a laptop, since cron jobs fire only while the Gateway is running. The catch is its reach. Anything it reads, a web page or an email, can carry instructions that try to hijack the model, so the docs advise keeping tools narrow for any agent that reads untrusted content.

Hosting OpenClaw on Pethost

  1. You sign in to Pethost with a passkey, GitHub or Google. No machine yet? You pick a plan, and the link waits until it is ready.
  2. New project opens at OpenClaw. You fill in what it asks for and click Create project: OpenAI API key (optional), Anthropic API key (optional).
  3. In a minute or two OpenClaw is live at its own address with HTTPS. Its secrets are made at random, and its data is in the nightly backup.
  4. It is a project like any other: you or your agent can change it, roll it back or restore it.

Questions about OpenClaw

Is OpenClaw free and open source?

Yes. OpenClaw is MIT licensed and stewarded by the OpenClaw Foundation, a nonprofit funded by donations, with no paid tier, hosted service or token. What you pay for is the model provider you connect.

Is OpenClaw owned by OpenAI?

No. The OpenClaw Foundation, an independent 501(c)(3), stewards it. OpenAI is one of several donors and its creator works there, but donors do not own or direct the project, and no lab's model is privileged in the code.

Which AI models does OpenClaw work with?

Hosted providers such as Anthropic, OpenAI, Google Gemini, DeepSeek and OpenRouter, and local models through Ollama or LM Studio. This template takes an OpenAI or Anthropic key when you deploy it; others go under Settings, Models.

Is OpenClaw safe?

By default, a stranger who messages your bot gets a pairing code and never reaches the model until you approve them. Treat third-party skills and plugins as code you choose to trust, since scans are not a complete security boundary.

Is there an OpenClaw app for iPhone or Android?

Yes. The official iPhone app is on the App Store and the Android app is on Google Play. Each pairs with your Gateway through a setup code from the Control UI and adds chat, voice and camera.

How much memory and disk does OpenClaw need?

OpenClaw is moderate: about 1.5 GB of memory at rest and more as its tools run; chats and memory take little disk. On Pethost the Grow plan is enough for it, with room for other apps beside it.

OpenClaw Docker Compose file

The template is this compose.yaml and the variables written into the project’s .env as it is created. Pethost runs the file as it is written.

Containers: openclaw (ghcr.io/openclaw/openclaw:2026.10.3).

Volumes, in the nightly backup: state, auth-keys.

services:
  openclaw:
    image: ghcr.io/openclaw/openclaw:2026.10.3
    restart: unless-stopped
    environment:
      OPENCLAW_GATEWAY_TOKEN: ${OPENCLAW_GATEWAY_TOKEN}
      OPENAI_API_KEY: ${OPENAI_API_KEY:-}
      ANTHROPIC_API_KEY: ${ANTHROPIC_API_KEY:-}
    # The gateway answers 403 until its config names the proxy's network and the
    # origin the Control UI is opened from, and it has no flag or variable for
    # either. So the config is written once, into the state volume, where the app
    # keeps and rewrites it; then the image's own entrypoint starts the gateway.
    command:
      - sh
      - -c
      - |
        set -e
        cfg=/home/node/.openclaw/openclaw.json
        if [ ! -s "$$cfg" ]; then
          cat > "$$cfg" <<'JSON'
        {
          "gateway": {
            "mode": "local",
            "bind": "lan",
            "auth": { "mode": "token" },
            "trustedProxies": ["10.192.0.0/10"],
            "controlUi": { "allowedOrigins": ["${CONTROL_UI_ORIGIN}"] }
          }
        }
        JSON
          chmod 600 "$$cfg"
        fi
        if [ -f /app/docker-entrypoint.mjs ]; then
          exec node /app/docker-entrypoint.mjs node openclaw.mjs gateway --allow-unconfigured --bind lan --port 18789
        fi
        exec node openclaw.mjs gateway --allow-unconfigured --bind lan --port 18789
    volumes:
      - state:/home/node/.openclaw
      - auth-keys:/home/node/.config/openclaw
    # The image's own check runs every 3 minutes, so a deploy would wait that long.
    healthcheck:
      test: ["CMD", "node", "-e", "fetch('http://127.0.0.1:18789/healthz').then(r=>process.exit(r.ok?0:1),()=>process.exit(1))"]
      interval: 30s
      timeout: 10s
      retries: 3
      start_period: 5m
      start_interval: 5s

volumes:
  state:
  auth-keys:

More in AI and agents