fix: require ANTHROPIC_API_KEY for Claude Code / Happy Coder auth #13
Reference in New Issue
Block a user
Delete Branch "fix/claude-code-auth"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
ANTHROPIC_API_KEYis set in the environment, Claude Code skips browser auth and uses the key directly — this is the correct approach for containerized environmentsenvFrom: secretRefin the Deployment already passes all secret keys as env vars, so users just need to addANTHROPIC_API_KEYto their existing Kubernetes secretChanges
init-repo.sh: print a clear warning at startup ifANTHROPIC_API_KEYis not set, explaining why Happy Coder won't workchart/values.yaml: documentANTHROPIC_API_KEYin theenvSecretNamecomment so it's visible at deploy timeVARIABLES.md: add fullANTHROPIC_API_KEYentry and update thekubectl create secretexample to include itTo fix your existing deployment
Add
ANTHROPIC_API_KEYto your Kubernetes secret:Or recreate it:
Then restart the pod to pick up the new env var.
Test plan
ANTHROPIC_API_KEYto the secret and restart the pod🤖 Generated with Claude Code
Pull request closed