Sessions
Transcript
/v1/messages
Anthropic-compatible. Point any SDK at …, key = control token. agent = host runs the CC loop (host tools/files, real usage). raw = credential-borrowing passthrough — the client builds the full request, host only swaps creds (needs the sdk_client surgery).
Response
awaiting request…
Egress 出口自检
登录前先确认:本容器出网真的走了你配的 best-vn.{acct} 代理(VN 出口),没有能绕过代理漏出去的直连路。打 ip-api.com,经代理 / 尝试绕过各一路,看是否存在绕过路。强制全量走代理时两路同 IP = 锁定代理 = 正常。
Credential profiles
新增账号先保存为独立 profile,不影响当前请求;点击 activate 后通过 CC 自己的 installOAuthTokens 在当前进程内热切换。所有 API key 共用当前 active profile。
idle
| name | account | plan | credential | expires | actions |
|---|
API keys
为外部 /v1/* 请求创建独立 key。每个 key 可单独决定是否剥离官方 system prompt;完整 key 只在创建后显示一次。
idle
Managed keys
| name | prefix | strip | status | created | actions |
|---|
MCP hot-plug
add/reconnect/toggle need a real TUI (register closure). connect is a headless dry-run. attach wires tools into the selected session only.
—
Interception gateway
Rewrites every z_8(callModel) request in place (semantic MITM); CCH recomputes natively.
—
Request observer
ccasapi lifecycle
Every request through the cc-send path (CC's SDK client / YF) — invisible to Observe, which taps sp/z_8/T0f one layer above. Each capture: inbound identity + official? verdict (hover the badge for the evidence), the request as received, what 补CC包 injected/rewrote (original→fixed diff), and the return / error. Cold-start 400s and rate-limits are flagged.
/v1/messages — each capture flares in newest-first, expandable into RX · FIX · TX channels.ccastoken
Every count_tokens API call — model, messages/tools count, result (input_tokens) or error, duration.
count_tokens call.Capabilities
| surgery | state | fn | exposes | meaning |
|---|
Raw
—
Official limits
CC 自带 fetchUtilization → GET /api/oauth/usage(发的就是 CC 那个请求)。订阅限额,百分比 + 重置时间。
Local usage
本机经 /v1/messages 网关捕获的真实 token 累计,按 model 分组(不含其它设备/claude.ai)。