Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions docs/clients.md
Original file line number Diff line number Diff line change
Expand Up @@ -828,11 +828,13 @@ Verified entry points (community-maintained list — the mechanism is generic):
| **Void** | custom OpenAI-compatible endpoint setting |
| **Cursor** (single-model channel) | Settings → Models → OpenAI API key → **Override Base URL** |
| **Warp** | custom-model base URL setting |
| **Command Code** (`cmd`, commandcode.ai) | `~/.commandcode/providers.json` — per-provider (and per-model) `baseURL` (keys live in `auth.json`, never in this file) |

Notes:

- **Crush** is a launcher lane now — prefer `bili crush` (config untouched, HTTPS domains MITM'd automatically).
- **Zed** is a launcher lane too — prefer `bili zed` (Linux; config untouched, model domains MITM'd automatically, loopback providers stay direct). The settings.json `api_url` path above remains the cross-platform alternative.
- **Command Code**: the row above covers its BYOK models (standard wires, compressed today). Its catalog/gateway models ride a custom wire (`POST /alpha/generate`) that relays byte-for-byte — see [below](#an-unrecognized-endpoint-goes-direct-and-nothing-compresses-1290); the declarable-wire fix is tracked in #1295.
- Clients you **sign into** (OAuth/subscription) usually hardcode the endpoint — the prefix trick doesn't apply; see the [MITM section below](#client-uses-httpproxy-connect-but-nothing-compresses) instead.
- Plain **web apps** (browser-only products) have no local traffic to intercept.
- VS Code extensions keep their base-URL fields in plain-text settings but secrets in the OS keychain — only the base URL ever needs editing here.
Expand Down
2 changes: 2 additions & 0 deletions docs/clients.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -249,11 +249,13 @@ pi-subagents(pi.dev 上的包)为前台/后台子代理运行派生**子会话**
| **Void** | 自定义 OpenAI 兼容端点设置 |
| **Cursor**(单模型通道) | Settings → Models → OpenAI API key → **Override Base URL** |
| **Warp** | 自定义模型 base URL 设置 |
| **Command Code**(`cmd`,commandcode.ai) | `~/.commandcode/providers.json` —— 各 provider(及模型级)`baseURL`(密钥在 `auth.json`,不在这个文件) |

注意:

- **Crush** 已有启动器车道——直接用 `bili crush`(配置零改动,HTTPS 域自动 MITM)。
- **Zed** 也已有启动器车道——直接用 `bili zed`(Linux;配置零改动,模型域自动 MITM,环回 provider 保持直连)。上面的 settings.json `api_url` 路径仍是跨平台替代。
- **Command Code**:上表一行覆盖其 BYOK 模型(标准 wire,今天就能压缩)。其目录/网关套餐走自定义 wire(`POST /alpha/generate`),逐字节中继不压缩——见[下文](#未识别的端点直连什么都不压缩1290)「未识别的端点直连、什么都不压缩」一节;可声明 wire 的修复追踪在 #1295。
- **账号登录**型客户端(OAuth/订阅)通常焊死端点——前缀技巧不适用,改看[下方 MITM 节](#客户端用-httpproxyconnect接入但从不压缩)。
- 纯 **web 应用**(只在浏览器里的产品)本地没有流量可截。
- VS Code 扩展的 baseURL 字段在明文设置里,密钥在系统钥匙串——这里只需要改 baseURL。
Expand Down
7 changes: 7 additions & 0 deletions scripts/live-files.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,13 @@ export const LIVE_FILES = [
// network I/O and binds no port, so no zone band is needed — the entry is for
// the tripwire alone, like #3890/#5114
"tests/cache-keepalive.test.ts",
// #5955: the only real child is ONE bare `node -e ""` spawned purely to
// hand back an already-reaped pid (win32 taskkill-then-SIGKILL silence);
// the takeover ladder itself runs on INJECTED deps — no proxy is started,
// no port is bound, no shutdown/kill signal ever reaches the OS. Fixed
// fake origins only, so no zone band is needed — the entry is for the
// tripwire alone, like #3890/#5114/#5666
"tests/issue5955-wedged-same-lane-takeover.test.ts",
];

/** Band width per live file: the zone ladder drifts +1 per EADDRINUSE retry;
Expand Down
Loading