Deploy & Host Hermes Agent | Railway

Deploy and Host Hermes Agent on Railway

One-click deploy of Hermes Agent — the self-improving AI agent by Nous Research — on Railway, using the official nousresearch/hermes-agent image with the built-in web dashboard enabled.

About Hosting

Hosting Hermes Agent means running a persistent gateway process that connects your messaging platforms (Telegram, Discord, Slack, WhatsApp) to an LLM-powered agent, alongside a web dashboard for configuration and monitoring.

The template deploys a single Railway service:

Resource sizing: at least 2 GB of RAM (4 GB recommended with browser tools); the image is ~1 GB.

Why Deploy Hermes Agent on Railway?

Common Use Cases

Dependencies for Hermes Agent

Deployment Dependencies

After Deploying

  1. Log in to the dashboard at your Railway service URL.
    • If you set HERMES_DASHBOARD_BASIC_AUTH_PASSWORD, that's your password (username admin).
    • If not, a strong password was auto-generated and printed once in the deploy logs. Set the variable afterwards to control it.
  2. Add a provider key if you didn't set one — dashboard → API Keys.
  3. Connect a messaging channel — dashboard → Channels (or set TELEGRAM_BOT_TOKEN etc. as Railway variables).
  4. Always use allowlists — set TELEGRAM_ALLOWED_USERS, DISCORD_ALLOWED_USERS, or SLACK_ALLOWED_USERS to your own user IDs. Anyone who can message the agent can spend your tokens and run commands in the container.

Configuration

Hermes reads variables from the process environment and from /opt/data/.env (manageable via the dashboard's API Keys page). Full reference: official env docs.

Variable Description
OPENROUTER_API_KEY LLM provider (recommended, 200+ models)
ANTHROPIC_API_KEY / OPENAI_API_KEY / GLM_API_KEY / KIMI_API_KEY / MINIMAX_API_KEY / DEEPSEEK_API_KEY Other LLM providers
TELEGRAM_BOT_TOKEN

Updating

The Hermes version is pinned in the template's Dockerfile. Template updates are published by the template maintainer; agent state on the volume survives updates.

Troubleshooting

Resources

License

MIT. Template by TheGreatAxios · Agent by Nous Research