Skip to content

fix: set ANTHROPIC_API_KEY from agenix secret for Claude Code#368

Merged
stackptr merged 1 commit intomainfrom
fix/claude-code-api-key
Mar 12, 2026
Merged

fix: set ANTHROPIC_API_KEY from agenix secret for Claude Code#368
stackptr merged 1 commit intomainfrom
fix/claude-code-api-key

Conversation

@stackptr
Copy link
Owner

@stackptr stackptr commented Mar 12, 2026

Provisions the Anthropic API key as an agenix secret and exports it as ANTHROPIC_API_KEY in zsh, so Claude Code picks it up without requiring manual key management.

Changes

  • home/secrets/claude-code-api-key.age — new encrypted secret for the Anthropic API key
  • lib/secrets/home.nix — registers the secret with access for home and Rhizome keys
  • modules/home/development.nix — decrypts the secret via agenix and exports it in zsh.initExtra

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Copy link
Owner Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

@stackptr stackptr marked this pull request as ready for review March 12, 2026 03:22
@stackptr stackptr merged commit 4e4ce54 into main Mar 12, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant