OpenSwarm icon indicating copy to clipboard operation
OpenSwarm copied to clipboard

During the installation process, the .env.example file is missing.

Open swanmsg opened this issue 7 months ago • 2 comments

npm run service:install

@intrect/[email protected] service:install bash scripts/install-service.sh

Installing OpenSwarm service... Error: .env file not found. cp .env.example .env

swanmsg avatar Apr 19 '26 23:04 swanmsg

@swanmsg Thanks for the report.

Confirmed that .env.example was missing from the repository. .gitignore only excludes .env, so there was no rule preventing .env.example from being tracked — it simply had never been committed.

The next commit will add .env.example with placeholder values only. Keys included:

  • DISCORD_TOKEN, DISCORD_CHANNEL_ID, DISCORD_WEBHOOK_URL, DISCORD_ALLOWED_USERS
  • LINEAR_API_KEY, LINEAR_TEAM_ID
  • NPM_TOKENS (publish workflow only, optional)
  • OPENAI_CLIENT_ID, OPENSWARM_TASK_STATE_FILE (optional)

Once merged, the install flow works as intended:

cp .env.example .env
# replace the placeholders in .env with real tokens/IDs
cp config.example.yaml config.yaml
npm run service:install

This issue will close automatically when the PR is merged.

unohee avatar Apr 20 '26 09:04 unohee

Bug fixed.

unohee avatar Apr 20 '26 09:04 unohee