Hi,
I checked the logs for your service. The crash on restart is caused by this error:
PermissionError: [Errno 13] Permission denied: '/opt/data/.env'
The Hermes Agent container drops root privileges during startup, but the .env file on the persistent volume was created with root-only permissions — so the non-root process can't read it, causing a crash loop.
This issue has been fixed in the latest template update. Please redeploy your service from the template to pick up the fix:
- Delete the current
hermes-agent-super service
- Go to the Hermes Agent template and deploy a new instance into the same project
- Re-enter your environment variables (OpenRouter API key, Telegram bot token, etc.)
Regarding Q1 (hermes command only works via .venv/bin/hermes): this is expected — the binary is installed inside a Python virtual environment. Use the full path .venv/bin/hermes, or run source /opt/hermes/.venv/bin/activate first to activate the venv.
If you have other questions, please create a new post. Thanks!