ANTHROPIC_AUTH_TOKEN vs ANTHROPIC_API_KEY: Which to Use (2026)
The core difference is the header: API_KEY sends x-api-key, AUTH_TOKEN sends Authorization: Bearer. When to use each, what conflicts, and a 5-step checklist.
Blog
与「Authentication」相关的文章。
The core difference is the header: API_KEY sends x-api-key, AUTH_TOKEN sends Authorization: Bearer. When to use each, what conflicts, and a 5-step checklist.
Install, pick an auth method, run a first task, review the diff, and learn the slash commands in 5 steps, with a comparison of both auth options and a troubleshooting checklist.
Claude Code shows "Auth conflict", or returns 401 right after a successful login? Learn the 7 credential sources, their priority, and how to keep just one.