Skip to main content

OpenClaw Setup

OpenClaw Setup

Installation auf Olares

OpenClaw wurde als KI-Assistenten-Plattform auf dem Olares-Server installiert und konfiguriert.

Installationspfad

/home/node/.openclaw/openclaw.json

Integrations-Skripte

Konfiguration1. BookStack API-Skript

    Gateway-Port:Pfad: 18789

    ~/.openclaw/workspace/.claude/skills/bookstack/scripts/bookstack.py

    Gateway-Modus:Zweck: local

    Vollständige Bind:BookStack-API-Anbindung loopbackfür Auth-Modus:Bücher, tokenSeiten, Suche

    Kanäle

    und
      Markdown-Export. Telegram-Bot:

      Installierte AktiviertCommands

        Bot-Token in ConfigCommand hinterlegtBeschreibung DM-Policy: Allowlist Erlaubte User: 5077220526list_books Alle BĂĽcher auflisten list_pages Alle Seiten im Buch auflisten get_page <id> --markdown Seite als Markdown abrufen create_page Neue Seite erstellen (Tom)Book-ID, Chapter-ID, Name, Markdown/HTML)

        Plugins

        • Anthropic:search Aktiviert<query> (Claude-Serie)
        Volltextsuche Ollama: Aktiviert (lokale Models)

        Einrichtung

        SearXNG:der Aktiviert (Web-Suche, localhost:8888)

        Models

          Primär: ollama/odytrice/qwen3.6-35b:5090 Fallback: anthropic/claude-sonnet-4-6

          Tools

            Profil: coding Audio: fw-transcribe Media: Audio enabled

            Arbeitsverzeichnis

            Python-Abhängigkeit
            # requests-Paket fĂĽr Python 3.14 installieren
            python3.14 -m pip install --break-system-packages requests
            

            Wichtig: System-Python 3.11 hat kein requests. Die API-Aufrufe müssen daher mit PYTHONPATH=/home/node/linuxbrew/.linuxbrew/lib/python3.14/site-packages durchgeführt werden.

            Beispiel-Aufrufe

            # Alle BĂĽcher auflisten
            env $(cat ~/.openclaw/workspace.env | xargs) PYTHONPATH=/home/linuxbrew/.linuxbrew/lib/python3.14/site-packages \
              python3 bookstack.py list_books
            
            # Seite als Markdown abrufen
            env $(cat ~/.openclaw/.env | xargs) PYTHONPATH=/home/linuxbrew/.linuxbrew/lib/python3.14/site-packages \
              python3 bookstack.py get_page 222 --markdown
            
            # Seite erstellen
            env $(cat ~/.openclaw/.env | xargs) PYTHONPATH=/home/linuxbrew/.linuxbrew/lib/python3.14/site-packages \
              python3 bookstack.py create_page --book-id 12 --chapter-id 32 --name "Test" --markdown "Hallo"
            

            Skills2. Umgebungsvariablen

              Datei: ~/.openclaw/.env

              BOOKSTACK_URL=http://192.168.0.82:300
              BOOKSTACK_TOKEN_ID=bpg4RFQANXXBea8xV1TMnha1gdAZfmTB
              BOOKSTACK_TOKEN_SECRET=6vRqC3gMHWG865EO6C9LnYwDjexoVV8H
              

              Integrationsschritte

              Schritt 1: API-Token in BookStack erstellen

              1. BookStack:In VollständigeBookStack Integrationeinloggen
                  (https://bookstack.kistudent.synology.me)
                • Skript:Profil -> API-Tokens -> Neuen Token erstellen
                Token-ID und Token-Secret notieren (nur einmal sichtbar! sicher speichern!) In ~/.openclaw/.env eintragen

                Schritt 2: BookStack-Skript erstellen

                mkdir -p ~/.openclaw/workspace/.claude/skills/bookstack/scripts
                cat > ~/.openclaw/workspace/.claude/skills/bookstack/scripts/bookstack.py URL:<< 'PYEOF'
                #!/usr/bin/env python3
                import os, sys, json, requests
                
                URL = os.environ.get('BOOKSTACK_URL', '').rstrip('/')
                TOKEN_ID = os.environ.get('BOOKSTACK_TOKEN_ID', '')
                TOKEN_SECRET = os.environ.get('BOOKSTACK_TOKEN_SECRET', '')
                HEADERS = {'Authorization': 'Token %s:%s' % (TOKEN_ID, TOKEN_SECRET), 'Content-Type': 'application/json'}
                
                def api(method, path, **kwargs):
                    r = requests.request(method, '%s/api%s' % (URL, path), headers=HEADERS, **kwargs)
                    return r.json()
                
                cmd = sys.argv[1] if len(sys.argv) > 1 else 'help'
                
                if cmd == 'list_books':
                    print(json.dumps(api('GET', '/books'), indent=2))
                elif cmd == 'list_pages':
                    print(json.dumps(api('GET', '/pages'), indent=2))
                elif cmd == 'get_page':
                    page_id = sys.argv[2]
                    md = '--markdown' in sys.argv
                    result = api('GET', '/pages/%s' % page_id)
                    print(result.get('markdown' if md else 'html', json.dumps(result, indent=2)))
                elif cmd == 'create_page':
                    args = sys.argv[2:]
                    data = {}
                    for i, a in enumerate(args):
                        if a == '--book-id': data['book_id'] = int(args[i+1])
                        elif a == '--chapter-id': data['chapter_id'] = int(args[i+1])
                        elif a == '--name': data['name'] = args[i+1]
                        elif a == '--markdown': data['markdown'] = args[i+1]
                        elif a == '--html': data['html'] = args[i+1]
                    print(json.dumps(api('POST', '/pages', json=data), indent=2))
                elif cmd == 'search':
                    q = sys.argv[2]
                    print(json.dumps(api('GET', '/search?query=%s' % q), indent=2))
                else:
                    print('Commands: list_books, list_pages, get_page, create_page, search')
                PYEOF
                chmod +x ~/.openclaw/workspace/.claude/skills/bookstack/scripts/bookstack.py
                

                Schritt 3: Python-Abhängigkeit installieren

                # Python 3.14 (Homebrew) hat requests, Python 3.11 (System) nicht
                python3.14 -m pip install --break-system-packages requests
                
                # FĂĽr System-Python 3.11: PYTHONPATH auf Homebrew-Pfad setzen
                export PYTHONPATH=/home/linuxbrew/.linuxbrew/lib/python3.14/site-packages
                

                Schritt 4: Umgebungsvariablen in .env

                cat > ~/.openclaw/.env << 'EOF'
                OPENAI_API_KEY=dummy
                OPENAI_BASE_URL=http://speaches.speachesserver-shared:8000/v1
                BOOKSTACK_URL=http://192.168.0.82:300
                Token:BOOKSTACK_TOKEN_ID=<TOKEN_ID>
                bpg4RFQANXXBea8xV1TMnha1gdAZfmTBBOOKSTACK_TOKEN_SECRET=<TOKEN_SECRET>
                EOF
                
                

                DokumentationSchritt 5: Testen

                env $(cat ~/.openclaw/.env | xargs) PYTHONPATH=/home/linuxbrew/.linuxbrew/lib/python3.14/site-packages \
                  python3 ~/.openclaw/workspace/.claude/skills/bookstack/scripts/bookstack.py list_books
                

                Schritt 6: Neue Seite erstellen

                env $(cat ~/.openclaw/.env | xargs) PYTHONPATH=/home/linuxbrew/.linuxbrew/lib/python3.14/site-packages \
                  python3 bookstack.py create_page --book-id 12 --chapter-id 32 --name "OpenClaw Setup" --markdown "# Inhalt..."
                

                Gateway-Token-Konfiguration

                DieseDas DokumentationGateway-Token ist(openclaw.json im→ Buchgateway.auth.token) wurde aktualisiert:

                "gateway": {
                  "auth": {
                    "mode": "token",
                    "token": "6vRqC3gMHWG865EO6C9LnYwDjexoVV8H",
                    "allowTailscale": false
                  }
                }
                

                Hinweis: Das Gateway-Token muss separat in der openclaw.json konfiguriert werden. Es wird NICHT automatisch aus der .env gelesen.

                Alle BĂĽcher in "Systemeinrichtung"

                ID Name Kapitel 13 Synology-Einrichtung 1 16 Wichtige Linux Befehle 1 20 Chapter 1 – Über­sicht & Zielsetzung 1 22 Chapter 2 – Systemkonfiguration (ID:IST-Zustand) 12)1 gespeichert. 23 Chapter 3 – Scripte & Konfiguration 1 24 Chapter 4 – Tests & Nachweise 1 25 Chapter 5 – Fehleranalyse 1 26 Chapter 6 – Fazit & Empfehlung 1 32 Chapter 7 – Tool-Evaluation 1 (aktuell)

                Erstellt amErstellt: 25.05.2026 | Aktualisiert: 25.05.2026 - Integrationsdetails hinzugefügt