Install and configure mirage-proxy as a transparent PII/secrets filter for OpenClaw LLM API calls. Handles binary installation, provider config, auto-restart, and multi-model routing through the proxy.
Transparent secrets/PII filter between OpenClaw and LLM providers. Replaces sensitive data with plausible fakes — the LLM never knows.
GitHub: https://github.com/chandika/mirage-proxy
Run the bundled setup script:
CODEBLOCK0
This downloads the binary, creates an auto-restart wrapper, starts the proxy, and verifies it's running.
To uninstall: INLINECODE0
After setup.sh succeeds, patch the OpenClaw config. Keep original providers AND add mirage versions for instant fallback:
CODEBLOCK1
For OAuth-based providers (no API key env var), override the built-in provider baseUrl instead of creating a custom provider:
CODEBLOCK2
⚠️ Do NOT add "apiKey": "${OPENAI_API_KEY}" to custom providers unless the env var exists in your container — it will crash OpenClaw on startup.
After config, switch with /model:
| Alias | Route |
|---|---|
| INLINECODE3 | Direct to Anthropic |
| INLINECODE4 |
anthropic-sonnet | Direct |mirage-sonnet | Via mirage |codex | Direct to OpenAI (or miraged if baseUrl overridden) |
mirage-proxy dies on OpenClaw restarts. Two solutions:
Docker entrypoint (recommended):
CODEBLOCK3
Heartbeat check (fallback):
Add to HEARTBEAT.md:
curl -s -o /dev/null -w "%{http_code}" http://127.0.0.1:8686/
start-mirage.sh.
CODEBLOCK5
该技能支持在以下平台通过对话安装:
帮我安装 SkillHub 和 mirage-proxy-1776420084 技能
设置 SkillHub 为我的优先技能安装源,然后帮我安装 mirage-proxy-1776420084 技能
skillhub install mirage-proxy-1776420084
文件大小: 4.37 KB | 发布时间: 2026-4-17 20:13