Skip to content

feat(lobtop): configure Claude Code for Bedrock and OTEL telemetry - #492

Merged
stackptr merged 5 commits into
mainfrom
lobtop/claude-bedrock
May 28, 2026
Merged

stackptr merged 5 commits into
mainfrom
lobtop/claude-bedrock

Conversation

@stackptr

@stackptr stackptr commented May 28, 2026 •

Copy link
Copy Markdown
Owner

Summary

  • Configures Claude Code to use AWS Bedrock via programs.claude-code.settings.env in hosts/lobtop/home.nix (host-scoped, does not affect other hosts)
  • Adds OTEL telemetry env vars for the DX engineering productivity endpoint; non-secret vars go into settings.env, the OTLP Bearer token is stored in an age secret (hosts/lobtop/secrets/otel-token.age) and exported at shell init via programs.zsh.initContent
  • Adds lib/secrets/lobtop.nix declaring the secret encrypted to the home + deploy keys (the identity used by the agenix home-manager agent)

Test plan

  • Run nh darwin switch .#lobtop and verify no build errors
  • Open a new terminal and verify echo $OTEL_EXPORTER_OTLP_HEADERS shows Authorization=Bearer <token>
  • Verify ~/.claude/settings.json contains the Bedrock and OTEL env vars
  • Verify Claude Code connects via Bedrock

🤖 Generated with Claude Code

stackptr and others added 5 commits May 28, 2026 11:43
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Non-secret vars go into settings.env; the OTLP Bearer token is stored
in an age secret and exported via zsh sessionVariables at activation time.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
sessionVariables writes with double quotes into .zshenv, causing the
$(cat ...) to evaluate before agenix has decrypted the secret. Using
initContent writes to .zshrc instead, where the secret is available.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
The agenix home-manager agent decrypts using ~/.ssh/id_ed25519_agenix
(the home key), not the host SSH key. Rekey to home+deploy so the agent
can decrypt it on activation.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@stackptr
stackptr enabled auto-merge (squash) May 28, 2026 19:25
@stackptr
stackptr merged commit e6fd104 into main May 28, 2026
5 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