返回顶部
m

mirage-proxy幻影代理配置

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.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 0.5.17
安全检测
已通过
600
下载量
免费
免费
0
收藏
概述
安装方式
版本历史

mirage-proxy

mirage-proxy for OpenClaw

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

Quick Setup

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

Configure OpenClaw Providers

After setup.sh succeeds, patch the OpenClaw config. Keep original providers AND add mirage versions for instant fallback:

CODEBLOCK1

OpenAI / Codex (OAuth)

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.

Model Aliases

After config, switch with /model:

AliasRoute
INLINECODE3Direct to Anthropic
INLINECODE4
Via mirage-proxy → Anthropic |
| anthropic-sonnet | Direct |
| mirage-sonnet | Via mirage |
| codex | Direct to OpenAI (or miraged if baseUrl overridden) |

Persistence

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/

If 000 or connection refused → restart via start-mirage.sh.

Verify

CODEBLOCK5

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 mirage-proxy-1776420084 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 mirage-proxy-1776420084 技能

通过命令行安装

skillhub install mirage-proxy-1776420084

下载

⬇ 下载 mirage-proxy v0.5.17(免费)

文件大小: 4.37 KB | 发布时间: 2026-4-17 20:13

v0.5.17 最新 2026-4-17 20:13
Add SHA256 binary verification

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部