适用于对限制调用客户端的中转站进行分发 请求头覆盖 ```json { "User-Agent": "claude-cli/2.1.181 (external, cli)", "Connection": "keep-alive", "Accept": "application/json", "Accept-Encoding": "gzip, deflate, br, zstd", "Content-Type": "application/json", "X-Claude-Code-Session-Id": "2a30ad22-0538-4c4d-9aaf-0c1890ab44a0", "X-Stainless-Arch": "x64", "X-Stainless-Lang": "js", "X-Stainless-OS": "Windows", "X-Stainless-Package-Version": "0.94.0", "X-Stainless-Retry-Count": "0", "X-Stainless-Runtime": "node", "X-Stainless-Runtime-Version": "v24.3.0", "X-Stainless-Timeout": "600", "anthropic-beta": "claude-code-20250219,context-1m-2025-08-07,interleaved-thinking-2025-05-14,redact-thinking-2026-02-12,context-management-2025-06-27,prompt-caching-scope-2026-01-05,mid-conversation-system-2026-04-07,effort-2025-11-24", "anthropic-dangerous-direct-browser-access": "true", "anthropic-version": "2023-06-01", "x-app": "cli" } ``` 参数覆盖 ```json { "operations": [ { "mode": "set", "description": "Override system messages.", "path": "system", "value": [ { "type": "text", "text": "x-anthropic-billing-header: cc_version=2.1.181.2f9; cc_entrypoint=cli;" }, { "type": "text", "text": "You are Claude Code, Anthropic's official CLI for Claude.", "cache_control": { "type": "ephemeral" } } ] }, { "mode": "set", "description": "Override tools.", "path": "tools", "value": [] }, { "mode": "set", "description": "Override metadata.", "path": "metadata", "value": { "user_id": "{\"device_id\":\"ea951ef967aabfce51920e1b5bf7f73902a1f230d09a8f52c31ccb0614270e4d\",\"account_uuid\":\"\",\"session_id\":\"2a30ad22-0538-4c4d-9aaf-0c1890ab44a0\"}" } }, { "mode": "set", "description": "Override max_tokens.", "path": "max_tokens", "value": 64000 }, { "mode": "set", "description": "Override thinking config.", "path": "thinking", "value": { "type": "adaptive" } }, { "mode": "set", "description": "Override context management.", "path": "context_management", "value": { "edits": [ { "type": "clear_thinking_20251015", "keep": "all" } ] } }, { "mode": "set", "description": "Override output config.", "path": "output_config", "value": { "effort": "high" } } ] } ``` Loading... 适用于对限制调用客户端的中转站进行分发 请求头覆盖 ```json { "User-Agent": "claude-cli/2.1.181 (external, cli)", "Connection": "keep-alive", "Accept": "application/json", "Accept-Encoding": "gzip, deflate, br, zstd", "Content-Type": "application/json", "X-Claude-Code-Session-Id": "2a30ad22-0538-4c4d-9aaf-0c1890ab44a0", "X-Stainless-Arch": "x64", "X-Stainless-Lang": "js", "X-Stainless-OS": "Windows", "X-Stainless-Package-Version": "0.94.0", "X-Stainless-Retry-Count": "0", "X-Stainless-Runtime": "node", "X-Stainless-Runtime-Version": "v24.3.0", "X-Stainless-Timeout": "600", "anthropic-beta": "claude-code-20250219,context-1m-2025-08-07,interleaved-thinking-2025-05-14,redact-thinking-2026-02-12,context-management-2025-06-27,prompt-caching-scope-2026-01-05,mid-conversation-system-2026-04-07,effort-2025-11-24", "anthropic-dangerous-direct-browser-access": "true", "anthropic-version": "2023-06-01", "x-app": "cli" } ``` 参数覆盖 ```json { "operations": [ { "mode": "set", "description": "Override system messages.", "path": "system", "value": [ { "type": "text", "text": "x-anthropic-billing-header: cc_version=2.1.181.2f9; cc_entrypoint=cli;" }, { "type": "text", "text": "You are Claude Code, Anthropic's official CLI for Claude.", "cache_control": { "type": "ephemeral" } } ] }, { "mode": "set", "description": "Override tools.", "path": "tools", "value": [] }, { "mode": "set", "description": "Override metadata.", "path": "metadata", "value": { "user_id": "{\"device_id\":\"ea951ef967aabfce51920e1b5bf7f73902a1f230d09a8f52c31ccb0614270e4d\",\"account_uuid\":\"\",\"session_id\":\"2a30ad22-0538-4c4d-9aaf-0c1890ab44a0\"}" } }, { "mode": "set", "description": "Override max_tokens.", "path": "max_tokens", "value": 64000 }, { "mode": "set", "description": "Override thinking config.", "path": "thinking", "value": { "type": "adaptive" } }, { "mode": "set", "description": "Override context management.", "path": "context_management", "value": { "edits": [ { "type": "clear_thinking_20251015", "keep": "all" } ] } }, { "mode": "set", "description": "Override output config.", "path": "output_config", "value": { "effort": "high" } } ] } ``` 最后修改:2026 年 06 月 24 日 © 允许规范转载 打赏 赞赏作者 支付宝微信 赞 如果觉得我的文章对你有用,请随意赞赏