Quick start
Setup
cac docker setup is an interactive wizard that:
- Asks for your proxy address (supports compact and share link formats)
- Auto-detects local vs remote Docker installation
- Auto-detects network parameters (interface, subnet, gateway) for macvlan mode
- Writes configuration to
docker/.env
Proxy formats
What happens inside the container
On first boot, the entrypoint automatically:1
Start sing-box TUN
All container traffic is transparently routed through your proxy at the kernel level. No proxy environment variables visible to applications.
2
Detect timezone and locale
Queries the exit IP to determine timezone and language, then configures the container.
3
Create cac profile
Generates a unique identity (UUID, hostname, MAC, machine ID) and mTLS certificate.
4
Activate profile
Sets environment variables and writes to
/root/.cac-env for persistence across shell sessions.Persistent storage
/root and /home are bind-mounted to docker/data/ on the host. Your Claude Code sessions, settings, and work files survive container restarts.
Port forwarding
To expose a port from the container (e.g., a dev server):localhost:6287 on the host to the container.