Documentation
README
Headless Claude Code
Running Claude Code outside a desktop terminal β in Docker containers, CI runners, cloud VMs, or orchestrated by another process β is full of undocumented friction. This guide covers everything we've learned getting CC to work reliably in these environments.
1. Authentication
CC tries multiple auth strategies in a fixed priority order. Understanding this chain is the key to headless auth.
Priority Order (highest β lowest)
This is the opening of the README. Read the full README on GitHub.