Skip to content

compose: pass HF_TOKEN through to the sphinx-swarm container - #738

Merged
Evanfeenstra merged 2 commits into
masterfrom
hf-token-compose
Aug 28, 2026
Merged

compose: pass HF_TOKEN through to the sphinx-swarm container#738
Evanfeenstra merged 2 commits into
masterfrom
hf-token-compose

Conversation

@Evanfeenstra

Copy link
Copy Markdown
Collaborator

Follow-up to #737. The swarm service's environment: block is an explicit allowlist — compose substitutes .env vars, but a var not listed there never enters the swarm container, and repo2graph's make_config reads HF_TOKEN from the swarm process env (getenv). So adding HF_TOKEN to .env alone silently goes nowhere (exactly what we just observed on a live swarm: token in .env, repo2graph restarted, no HF_TOKEN in the container).

One line: - HF_TOKEN=$HF_TOKEN under the sphinx-swarm service.

Deploy note: after this lands, apply it with docker compose up -d sphinx-swarm (recreate — a plain restart keeps the old env), then restart repo2graph from the swarm UI so make_config re-runs.

🤖 Generated with Claude Code

Evanfeenstra and others added 2 commits August 28, 2026 15:45
The swarm service's environment is an explicit allowlist, so a var added
to .env is substituted by compose but never reaches the swarm process
unless listed here — and repo2graph's make_config reads it from the
swarm process env (getenv). Without this line, HF_TOKEN in .env
silently goes nowhere.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@Evanfeenstra
Evanfeenstra merged commit 20e3e96 into master Aug 28, 2026
2 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