Repository navigation
MicroGlow Relay 1.0
MicroGlow Relay 1.0
把第三方模型,接进 Codex 与 Claude Code。
Windows 桌面端的本地模型网关。Relay 监听 127.0.0.1:4141,让 Codex(OpenAI
Responses)与 Claude Code(Anthropic Messages)通过同一个本地入口使用第三方模型。
下载
MicroGlow-Relay-1.0-Setup.exe(64 位安装包,需管理员权限)- SHA-256:
c7da4e7386819b54cd531e301a7a493a272ca5366005a6cf81d5afebf9e646dc - 校验:
certutil -hashfile MicroGlow-Relay-1.0-Setup.exe SHA256
安装包未做代码签名,Windows 可能显示 SmartScreen 提示。请核对上述校验值。
这一版有什么
- 本地网关:
/v1/responses、/v1/messages、/v1/messages/count_tokens(本地估算)、
/v1/models、/health。 - 上游:OpenAI Chat Completions、OpenAI Responses、Anthropic Messages;可接 DeepSeek、
智谱、Moonshot、硅基流动、Ollama、OpenAI、Anthropic 与自定义中转。 - 协议保真:流式、工具调用(含并行)、思考块、图片输入、提示缓存字段。
- 波动化解:预响应重试、多渠道加权、失败冷却 60 秒、响应开始前自动换渠道;
已开始的流不重放。 - 客户端接入:一键写入
~/.codex/config.toml与~/.claude/settings.json,
写前备份、检测外部改动、退出时恢复。 - Trip Token:A / B 两段小计,全局|Codex|Claude 三种口径,可命名;清零后 10 秒内
可撤销,并自动写入行程记录;总里程永不清零。 - 8 种界面语言,4 季 × 昼夜共 8 组皮肤。
隐私
- 不需要账号;API Key 与本地访问令牌在 Relay 自身设置中经 Windows DPAPI 加密。
- 为让客户端连上,本地访问令牌会以明文写入客户端自己的配置文件。
- 请求与回复正文不保存;本地日志记录元数据与脱敏、截断到 800 字符的上游错误摘录。
- 推理文本本地缓存最长 7 天、最多 2000 条。
- 匿名统计默认关闭,需明确同意;同意后正常退出时每天上传一次聚合数据。
- 自动检查更新默认开启,每个自然日最多一次;更新请求不含安装标识、配置或正文;
安装始终需要你操作。
详见仓库中的 docs/PRIVACY-POLICY.md 与 README。
已知限制
- 本版仅支持 Windows x64,不支持 Linux。
- 安装包未签名。
- 打包方式为 PyInstaller onefile;Qt/PySide6 的 LGPL 替换要求尚待确认。
- 跨模型会话续接为路线图项目,本版未实现。
许可证
源代码 Apache-2.0;美术素材 CC BY-NC-ND 4.0;名称与 Logo 不随许可证授权。
第三方组件见 THIRD_PARTY_NOTICES.md。
MicroGlow Relay 与 OpenAI、Anthropic 无隶属、背书或赞助关系;Codex 与 Claude Code
仅用于说明客户端兼容性。
联系
支持 support@microglow.com.cn · 隐私 privacy@microglow.com.cn ·
安全 security@microglow.com.cn · 官网 https://www.microglow.com.cn/relay
MicroGlow Relay 1.0
Use third-party models in Codex and Claude Code.
A local model gateway for Windows. Relay listens on 127.0.0.1:4141 and lets
Codex (OpenAI Responses) and Claude Code (Anthropic Messages) reach third-party
model providers through one local endpoint.
Download
MicroGlow-Relay-1.0-Setup.exe(64-bit installer, administrator rights required)- SHA-256:
c7da4e7386819b54cd531e301a7a493a272ca5366005a6cf81d5afebf9e646dc - Verify:
certutil -hashfile MicroGlow-Relay-1.0-Setup.exe SHA256
The installer is not code-signed. Windows SmartScreen may warn. Check the
checksum above.
What's in this release
- Local gateway:
/v1/responses,/v1/messages,/v1/messages/count_tokens
(local estimate),/v1/models,/health. - Upstreams: OpenAI Chat Completions, OpenAI Responses, Anthropic Messages.
Works with DeepSeek, Zhipu, Moonshot, SiliconFlow, Ollama, OpenAI, Anthropic and
custom relays. - Protocol fidelity: streaming, tool calls (including parallel), thinking blocks,
image input, prompt-caching fields. - Hiccup handling: pre-response retry, weighted channels, 60-second cooldown,
failover before the response starts; a started stream is never replayed. - Client integration: one switch writes
~/.codex/config.tomland
~/.claude/settings.json, with backups, drift detection and restore on exit. - Trip Token: two subtotals (A/B) scoped to All / Codex / Claude, renameable,
a 10-second undo after reset, automatic ledger entries; the total never resets. - 8 interface languages; 4 seasons × day/night (8 skins).
Privacy
- No account. API keys and the local access token are encrypted with Windows
DPAPI inside Relay's own settings. - For the clients to connect, the local access token is written in plain text
into their own configuration files. - Request and response bodies are not stored; the local log keeps metadata and a
redacted upstream error excerpt truncated to 800 characters. - Reasoning text is cached for up to 7 days (max 2000 entries).
- Anonymous statistics are opt-in and off by default; when enabled, one aggregate
batch is uploaded per day on normal exit. - Update checks are on by default, at most once per local day. Update requests
carry no installation ID, configuration or content. Installation always
requires a user action.
See docs/PRIVACY-POLICY.md in the repository and the README.
Known limitations
- Windows x64 only. Linux is not supported in this release.
- The installer is not code-signed.
- Built with PyInstaller onefile; the Qt/PySide6 LGPL replacement question is not
confirmed. - Cross-model session continuation is on the roadmap, not in this release.
License
Source code Apache-2.0; artwork CC BY-NC-ND 4.0; names and logos are not licensed.
Third-party components are listed in THIRD_PARTY_NOTICES.md.
MicroGlow Relay is independent and not affiliated with, endorsed by, or sponsored
by OpenAI or Anthropic. "Codex" and "Claude Code" describe client compatibility
only.
Contact
support@microglow.com.cn · privacy@microglow.com.cn ·
security@microglow.com.cn · https://www.microglow.com.cn/relay