标签: 逆向工程 清除筛选
逆向 Claude Code 请求签名:cch 是怎么算出来的
Claude Code 的神秘请求头
使用 Claude Code 时,每次向 Anthropic API 发出的请求都会包含一个特殊的 system 块:
{
"type": "text",
"text": "x-anthropic-billing-header: cc_version=2.1.37.fbe; cc_entrypoint=cli; cch=a112b;"
}
这不是 system prompt,而是被伪装成文本的请求元数据。其中 cch 字段是请求完整性校验值——算错了,API 直接返回错误;算对了,fast mode 等功能才
