Loom Core docs
Agent Auth Sync
This repo owns the operator-facing launchd workflow for keeping cluster agent credentials aligned with the authenticated files on a Mac workstation.
Canonical flow
- Install the launchd job with
loom sync agent-tokens install. - That installs
com.loom.agent-token-syncon macOS. - The launchd job runs
platform/gitops/bin/sync-agent-tokens. - The GitOps helper refreshes
k3s/devbox/agent-auth-tokens.yamlfrom:~/.codex/auth.json~/.gemini/oauth_creds.json~/.gemini/google_accounts.json
- Flux applies the resulting
agent-auth-tokenssecret for cluster agents that use file-backed auth.
Claude path
Claude does not use the file-backed sync above.
- HUD/devbox launches wire Claude through
ANTHROPIC_API_KEY. - The cluster source of truth for that key is
k3s/devbox/agent-api-keys.yaml. - The Claude launcher path is implemented in
internal/hud/spawn.go.
That means ~/.claude/auth.json is not part of the supported cluster sync story for loom-core.
Relevant code
cmd/loom/cmd_sync_agent_tokens.gointernal/hud/spawn.goplatform/gitops/bin/sync-agent-tokensplatform/gitops/k3s/devbox/agent-auth-tokens.yamlplatform/gitops/k3s/devbox/agent-api-keys.yaml