{
  "schemaVersion": "1.0",
  "item": {
    "slug": "clawtime-setup",
    "name": "ClawTime Setup",
    "source": "tencent",
    "type": "skill",
    "category": "通讯协作",
    "sourceUrl": "https://clawhub.ai/bewareofddog/clawtime-setup",
    "canonicalUrl": "https://clawhub.ai/bewareofddog/clawtime-setup",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadMode": "redirect",
    "downloadUrl": "/downloads/clawtime-setup",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=clawtime-setup",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "installMethod": "Manual import",
    "extraction": "Extract archive",
    "prerequisites": [
      "OpenClaw"
    ],
    "packageFormat": "ZIP package",
    "includedAssets": [
      "SKILL.md",
      "references/device-auth.md",
      "references/launchd.md",
      "references/troubleshooting.md",
      "scripts/install.sh"
    ],
    "primaryDoc": "SKILL.md",
    "quickSetup": [
      "Download the package from Yavira.",
      "Extract the archive and review SKILL.md first.",
      "Import or place the package into your OpenClaw setup."
    ],
    "agentAssist": {
      "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
      "steps": [
        "Download the package from Yavira.",
        "Extract it into a folder your agent can access.",
        "Paste one of the prompts below and point your agent at the extracted folder."
      ],
      "prompts": [
        {
          "label": "New install",
          "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete."
        },
        {
          "label": "Upgrade existing",
          "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run."
        }
      ]
    },
    "sourceHealth": {
      "source": "tencent",
      "slug": "clawtime-setup",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-04-29T12:12:18.993Z",
      "expiresAt": "2026-05-06T12:12:18.993Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=clawtime-setup",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=clawtime-setup",
        "contentDisposition": "attachment; filename=\"clawtime-setup-1.2.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null,
        "slug": "clawtime-setup"
      },
      "scope": "item",
      "summary": "Item download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this item.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/clawtime-setup"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    },
    "downloadPageUrl": "https://openagent3.xyz/downloads/clawtime-setup",
    "agentPageUrl": "https://openagent3.xyz/skills/clawtime-setup/agent",
    "manifestUrl": "https://openagent3.xyz/skills/clawtime-setup/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/clawtime-setup/agent.md"
  },
  "agentAssist": {
    "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
    "steps": [
      "Download the package from Yavira.",
      "Extract it into a folder your agent can access.",
      "Paste one of the prompts below and point your agent at the extracted folder."
    ],
    "prompts": [
      {
        "label": "New install",
        "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete."
      },
      {
        "label": "Upgrade existing",
        "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run."
      }
    ]
  },
  "documentation": {
    "source": "clawhub",
    "primaryDoc": "SKILL.md",
    "sections": [
      {
        "title": "ClawTime — Local Installation with Cloudflare Tunnel",
        "body": "ClawTime is a private webchat UI connecting to the OpenClaw gateway via WebSocket.\nFeatures: passkey (Face ID/Touch ID) auth, Piper TTS voice, 3D avatar.\n\nWhy Cloudflare is required: WebAuthn (passkeys) need HTTPS on a real domain.\nhttp://localhost only works on the same machine — not from a phone on your network."
      },
      {
        "title": "Architecture",
        "body": "iPhone/Browser → https://portal.yourdomain.com → Cloudflare Tunnel → localhost:3000 (ClawTime) → ws://127.0.0.1:18789 (OpenClaw Gateway)"
      },
      {
        "title": "Prerequisites",
        "body": "Node.js v22+\ncloudflared CLI: brew install cloudflared\nA domain with DNS on Cloudflare (free tier works)\nOpenClaw running: openclaw status\n(Optional) Piper TTS + ffmpeg for voice"
      },
      {
        "title": "1. Clone & install",
        "body": "cd ~/Projects\ngit clone https://github.com/youngkent/clawtime.git\ncd clawtime\nnpm install --legacy-peer-deps"
      },
      {
        "title": "2. Set up Cloudflare Tunnel",
        "body": "# Login to Cloudflare\ncloudflared tunnel login\n\n# Create named tunnel\ncloudflared tunnel create clawtime\n\n# Configure routing\n# Edit ~/.cloudflared/config.yml:\n\n~/.cloudflared/config.yml:\n\ntunnel: clawtime\ncredentials-file: /Users/YOUR_USER/.cloudflared/<tunnel-id>.json\n\ningress:\n  - hostname: portal.yourdomain.com\n    service: http://localhost:3000\n  - service: http_status:404\n\nThen in Cloudflare DNS dashboard: add a CNAME record:\n\nName: portal → Target: <tunnel-id>.cfargotunnel.com (Proxied ✅)"
      },
      {
        "title": "3. Configure OpenClaw gateway",
        "body": "The gateway must whitelist ClawTime's origin:\n\nopenclaw config patch '{\"gateway\":{\"controlUi\":{\"allowedOrigins\":[\"https://portal.yourdomain.com\"]}}}'\nopenclaw gateway restart\n\n⚠️ PUBLIC_URL must match this origin exactly — it's used as the WebSocket origin header for device auth."
      },
      {
        "title": "4. Start ClawTime server",
        "body": "Minimum (no TTS):\n\ncd ~/Projects/clawtime\nPUBLIC_URL=https://portal.yourdomain.com \\\nSETUP_TOKEN=<your-setup-token> \\\nGATEWAY_TOKEN=<gateway-token> \\\nnode server.js\n\nWith Piper TTS:\n\ncd ~/Projects/clawtime\nPUBLIC_URL=https://portal.yourdomain.com \\\nSETUP_TOKEN=<your-setup-token> \\\nGATEWAY_TOKEN=<gateway-token> \\\nBOT_NAME=\"Beware\" \\\nBOT_EMOJI=\"🌀\" \\\nTTS_COMMAND='python3 -m piper --data-dir ~/Documents/resources/piper-voices -m en_US-kusal-medium -f /tmp/clawtime-tts-tmp.wav -- {{TEXT}} && ffmpeg -y -loglevel error -i /tmp/clawtime-tts-tmp.wav {{OUTPUT}}' \\\nnode server.js\n\n⚠️ TTS Security Note: The {{TEXT}} placeholder is substituted into a shell command.\nClawTime's server must sanitize text before substitution to prevent command injection.\nThe server should strip or escape shell metacharacters (; | & $ \\ ( ) { } < >) from user input before passing it to the TTS command. If you're modifying the TTS pipeline, use child_process.execFile()with argument arrays instead ofchild_process.exec()` with string\ninterpolation."
      },
      {
        "title": "5. Start Cloudflare tunnel",
        "body": "cloudflared tunnel run clawtime"
      },
      {
        "title": "6. Register passkey (first time only)",
        "body": "Open https://portal.yourdomain.com/?setup=<your-setup-token> in Safari\nFollow the passkey (Face ID / Touch ID) prompt\n❌ Do NOT use private/incognito mode — Safari blocks passkeys there\n❌ Do NOT use Chrome on iOS — use Safari\n\nAfter registration, access ClawTime at https://portal.yourdomain.com."
      },
      {
        "title": "Environment Variables",
        "body": "VariableRequiredDescriptionPUBLIC_URL✅Public HTTPS URL (must match allowedOrigins in gateway config)GATEWAY_TOKEN✅OpenClaw gateway auth tokenSETUP_TOKENFor registrationPassphrase for ?setup=<token> passkey registration URLTTS_COMMANDFor voicePiper command with {{TEXT}} and {{OUTPUT}} placeholdersBOT_NAMENoDisplay name (default: \"Beware\")BOT_EMOJINoAvatar emoji (default: \"🌀\")PORTNoServer port (default: 3000)"
      },
      {
        "title": "Storing Tokens Securely (recommended)",
        "body": "Instead of passing tokens as plaintext env vars or in plist files, store them in macOS Keychain:\n\n# Store tokens in Keychain\nsecurity add-generic-password -s \"clawtime-gateway-token\" -a \"$(whoami)\" -w \"YOUR_GATEWAY_TOKEN\"\nsecurity add-generic-password -s \"clawtime-setup-token\" -a \"$(whoami)\" -w \"YOUR_SETUP_TOKEN\"\n\nThen retrieve them at launch time:\n\nGATEWAY_TOKEN=$(security find-generic-password -s \"clawtime-gateway-token\" -a \"$(whoami)\" -w) \\\nSETUP_TOKEN=$(security find-generic-password -s \"clawtime-setup-token\" -a \"$(whoami)\" -w) \\\nPUBLIC_URL=https://portal.yourdomain.com \\\nnode server.js\n\nThis avoids storing secrets in plaintext on disk."
      },
      {
        "title": "Device Authentication (Critical)",
        "body": "ClawTime authenticates with the OpenClaw gateway using Ed25519 keypair auth.\nThis is where most installs break — see details in references/device-auth.md.\n\nQuick summary:\n\nKeypair auto-generated in ~/.clawtime/device-key.json on first run\nDevice ID = SHA-256 of raw 32-byte Ed25519 pubkey (NOT the full SPKI-encoded key)\nSignature payload format: v2|deviceId|clientId|clientMode|role|scopes|signedAtMs|token|nonce\nIf device auth fails → delete ~/.clawtime/device-key.json and restart"
      },
      {
        "title": "Auto-Start on Boot (macOS launchd)",
        "body": "See references/launchd.md for plist templates for both the server and tunnel."
      },
      {
        "title": "Managing Services",
        "body": "# Stop server\npkill -f \"node server.js\"\n\n# Stop tunnel\npkill -f \"cloudflared\"\n\n# View logs (if backgrounded)\ntail -f /tmp/clawtime.log\ntail -f /tmp/cloudflared.log\n\n# Restart after code/config changes\npkill -9 -f \"node server.js\"; sleep 2; # then re-run start command"
      },
      {
        "title": "Getting the Gateway Token",
        "body": "# From macOS Keychain\nsecurity find-generic-password -s \"openclaw-gateway-token\" -a \"$(whoami)\" -w\n\n# From config file\ncat ~/.openclaw/openclaw.json | python3 -c \"import sys,json; d=json.load(sys.stdin); print(d.get('gateway',{}).get('token',''))\""
      },
      {
        "title": "Passkey Operations",
        "body": "# Reset passkeys (re-register from scratch)\necho '[]' > ~/.clawtime/credentials.json\n# Restart server, then visit /?setup=<token>\n\n# Reset device key (new keypair on next restart)\nrm ~/.clawtime/device-key.json"
      },
      {
        "title": "Troubleshooting",
        "body": "See references/troubleshooting.md for all common errors and fixes.\nSee references/device-auth.md for deep-dive on gateway auth issues."
      }
    ],
    "body": "ClawTime — Local Installation with Cloudflare Tunnel\n\nClawTime is a private webchat UI connecting to the OpenClaw gateway via WebSocket. Features: passkey (Face ID/Touch ID) auth, Piper TTS voice, 3D avatar.\n\nWhy Cloudflare is required: WebAuthn (passkeys) need HTTPS on a real domain. http://localhost only works on the same machine — not from a phone on your network.\n\nArchitecture\niPhone/Browser → https://portal.yourdomain.com → Cloudflare Tunnel → localhost:3000 (ClawTime) → ws://127.0.0.1:18789 (OpenClaw Gateway)\n\nPrerequisites\nNode.js v22+\ncloudflared CLI: brew install cloudflared\nA domain with DNS on Cloudflare (free tier works)\nOpenClaw running: openclaw status\n(Optional) Piper TTS + ffmpeg for voice\nInstallation Steps\n1. Clone & install\ncd ~/Projects\ngit clone https://github.com/youngkent/clawtime.git\ncd clawtime\nnpm install --legacy-peer-deps\n\n2. Set up Cloudflare Tunnel\n# Login to Cloudflare\ncloudflared tunnel login\n\n# Create named tunnel\ncloudflared tunnel create clawtime\n\n# Configure routing\n# Edit ~/.cloudflared/config.yml:\n\n\n~/.cloudflared/config.yml:\n\ntunnel: clawtime\ncredentials-file: /Users/YOUR_USER/.cloudflared/<tunnel-id>.json\n\ningress:\n  - hostname: portal.yourdomain.com\n    service: http://localhost:3000\n  - service: http_status:404\n\n\nThen in Cloudflare DNS dashboard: add a CNAME record:\n\nName: portal → Target: <tunnel-id>.cfargotunnel.com (Proxied ✅)\n3. Configure OpenClaw gateway\n\nThe gateway must whitelist ClawTime's origin:\n\nopenclaw config patch '{\"gateway\":{\"controlUi\":{\"allowedOrigins\":[\"https://portal.yourdomain.com\"]}}}'\nopenclaw gateway restart\n\n\n⚠️ PUBLIC_URL must match this origin exactly — it's used as the WebSocket origin header for device auth.\n\n4. Start ClawTime server\n\nMinimum (no TTS):\n\ncd ~/Projects/clawtime\nPUBLIC_URL=https://portal.yourdomain.com \\\nSETUP_TOKEN=<your-setup-token> \\\nGATEWAY_TOKEN=<gateway-token> \\\nnode server.js\n\n\nWith Piper TTS:\n\ncd ~/Projects/clawtime\nPUBLIC_URL=https://portal.yourdomain.com \\\nSETUP_TOKEN=<your-setup-token> \\\nGATEWAY_TOKEN=<gateway-token> \\\nBOT_NAME=\"Beware\" \\\nBOT_EMOJI=\"🌀\" \\\nTTS_COMMAND='python3 -m piper --data-dir ~/Documents/resources/piper-voices -m en_US-kusal-medium -f /tmp/clawtime-tts-tmp.wav -- {{TEXT}} && ffmpeg -y -loglevel error -i /tmp/clawtime-tts-tmp.wav {{OUTPUT}}' \\\nnode server.js\n\n\n⚠️ TTS Security Note: The {{TEXT}} placeholder is substituted into a shell command. ClawTime's server must sanitize text before substitution to prevent command injection. The server should strip or escape shell metacharacters (; | & $ \\ ( ) { } < >) from user input before passing it to the TTS command. If you're modifying the TTS pipeline, use child_process.execFile()with argument arrays instead ofchild_process.exec()` with string interpolation.\n\n5. Start Cloudflare tunnel\ncloudflared tunnel run clawtime\n\n6. Register passkey (first time only)\nOpen https://portal.yourdomain.com/?setup=<your-setup-token> in Safari\nFollow the passkey (Face ID / Touch ID) prompt\n❌ Do NOT use private/incognito mode — Safari blocks passkeys there\n❌ Do NOT use Chrome on iOS — use Safari\n\nAfter registration, access ClawTime at https://portal.yourdomain.com.\n\nEnvironment Variables\nVariable\tRequired\tDescription\nPUBLIC_URL\t✅\tPublic HTTPS URL (must match allowedOrigins in gateway config)\nGATEWAY_TOKEN\t✅\tOpenClaw gateway auth token\nSETUP_TOKEN\tFor registration\tPassphrase for ?setup=<token> passkey registration URL\nTTS_COMMAND\tFor voice\tPiper command with {{TEXT}} and {{OUTPUT}} placeholders\nBOT_NAME\tNo\tDisplay name (default: \"Beware\")\nBOT_EMOJI\tNo\tAvatar emoji (default: \"🌀\")\nPORT\tNo\tServer port (default: 3000)\nStoring Tokens Securely (recommended)\n\nInstead of passing tokens as plaintext env vars or in plist files, store them in macOS Keychain:\n\n# Store tokens in Keychain\nsecurity add-generic-password -s \"clawtime-gateway-token\" -a \"$(whoami)\" -w \"YOUR_GATEWAY_TOKEN\"\nsecurity add-generic-password -s \"clawtime-setup-token\" -a \"$(whoami)\" -w \"YOUR_SETUP_TOKEN\"\n\n\nThen retrieve them at launch time:\n\nGATEWAY_TOKEN=$(security find-generic-password -s \"clawtime-gateway-token\" -a \"$(whoami)\" -w) \\\nSETUP_TOKEN=$(security find-generic-password -s \"clawtime-setup-token\" -a \"$(whoami)\" -w) \\\nPUBLIC_URL=https://portal.yourdomain.com \\\nnode server.js\n\n\nThis avoids storing secrets in plaintext on disk.\n\nDevice Authentication (Critical)\n\nClawTime authenticates with the OpenClaw gateway using Ed25519 keypair auth. This is where most installs break — see details in references/device-auth.md.\n\nQuick summary:\n\nKeypair auto-generated in ~/.clawtime/device-key.json on first run\nDevice ID = SHA-256 of raw 32-byte Ed25519 pubkey (NOT the full SPKI-encoded key)\nSignature payload format: v2|deviceId|clientId|clientMode|role|scopes|signedAtMs|token|nonce\nIf device auth fails → delete ~/.clawtime/device-key.json and restart\nAuto-Start on Boot (macOS launchd)\n\nSee references/launchd.md for plist templates for both the server and tunnel.\n\nManaging Services\n# Stop server\npkill -f \"node server.js\"\n\n# Stop tunnel\npkill -f \"cloudflared\"\n\n# View logs (if backgrounded)\ntail -f /tmp/clawtime.log\ntail -f /tmp/cloudflared.log\n\n# Restart after code/config changes\npkill -9 -f \"node server.js\"; sleep 2; # then re-run start command\n\nGetting the Gateway Token\n# From macOS Keychain\nsecurity find-generic-password -s \"openclaw-gateway-token\" -a \"$(whoami)\" -w\n\n# From config file\ncat ~/.openclaw/openclaw.json | python3 -c \"import sys,json; d=json.load(sys.stdin); print(d.get('gateway',{}).get('token',''))\"\n\nPasskey Operations\n# Reset passkeys (re-register from scratch)\necho '[]' > ~/.clawtime/credentials.json\n# Restart server, then visit /?setup=<token>\n\n# Reset device key (new keypair on next restart)\nrm ~/.clawtime/device-key.json\n\nTroubleshooting\n\nSee references/troubleshooting.md for all common errors and fixes. See references/device-auth.md for deep-dive on gateway auth issues."
  },
  "trust": {
    "sourceLabel": "tencent",
    "provenanceUrl": "https://clawhub.ai/bewareofddog/clawtime-setup",
    "publisherUrl": "https://clawhub.ai/bewareofddog/clawtime-setup",
    "owner": "bewareofddog",
    "version": "1.2.0",
    "license": null,
    "verificationStatus": "Indexed source record"
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/clawtime-setup",
    "downloadUrl": "https://openagent3.xyz/downloads/clawtime-setup",
    "agentUrl": "https://openagent3.xyz/skills/clawtime-setup/agent",
    "manifestUrl": "https://openagent3.xyz/skills/clawtime-setup/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/clawtime-setup/agent.md"
  }
}