{
  "schemaVersion": "1.0",
  "item": {
    "slug": "mirage-proxy",
    "name": "Mirage Proxy",
    "source": "tencent",
    "type": "skill",
    "category": "开发工具",
    "sourceUrl": "https://clawhub.ai/chandika/mirage-proxy",
    "canonicalUrl": "https://clawhub.ai/chandika/mirage-proxy",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadMode": "redirect",
    "downloadUrl": "/downloads/mirage-proxy",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=mirage-proxy",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "installMethod": "Manual import",
    "extraction": "Extract archive",
    "prerequisites": [
      "OpenClaw"
    ],
    "packageFormat": "ZIP package",
    "includedAssets": [
      "SKILL.md",
      "setup.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",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-04-30T16:55:25.780Z",
      "expiresAt": "2026-05-07T16:55:25.780Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=network",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=network",
        "contentDisposition": "attachment; filename=\"network-1.0.0.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/mirage-proxy"
    },
    "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/mirage-proxy",
    "agentPageUrl": "https://openagent3.xyz/skills/mirage-proxy/agent",
    "manifestUrl": "https://openagent3.xyz/skills/mirage-proxy/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/mirage-proxy/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": "mirage-proxy for OpenClaw",
        "body": "Transparent secrets/PII filter between OpenClaw and LLM providers. Replaces sensitive data with plausible fakes — the LLM never knows.\n\nGitHub: https://github.com/chandika/mirage-proxy"
      },
      {
        "title": "Quick Setup",
        "body": "Run the bundled setup script:\n\nbash ~/.openclaw/workspace/skills/mirage-proxy/setup.sh\n\nThis downloads the binary, creates an auto-restart wrapper, starts the proxy, and verifies it's running.\n\nTo uninstall: bash ~/.openclaw/workspace/skills/mirage-proxy/setup.sh --uninstall"
      },
      {
        "title": "Configure OpenClaw Providers",
        "body": "After setup.sh succeeds, patch the OpenClaw config. Keep original providers AND add mirage versions for instant fallback:\n\n{\n  \"models\": {\n    \"mode\": \"merge\",\n    \"providers\": {\n      \"mirage-anthropic\": {\n        \"baseUrl\": \"http://127.0.0.1:8686/anthropic\",\n        \"api\": \"anthropic-messages\",\n        \"apiKey\": \"${ANTHROPIC_API_KEY}\",\n        \"models\": [\n          { \"id\": \"claude-opus-4-6\", \"name\": \"Claude Opus 4.6 (mirage)\", \"api\": \"anthropic-messages\", \"reasoning\": true, \"input\": [\"text\", \"image\"], \"cost\": {\"input\":0,\"output\":0,\"cacheRead\":0,\"cacheWrite\":0}, \"contextWindow\": 200000, \"maxTokens\": 32000 },\n          { \"id\": \"claude-sonnet-4-6\", \"name\": \"Claude Sonnet 4.6 (mirage)\", \"api\": \"anthropic-messages\", \"reasoning\": true, \"input\": [\"text\", \"image\"], \"cost\": {\"input\":0,\"output\":0,\"cacheRead\":0,\"cacheWrite\":0}, \"contextWindow\": 200000, \"maxTokens\": 16000 },\n          { \"id\": \"claude-haiku-3-6\", \"name\": \"Claude Haiku 3.6 (mirage)\", \"api\": \"anthropic-messages\", \"reasoning\": false, \"input\": [\"text\", \"image\"], \"cost\": {\"input\":0,\"output\":0,\"cacheRead\":0,\"cacheWrite\":0}, \"contextWindow\": 200000, \"maxTokens\": 8192 }\n        ]\n      }\n    }\n  },\n  \"agents\": {\n    \"defaults\": {\n      \"models\": {\n        \"anthropic/claude-opus-4-6\": { \"alias\": \"anthropic-opus\" },\n        \"anthropic/claude-sonnet-4-6\": { \"alias\": \"anthropic-sonnet\" },\n        \"anthropic/claude-haiku-3-6\": { \"alias\": \"anthropic-haiku\" },\n        \"mirage-anthropic/claude-opus-4-6\": { \"alias\": \"mirage-opus\" },\n        \"mirage-anthropic/claude-sonnet-4-6\": { \"alias\": \"mirage-sonnet\" },\n        \"mirage-anthropic/claude-haiku-3-6\": { \"alias\": \"mirage-haiku\" }\n      }\n    }\n  }\n}"
      },
      {
        "title": "OpenAI / Codex (OAuth)",
        "body": "For OAuth-based providers (no API key env var), override the built-in provider baseUrl instead of creating a custom provider:\n\n{\n  \"models\": {\n    \"mode\": \"merge\",\n    \"providers\": {\n      \"openai-codex\": {\n        \"baseUrl\": \"http://127.0.0.1:8686\"\n      }\n    }\n  }\n}\n\n⚠️ Do NOT add \"apiKey\": \"${OPENAI_API_KEY}\" to custom providers unless the env var exists in your container — it will crash OpenClaw on startup."
      },
      {
        "title": "Model Aliases",
        "body": "After config, switch with /model:\n\nAliasRouteanthropic-opusDirect to Anthropicmirage-opusVia mirage-proxy → Anthropicanthropic-sonnetDirectmirage-sonnetVia miragecodexDirect to OpenAI (or miraged if baseUrl overridden)"
      },
      {
        "title": "Persistence",
        "body": "mirage-proxy dies on OpenClaw restarts. Two solutions:\n\nDocker entrypoint (recommended):\n\n# docker-compose.yml\ncommand: sh -c \"nohup /home/node/.openclaw/workspace/start-mirage.sh > /dev/null 2>&1 & exec openclaw start\"\n\nHeartbeat check (fallback):\nAdd to HEARTBEAT.md:\n\ncurl -s -o /dev/null -w \"%{http_code}\" http://127.0.0.1:8686/\n\nIf 000 or connection refused → restart via start-mirage.sh."
      },
      {
        "title": "Verify",
        "body": "# Proxy running?\ncurl -s -o /dev/null -w \"%{http_code}\" http://127.0.0.1:8686/\n# Expect 502 (up, no path matched)\n\n# Check redaction stats\ntail -20 ~/.openclaw/workspace/mirage-proxy.log\n# Look for: 🛡️ SECRET (AWS Access Key) [40 chars] → AKIA••••"
      }
    ],
    "body": "mirage-proxy for OpenClaw\n\nTransparent secrets/PII filter between OpenClaw and LLM providers. Replaces sensitive data with plausible fakes — the LLM never knows.\n\nGitHub: https://github.com/chandika/mirage-proxy\n\nQuick Setup\n\nRun the bundled setup script:\n\nbash ~/.openclaw/workspace/skills/mirage-proxy/setup.sh\n\n\nThis downloads the binary, creates an auto-restart wrapper, starts the proxy, and verifies it's running.\n\nTo uninstall: bash ~/.openclaw/workspace/skills/mirage-proxy/setup.sh --uninstall\n\nConfigure OpenClaw Providers\n\nAfter setup.sh succeeds, patch the OpenClaw config. Keep original providers AND add mirage versions for instant fallback:\n\n{\n  \"models\": {\n    \"mode\": \"merge\",\n    \"providers\": {\n      \"mirage-anthropic\": {\n        \"baseUrl\": \"http://127.0.0.1:8686/anthropic\",\n        \"api\": \"anthropic-messages\",\n        \"apiKey\": \"${ANTHROPIC_API_KEY}\",\n        \"models\": [\n          { \"id\": \"claude-opus-4-6\", \"name\": \"Claude Opus 4.6 (mirage)\", \"api\": \"anthropic-messages\", \"reasoning\": true, \"input\": [\"text\", \"image\"], \"cost\": {\"input\":0,\"output\":0,\"cacheRead\":0,\"cacheWrite\":0}, \"contextWindow\": 200000, \"maxTokens\": 32000 },\n          { \"id\": \"claude-sonnet-4-6\", \"name\": \"Claude Sonnet 4.6 (mirage)\", \"api\": \"anthropic-messages\", \"reasoning\": true, \"input\": [\"text\", \"image\"], \"cost\": {\"input\":0,\"output\":0,\"cacheRead\":0,\"cacheWrite\":0}, \"contextWindow\": 200000, \"maxTokens\": 16000 },\n          { \"id\": \"claude-haiku-3-6\", \"name\": \"Claude Haiku 3.6 (mirage)\", \"api\": \"anthropic-messages\", \"reasoning\": false, \"input\": [\"text\", \"image\"], \"cost\": {\"input\":0,\"output\":0,\"cacheRead\":0,\"cacheWrite\":0}, \"contextWindow\": 200000, \"maxTokens\": 8192 }\n        ]\n      }\n    }\n  },\n  \"agents\": {\n    \"defaults\": {\n      \"models\": {\n        \"anthropic/claude-opus-4-6\": { \"alias\": \"anthropic-opus\" },\n        \"anthropic/claude-sonnet-4-6\": { \"alias\": \"anthropic-sonnet\" },\n        \"anthropic/claude-haiku-3-6\": { \"alias\": \"anthropic-haiku\" },\n        \"mirage-anthropic/claude-opus-4-6\": { \"alias\": \"mirage-opus\" },\n        \"mirage-anthropic/claude-sonnet-4-6\": { \"alias\": \"mirage-sonnet\" },\n        \"mirage-anthropic/claude-haiku-3-6\": { \"alias\": \"mirage-haiku\" }\n      }\n    }\n  }\n}\n\nOpenAI / Codex (OAuth)\n\nFor OAuth-based providers (no API key env var), override the built-in provider baseUrl instead of creating a custom provider:\n\n{\n  \"models\": {\n    \"mode\": \"merge\",\n    \"providers\": {\n      \"openai-codex\": {\n        \"baseUrl\": \"http://127.0.0.1:8686\"\n      }\n    }\n  }\n}\n\n\n⚠️ Do NOT add \"apiKey\": \"${OPENAI_API_KEY}\" to custom providers unless the env var exists in your container — it will crash OpenClaw on startup.\n\nModel Aliases\n\nAfter config, switch with /model:\n\nAlias\tRoute\nanthropic-opus\tDirect to Anthropic\nmirage-opus\tVia mirage-proxy → Anthropic\nanthropic-sonnet\tDirect\nmirage-sonnet\tVia mirage\ncodex\tDirect to OpenAI (or miraged if baseUrl overridden)\nPersistence\n\nmirage-proxy dies on OpenClaw restarts. Two solutions:\n\nDocker entrypoint (recommended):\n\n# docker-compose.yml\ncommand: sh -c \"nohup /home/node/.openclaw/workspace/start-mirage.sh > /dev/null 2>&1 & exec openclaw start\"\n\n\nHeartbeat check (fallback): Add to HEARTBEAT.md:\n\ncurl -s -o /dev/null -w \"%{http_code}\" http://127.0.0.1:8686/\n\n\nIf 000 or connection refused → restart via start-mirage.sh.\n\nVerify\n# Proxy running?\ncurl -s -o /dev/null -w \"%{http_code}\" http://127.0.0.1:8686/\n# Expect 502 (up, no path matched)\n\n# Check redaction stats\ntail -20 ~/.openclaw/workspace/mirage-proxy.log\n# Look for: 🛡️ SECRET (AWS Access Key) [40 chars] → AKIA••••"
  },
  "trust": {
    "sourceLabel": "tencent",
    "provenanceUrl": "https://clawhub.ai/chandika/mirage-proxy",
    "publisherUrl": "https://clawhub.ai/chandika/mirage-proxy",
    "owner": "chandika",
    "version": "0.5.17",
    "license": null,
    "verificationStatus": "Indexed source record"
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/mirage-proxy",
    "downloadUrl": "https://openagent3.xyz/downloads/mirage-proxy",
    "agentUrl": "https://openagent3.xyz/skills/mirage-proxy/agent",
    "manifestUrl": "https://openagent3.xyz/skills/mirage-proxy/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/mirage-proxy/agent.md"
  }
}