3131根路径连通性探针。Claude Code 在建立连接前发送 ` HEAD / ` 作为健康检查,代理返回 HTTP 200 空响应。
3232
3333``` bash
34- curl -I http://127.0.0.1:8046 /
34+ curl -I http://127.0.0.1:3392 /
3535# HTTP/1.1 200 OK
3636```
3737
@@ -189,7 +189,7 @@ curl -I http://127.0.0.1:8046/
189189Token 计数 API 透传。支持所有提供 Anthropic 兼容端点的供应商。
190190
191191``` bash
192- curl -X POST http://127.0.0.1:8046 /v1/messages/count_tokens \
192+ curl -X POST http://127.0.0.1:3392 /v1/messages/count_tokens \
193193 -H " Content-Type: application/json" \
194194 -H " anthropic-version: 2023-06-01" \
195195 -d ' {"model":"claude-sonnet-4-6","messages":[{"role":"user","content":"Hello"}]}'
@@ -206,7 +206,7 @@ curl -X POST http://127.0.0.1:8046/v1/messages/count_tokens \
206206健康检查。
207207
208208``` bash
209- curl http://127.0.0.1:8046 /health
209+ curl http://127.0.0.1:3392 /health
210210# {"status":"ok"}
211211```
212212
@@ -215,7 +215,7 @@ curl http://127.0.0.1:8046/health
215215查询所有层级的熔断器、配额守卫、周级配额守卫、Rate Limit 及诊断信息。
216216
217217``` bash
218- curl http://127.0.0.1:8046 /api/status
218+ curl http://127.0.0.1:3392 /api/status
219219```
220220
221221** 返回示例** :
@@ -258,15 +258,15 @@ curl http://127.0.0.1:8046/api/status
258258
259259``` bash
260260# 仅重置(向后兼容)
261- curl -X POST http://127.0.0.1:8046 /api/reset
261+ curl -X POST http://127.0.0.1:3392 /api/reset
262262
263263# 重置 + 提升 anthropic 到最高优先级
264- curl -X POST http://127.0.0.1:8046 /api/reset \
264+ curl -X POST http://127.0.0.1:3392 /api/reset \
265265 -H " Content-Type: application/json" \
266266 -d ' {"vendors": ["anthropic"]}'
267267
268268# 重置 + 替换整条链路顺序
269- curl -X POST http://127.0.0.1:8046 /api/reset \
269+ curl -X POST http://127.0.0.1:3392 /api/reset \
270270 -H " Content-Type: application/json" \
271271 -d ' {"vendors": ["zhipu", "anthropic", "copilot"]}'
272272```
@@ -282,7 +282,7 @@ curl -X POST http://127.0.0.1:8046/api/reset \
282282返回 Copilot 认证与交换链路的脱敏诊断信息。
283283
284284``` bash
285- curl http://127.0.0.1:8046 /api/copilot/diagnostics
285+ curl http://127.0.0.1:3392 /api/copilot/diagnostics
286286```
287287
288288若 Copilot 供应商未启用,返回 404。
@@ -292,7 +292,7 @@ curl http://127.0.0.1:8046/api/copilot/diagnostics
292292按需探测当前 Copilot 会话可见的模型列表。
293293
294294``` bash
295- curl http://127.0.0.1:8046 /api/copilot/models
295+ curl http://127.0.0.1:3392 /api/copilot/models
296296```
297297
298298需要有效的 Copilot 凭证;凭证无效时返回 503。
@@ -302,15 +302,15 @@ curl http://127.0.0.1:8046/api/copilot/models
302302查询运行时重认证状态。
303303
304304``` bash
305- curl http://127.0.0.1:8046 /api/reauth/status
305+ curl http://127.0.0.1:3392 /api/reauth/status
306306```
307307
308308## 10. POST /api/reauth/{provider}
309309
310310手动触发指定 provider 的运行时重认证。
311311
312312``` bash
313- curl -X POST http://127.0.0.1:8046 /api/reauth/github
313+ curl -X POST http://127.0.0.1:3392 /api/reauth/github
314314# HTTP/1.1 202 Accepted
315315# {"status":"reauth requested"}
316316```
@@ -330,15 +330,15 @@ curl -X POST http://127.0.0.1:8046/api/reauth/github
330330返回 Dashboard HTML 页面。
331331
332332``` bash
333- curl http://127.0.0.1:8046 /dashboard
333+ curl http://127.0.0.1:3392 /dashboard
334334```
335335
336336### 11.2 GET /api/dashboard/summary
337337
338338返回 Dashboard 汇总数据(今日 + 所选区间)。
339339
340340``` bash
341- curl " http://127.0.0.1:8046 /api/dashboard/summary?days=7"
341+ curl " http://127.0.0.1:3392 /api/dashboard/summary?days=7"
342342```
343343
344344| 参数 | 类型 | 默认值 | 说明 |
@@ -352,7 +352,7 @@ curl "http://127.0.0.1:8046/api/dashboard/summary?days=7"
352352返回按天分组的时序数据(用于图表绘制)。
353353
354354``` bash
355- curl " http://127.0.0.1:8046 /api/dashboard/timeline?days=30"
355+ curl " http://127.0.0.1:3392 /api/dashboard/timeline?days=30"
356356```
357357
358358| 参数 | 类型 | 默认值 | 说明 |
0 commit comments