{
  "schemaVersion": "1.0",
  "item": {
    "slug": "agent-zero-bridge",
    "name": "Agent Zero Bridge",
    "source": "tencent",
    "type": "skill",
    "category": "开发工具",
    "sourceUrl": "https://clawhub.ai/DOWingard/agent-zero-bridge",
    "canonicalUrl": "https://clawhub.ai/DOWingard/agent-zero-bridge",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadMode": "redirect",
    "downloadUrl": "/downloads/agent-zero-bridge",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=agent-zero-bridge",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "installMethod": "Manual import",
    "extraction": "Extract archive",
    "prerequisites": [
      "OpenClaw"
    ],
    "packageFormat": "ZIP package",
    "includedAssets": [
      "README.md",
      "SKILL.md",
      "scripts/a0_client.js",
      "scripts/clawdbot_client.js",
      "scripts/lib/a0_api.js",
      "scripts/lib/clawdbot_api.js"
    ],
    "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. Then review README.md for any prerequisites, environment setup, or post-install checks. 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. Then review README.md for any prerequisites, environment setup, or post-install checks. Summarize what changed and any follow-up checks I should run."
        }
      ]
    },
    "sourceHealth": {
      "source": "tencent",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-04-23T16:43:11.935Z",
      "expiresAt": "2026-04-30T16:43:11.935Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=4claw-imageboard",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=4claw-imageboard",
        "contentDisposition": "attachment; filename=\"4claw-imageboard-1.0.1.zip\"",
        "redirectLocation": null,
        "bodySnippet": null
      },
      "scope": "source",
      "summary": "Source download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this source.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/agent-zero-bridge"
    },
    "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/agent-zero-bridge",
    "agentPageUrl": "https://openagent3.xyz/skills/agent-zero-bridge/agent",
    "manifestUrl": "https://openagent3.xyz/skills/agent-zero-bridge/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/agent-zero-bridge/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. Then review README.md for any prerequisites, environment setup, or post-install checks. 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. Then review README.md for any prerequisites, environment setup, or post-install checks. Summarize what changed and any follow-up checks I should run."
      }
    ]
  },
  "documentation": {
    "source": "clawhub",
    "primaryDoc": "SKILL.md",
    "sections": [
      {
        "title": "Agent Zero Bridge",
        "body": "Bidirectional communication between Clawdbot and Agent Zero."
      },
      {
        "title": "When to Use",
        "body": "Complex coding tasks requiring iteration/self-correction\nLong-running builds, tests, or infrastructure work\nTasks needing persistent Docker execution environment\nResearch with many sequential tool calls\nUser explicitly asks for Agent Zero"
      },
      {
        "title": "1. Prerequisites",
        "body": "Node.js 18+ (for built-in fetch)\nAgent Zero running (Docker recommended, port 50001)\nClawdbot Gateway with HTTP endpoints enabled"
      },
      {
        "title": "2. Install",
        "body": "# Copy skill to Clawdbot skills directory\ncp -r <this-skill-folder> ~/.clawdbot/skills/agent-zero-bridge\n\n# Create config from template\ncd ~/.clawdbot/skills/agent-zero-bridge\ncp .env.example .env"
      },
      {
        "title": "3. Configure .env",
        "body": "# Agent Zero (get token from A0 settings or calculate from runtime ID)\nA0_API_URL=http://127.0.0.1:50001\nA0_API_KEY=your_agent_zero_token\n\n# Clawdbot Gateway\nCLAWDBOT_API_URL=http://127.0.0.1:18789\nCLAWDBOT_API_TOKEN=your_gateway_token\n\n# For Docker containers reaching host (use your machine's LAN IP)\nCLAWDBOT_API_URL_DOCKER=http://192.168.1.x:18789"
      },
      {
        "title": "4. Get Agent Zero Token",
        "body": "# Calculate from A0's runtime ID\nimport hashlib, base64\nruntime_id = \"your_A0_PERSISTENT_RUNTIME_ID\"  # from A0's .env\nhash_bytes = hashlib.sha256(f\"{runtime_id}::\".encode()).digest()\ntoken = base64.urlsafe_b64encode(hash_bytes).decode().replace(\"=\", \"\")[:16]\nprint(token)"
      },
      {
        "title": "5. Enable Clawdbot Gateway Endpoints",
        "body": "Add to ~/.clawdbot/clawdbot.json:\n\n{\n  \"gateway\": {\n    \"bind\": \"0.0.0.0\",\n    \"auth\": { \"mode\": \"token\", \"token\": \"your_token\" },\n    \"http\": { \"endpoints\": { \"chatCompletions\": { \"enabled\": true } } }\n  }\n}\n\nThen: clawdbot gateway restart"
      },
      {
        "title": "6. Deploy Client to Agent Zero Container",
        "body": "docker exec <container> mkdir -p /a0/bridge/lib\ndocker cp scripts/lib/. <container>:/a0/bridge/lib/\ndocker cp scripts/clawdbot_client.js <container>:/a0/bridge/\ndocker cp .env <container>:/a0/bridge/\ndocker exec <container> sh -c 'echo \"DOCKER_CONTAINER=true\" >> /a0/bridge/.env'"
      },
      {
        "title": "Send Task to Agent Zero",
        "body": "node scripts/a0_client.js \"Build a REST API with JWT authentication\"\nnode scripts/a0_client.js \"Review this code\" --attach ./file.py\nnode scripts/a0_client.js \"New task\" --new  # Start fresh conversation"
      },
      {
        "title": "Check Status",
        "body": "node scripts/a0_client.js status\nnode scripts/a0_client.js history\nnode scripts/a0_client.js reset  # Clear conversation"
      },
      {
        "title": "Task Breakdown (Creates Tracked Project)",
        "body": "node scripts/task_breakdown.js \"Build e-commerce platform\"\n# Creates notebook/tasks/projects/<name>.md with checkable steps"
      },
      {
        "title": "From Agent Zero → Clawdbot",
        "body": "Inside A0 container:\n\n# Report progress\nnode /a0/bridge/clawdbot_client.js notify \"Working on step 3...\"\n\n# Ask for input\nnode /a0/bridge/clawdbot_client.js \"Should I use PostgreSQL or SQLite?\"\n\n# Invoke Clawdbot tool\nnode /a0/bridge/clawdbot_client.js tool web_search '{\"query\":\"Node.js best practices\"}'"
      },
      {
        "title": "Troubleshooting",
        "body": "ErrorFix401 / API key errorCheck A0_API_KEY matches Agent Zero's mcp_server_tokenConnection refused from DockerUse host LAN IP in CLAWDBOT_API_URL_DOCKER, ensure gateway binds 0.0.0.0A0 500 errorsCheck Agent Zero's LLM API key (Gemini/OpenAI) is valid"
      }
    ],
    "body": "Agent Zero Bridge\n\nBidirectional communication between Clawdbot and Agent Zero.\n\nWhen to Use\nComplex coding tasks requiring iteration/self-correction\nLong-running builds, tests, or infrastructure work\nTasks needing persistent Docker execution environment\nResearch with many sequential tool calls\nUser explicitly asks for Agent Zero\nSetup (First Time Only)\n1. Prerequisites\nNode.js 18+ (for built-in fetch)\nAgent Zero running (Docker recommended, port 50001)\nClawdbot Gateway with HTTP endpoints enabled\n2. Install\n# Copy skill to Clawdbot skills directory\ncp -r <this-skill-folder> ~/.clawdbot/skills/agent-zero-bridge\n\n# Create config from template\ncd ~/.clawdbot/skills/agent-zero-bridge\ncp .env.example .env\n\n3. Configure .env\n# Agent Zero (get token from A0 settings or calculate from runtime ID)\nA0_API_URL=http://127.0.0.1:50001\nA0_API_KEY=your_agent_zero_token\n\n# Clawdbot Gateway\nCLAWDBOT_API_URL=http://127.0.0.1:18789\nCLAWDBOT_API_TOKEN=your_gateway_token\n\n# For Docker containers reaching host (use your machine's LAN IP)\nCLAWDBOT_API_URL_DOCKER=http://192.168.1.x:18789\n\n4. Get Agent Zero Token\n# Calculate from A0's runtime ID\nimport hashlib, base64\nruntime_id = \"your_A0_PERSISTENT_RUNTIME_ID\"  # from A0's .env\nhash_bytes = hashlib.sha256(f\"{runtime_id}::\".encode()).digest()\ntoken = base64.urlsafe_b64encode(hash_bytes).decode().replace(\"=\", \"\")[:16]\nprint(token)\n\n5. Enable Clawdbot Gateway Endpoints\n\nAdd to ~/.clawdbot/clawdbot.json:\n\n{\n  \"gateway\": {\n    \"bind\": \"0.0.0.0\",\n    \"auth\": { \"mode\": \"token\", \"token\": \"your_token\" },\n    \"http\": { \"endpoints\": { \"chatCompletions\": { \"enabled\": true } } }\n  }\n}\n\n\nThen: clawdbot gateway restart\n\n6. Deploy Client to Agent Zero Container\ndocker exec <container> mkdir -p /a0/bridge/lib\ndocker cp scripts/lib/. <container>:/a0/bridge/lib/\ndocker cp scripts/clawdbot_client.js <container>:/a0/bridge/\ndocker cp .env <container>:/a0/bridge/\ndocker exec <container> sh -c 'echo \"DOCKER_CONTAINER=true\" >> /a0/bridge/.env'\n\nUsage\nSend Task to Agent Zero\nnode scripts/a0_client.js \"Build a REST API with JWT authentication\"\nnode scripts/a0_client.js \"Review this code\" --attach ./file.py\nnode scripts/a0_client.js \"New task\" --new  # Start fresh conversation\n\nCheck Status\nnode scripts/a0_client.js status\nnode scripts/a0_client.js history\nnode scripts/a0_client.js reset  # Clear conversation\n\nTask Breakdown (Creates Tracked Project)\nnode scripts/task_breakdown.js \"Build e-commerce platform\"\n# Creates notebook/tasks/projects/<name>.md with checkable steps\n\nFrom Agent Zero → Clawdbot\n\nInside A0 container:\n\n# Report progress\nnode /a0/bridge/clawdbot_client.js notify \"Working on step 3...\"\n\n# Ask for input\nnode /a0/bridge/clawdbot_client.js \"Should I use PostgreSQL or SQLite?\"\n\n# Invoke Clawdbot tool\nnode /a0/bridge/clawdbot_client.js tool web_search '{\"query\":\"Node.js best practices\"}'\n\nTroubleshooting\nError\tFix\n401 / API key error\tCheck A0_API_KEY matches Agent Zero's mcp_server_token\nConnection refused from Docker\tUse host LAN IP in CLAWDBOT_API_URL_DOCKER, ensure gateway binds 0.0.0.0\nA0 500 errors\tCheck Agent Zero's LLM API key (Gemini/OpenAI) is valid"
  },
  "trust": {
    "sourceLabel": "tencent",
    "provenanceUrl": "https://clawhub.ai/DOWingard/agent-zero-bridge",
    "publisherUrl": "https://clawhub.ai/DOWingard/agent-zero-bridge",
    "owner": "DOWingard",
    "version": "1.0.0",
    "license": null,
    "verificationStatus": "Indexed source record"
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/agent-zero-bridge",
    "downloadUrl": "https://openagent3.xyz/downloads/agent-zero-bridge",
    "agentUrl": "https://openagent3.xyz/skills/agent-zero-bridge/agent",
    "manifestUrl": "https://openagent3.xyz/skills/agent-zero-bridge/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/agent-zero-bridge/agent.md"
  }
}