Repository navigation
Releases
MicroGlow Relay 1.4
MicroGlow Relay 1.4
两个修复:配置命名固化(止损)与子智能体输入适配(修功能)。
一、配置命名固化
1.3 及以前,配置在 Codex 目录里的名字(slug)是每次现算的:模型名 + 同名冲突时的 id 尾缀。一旦增删同名配置、或拆分母模型与子渠道,名字就变,历史会话里记着的旧名随即解析不到,表现为 模型不存在 的 404。11-18 当天曾有 17 次同类失败。
1.4 起:
- 配置首次定名后把 slug 存进设置文件,之后永不重算。
- 改名、改上下文上限、改协议、增删同名配置,都不再影响已有配置的名字。
- 旧配置文件(没有 slug 字段)在首次加载时按 1.3 的算法补名一次,补出来的名字与现在一致,因此升级瞬间不会让已有会话失联。
二、子智能体输入适配
Codex 多智能体派工/回执使用私有输入类型 agent_message。此前 chat / anthropic 通道被白名单拒收,返回 暂不支持的 input 类型:agent_message;responses 通道原样透传,第三方上游不认识其中的 encrypted_content 分片,同样 400。
1.4 起把 agent_message 折成一条普通 user 消息:取 input_text 与 encrypted_content 两段文本,附上发件/收件会话标注,语义不丢。原生直通(官方后端)保持原样透传,不做改写。
三、打包修复
installer/TelemetryConsent.iss 是拼进 [Code] 的 Pascal 片段,版权头误用了 ; 注释,导致安装包编译报 'BEGIN' expected。已改为 //。
下载
| 平台 | 文件 | 说明 |
|---|---|---|
| Windows x64 | MicroGlow-Relay-1.4-Setup.exe |
安装到 C:\Program Files\MicroGlow Relay,需管理员权限 |
| Windows x64(便携) | MicroGlow-Relay-1.4.exe |
单文件,可放在任意目录 |
| Linux amd64 | microglow-relay_1.4_amd64.deb |
sudo apt install ./microglow-relay_1.4_amd64.deb |
| Linux x64 | MicroGlow-Relay-1.4-linux-x64 |
独立 ELF |
已知限制
- 安装包未做代码签名,Windows 可能提示 SmartScreen;请核对
SHA256SUMS.txt。 - Linux 包为预览版:尚未完成与 Windows 同等的回归测试,且需要解锁系统密钥库(Secret Service)才能保存 API Key。本仓库的源码树是 Windows 应用,Linux 源码树尚未公开。
验证
- 新增
test_slug_stability10 条、test_agent_message12 条,全绿。 - 回归:
test_router61、test_native_passthrough29、test_friendly_names8,全绿。 - 打包后实测:
MicroGlow-Relay-1.4.exe --headless起服,POST 一条含agent_message的请求,返回200且正常完成。
升级
从 1.0–1.3 升级会覆盖程序文件,用户数据保留在 %LOCALAPPDATA%\MicroGlow Relay\data(Windows)或 $XDG_DATA_HOME/MicroGlow Relay/data(Linux)。首次启动会为已有配置补齐 slug,不影响历史会话。
MicroGlow Relay is an independent project, not affiliated with OpenAI or Anthropic.
Source: https://github.com/mazda6hk-coder/MicroGlow-Relay
MicroGlow Relay 1.3
MicroGlow Relay 1.3
原生模型直通(native passthrough):当没有任何配置匹配 Codex 原生模型名时,Relay 把请求转发到 Codex 自己的官方后端,用本机的 ChatGPT 登录态认证。
这一版的核心
- 原生模型现在真的能用:转发到
chatgpt.com/backend-api/codex/responses,认证读取本机~/.codex/auth.json。 - 推理链完整:同一账号产出、同一账号消费,
encrypted_content原样往返。 - 一次接入,两种模型并存:主控会话用原生模型,worker 会话用第三方模型,不用退出 Relay 或改配置。
- 边界说明:同一会话里若某一轮走了三方模型,那一轮的推理链接不回来(跨供应商的密码学边界),切回原生时降级为摘要文本。
模型目录(1.2 起)
- 按供应商分块排列,块内按模型名排序。
- 统一命名
供应商|模型,原生模型用原生|。 - 移除「跟随 Relay 选择」目录项;按会话选模型。
安全
~/.codex/auth.json只在每次原生请求时读取,不写入、不上传。- 原生令牌只在直通分支使用;发往第三方供应商的请求不会携带它。
- 转发给官方后端的客户端头来自固定白名单,不包含
Authorization。
下载
| 平台 | 文件 | 说明 |
|---|---|---|
| Windows x64 | MicroGlow-Relay-1.3-Setup.exe |
安装到 C:\Program Files\MicroGlow Relay,需管理员权限 |
| Windows x64(便携) | MicroGlow-Relay-1.3.exe |
单文件,可放在任意目录 |
| Linux amd64 | microglow-relay_1.3_amd64.deb |
sudo apt install ./microglow-relay_1.3_amd64.deb |
| Linux x64 | MicroGlow-Relay-1.3-linux-x64 |
独立 ELF |
已知限制
- 安装包未做代码签名,Windows 可能提示 SmartScreen;请核对
SHA256SUMS.txt。 - Linux 包为预览版:尚未完成与 Windows 同等的回归测试,且需要解锁系统密钥库(Secret Service)才能保存 API Key。本仓库的源码树是 Windows 应用,Linux 源码树尚未公开。
升级说明
从 1.0–1.2 升级会覆盖程序文件,用户数据保留在 %LOCALAPPDATA%\MicroGlow Relay\data(Windows)或 $XDG_DATA_HOME/MicroGlow Relay/data(Linux)。
校验:
certutil -hashfile MicroGlow-Relay-1.3-Setup.exe SHA256
MicroGlow Relay is an independent project, not affiliated with OpenAI or Anthropic.
Source: https://github.com/mazda6hk-coder/MicroGlow-Relay
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