---
title: "Deploy Hermes Agent with Authenticator 2FA"
description: "Hermes Agent with persistent storage and password + authenticator 2FA."
category: "AI/ML"
url: https://railway.com/deploy/hermes-agent-with-authenticator-2fa
---

# Deploy Hermes Agent with Authenticator 2FA

Hermes Agent with persistent storage and password + authenticator 2FA.

**[Deploy Hermes Agent with Authenticator 2FA on Railway](https://railway.com/template/hermes-agent-with-authenticator-2fa)**

Machine-readable deploy manifest (JSON, validated by TemplateCI): https://railway.com/deploy/hermes-agent-with-authenticator-2fa/manifest.json

- **Creator:** smkxx1's Projects
- **Category:** AI/ML

## Template content

### hermes

- **Source:** SMKxx1/hermes-agent-railway
- **Start command:** `/opt/hermes/docker/entrypoint-dispatch.sh gateway run`
- **Health check:** /api/status
- **Public domain:** Yes

## Documentation

# Deploy and Host Hermes Agent on Railway

Deploy your own single-owner [Hermes Agent](https://github.com/NousResearch/hermes-agent) with a persistent workspace and web dashboard. This community distribution adds mandatory username/password and authenticator-app two-factor authentication. It retains Hermes tools, messaging integrations, memories, and native agent delegation; its custom model-orchestration feature has been removed.

## Dependencies for Hermes Agent

### Deployment Dependencies

Supply your own three values in the deployment form:

- `HERMES_DASHBOARD_TOTP_AUTH_USERNAME`: your dashboard username (1–128 characters).
- `HERMES_DASHBOARD_TOTP_AUTH_PASSWORD`: a unique password of at least 12 characters (maximum 1,024).
- `OPENROUTER_API_KEY`: your OpenRouter API key. Model usage is billed to your OpenRouter account.

## About Hosting Hermes Agent

The template builds the public [source repository](https://github.com/SMKxx1/hermes-agent-railway), creates one service and a persistent volume mounted at `/opt/data`, and exposes the dashboard through HTTPS on port `9119`. It uses one replica, an always-on service, and the `/api/status` health check. Railway hosting is billed to your Railway account.

## First login

Wait for the deployment to finish, then open the service's generated domain. Sign in with the username and password you supplied. Scan the setup QR code using Google Authenticator or another TOTP authenticator, enter its six-digit code, and save the one-time recovery codes in your password manager.

The initial model is `openai/gpt-5.4-mini` through OpenRouter. Choose another supported provider/model in the dashboard and add its API key in Railway if desired. Add messaging tokens only for the integrations you use.

## Why Deploy Hermes Agent on Railway

The template contains common application code and deployment settings. Your credentials are supplied at deployment time. Signing material, the internal gateway key, authenticator enrollment, sessions, memories, and workspace files are generated or stored privately on your own volume. No example credentials or enrolled authenticator are included.

Keep one replica and retain `/opt/data` across upgrades. Back up the private volume, including its generated signing secret. Never share a volume between different owners. See the [deployment guide](https://github.com/SMKxx1/hermes-agent-railway/blob/main/deploy/railway/README.md) for password hashes, custom domains, backup/recovery, and provider settings.

## Common Use Cases

- A private personal assistant with persistent memories and workspace files.
- Agent tool use and native task delegation through a protected dashboard.
- Optional messaging integrations using your own bot credentials.

This is a community distribution under the upstream MIT license, not an official Nous Research or Railway release.


## Similar templates

- [Chat Chat](https://railway.com/deploy/-WWW5r) — Chat Chat, your own unified chat and search to AI platform.
- [stella](https://railway.com/deploy/stella) — Self-host stella with web, API, Postgres, Redis, and object storage.
- [Hermes Agent | OpenClaw Alternative with Dashboard](https://railway.com/deploy/hermes-agent-or-openclaw-alternative-wit) — Self-Hosted Hermes AI Agent for Telegram, Discord & Slack

Open this page in a browser: https://railway.com/deploy/hermes-agent-with-authenticator-2fa
