---
title: "Wdróż aplikację OpenClaw na Pethost jednym kliknięciem"
description: "Asystent AI, który mieszka w twoich komunikatorach. Szablon dla Pethost: za minutę czy dwie aplikacja działa na twojej maszynie, z HTTPS pod własnym adresem i backupami co noc."
---

[← Wszystkie szablony](https://pethost.dev/pl/templates/)

# Wdróż aplikację OpenClaw na Pethost jednym kliknięciem

Asystent AI, który mieszka w twoich komunikatorach

[Wdróż na Pethost](https://console.pethost.dev/?template=openclaw)

## Co się dzieje

1. Logujesz się do Pethost albo zakładasz konto, kluczem dostępu, przez GitHub albo Google.
2. Nie masz jeszcze maszyny? Wybierasz plan, a my ją dla ciebie przygotowujemy. Link czeka w twojej przeglądarce, aż będzie gotowa.
3. Okno „Nowy projekt” otwiera się na tej aplikacji. Wypełniasz to, o co prosi, i klikasz „Utwórz projekt”: **Klucz API OpenAI** (opcjonalnie), **Klucz API Anthropic** (opcjonalnie).
4. Za minutę czy dwie aplikacja działa pod własnym adresem z HTTPS. Jej sekrety są tworzone losowo, a dane trafiają do nocnego backupu.
5. To projekt jak każdy inny: jego compose.yaml, .env, logi i terminal są w panelu, a twój agent może go zmienić, cofnąć do wcześniejszej wersji albo przywrócić.

## Pierwsze kroki

Otwórz adres projektu i wklej token gatewaya do pola Gateway secret: to OPENCLAW_GATEWAY_TOKEN w pliku .env projektu. Potem raz zatwierdź przeglądarkę w terminalu usługi openclaw: openclaw devices list, a następnie openclaw devices approve <requestId>. Klucz modelu dodasz w Settings, Models.

## Co uruchamia

Szablon to ten compose.yaml i zmienne, które zapisuje do .env projektu. Pethost uruchamia plik dokładnie tak, jak jest napisany.

```
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:
```

[compose.yaml](https://pethost.dev/templates/openclaw/compose.yaml)[Zobacz na GitHubie](https://github.com/pethost-dev/templates/tree/main/openclaw)

Pethost · Stephan Gomer · NIP 1133096755

[Szablony](https://pethost.dev/pl/templates/) [O nas](https://pethost.dev/about/) [Blog](https://pethost.dev/blog/) [Regulamin](https://pethost.dev/terms/) [Prywatność](https://pethost.dev/privacy/) [Zwroty](https://pethost.dev/refunds/) [API](https://pethost.dev/docs/api/) [CLI](https://pethost.dev/docs/cli/) [Plugin](https://github.com/pethost-dev/plugin) [support@pethost.dev](mailto:support@pethost.dev)
