claude-sonnet-5 返回 API_OK。
运行环境需设置 ANTHROPIC_BASE_URL=https://code.heihuzi.ai、ANTHROPIC_AUTH_TOKEN 为 Messages Key、CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC=1。本次环境没有设置 ANTHROPIC_API_KEY 或 CLAUDE_CODE_OAUTH_TOKEN。
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
macOS 上实际运行的 Claude Code Messages 接入。
claude-sonnet-5 返回 API_OK。
运行环境需设置 ANTHROPIC_BASE_URL=https://code.heihuzi.ai、ANTHROPIC_AUTH_TOKEN 为 Messages Key、CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC=1。本次环境没有设置 ANTHROPIC_API_KEY 或 CLAUDE_CODE_OAUTH_TOKEN。
claude \
--safe-mode \
--setting-sources '' \
--strict-mcp-config \
--mcp-config '{"mcpServers":{}}' \
--tools '' \
--no-session-persistence \
--model claude-sonnet-5 \
--effort low \
--output-format json \
--system-prompt 'You are an API connectivity test. Reply exactly API_OK.' \
-p 'Reply with exactly API_OK.'