App template
Hermes Agent
The Hermes AI agent with an API and a dashboard, using OpenRouter or another OpenAI-compatible provider.
- Memory when idle
- about 260 MiB
- CI measures it once the app is ready and before any traffic. Leave room for more.
- Tested on
- x86 servers
Introduction
Hermes Agent is an AI agent that works through an API and a web dashboard. The API follows the OpenAI format, so OpenAI-compatible clients can use the agent as a backend.
This template runs Hermes Agent with two domains: one for the API and one for the dashboard. The agent calls the model through OpenRouter or the OpenAI-compatible endpoint you entered in the install form.
Values you provide
Provider API key secretRequired
Existing namespaced Secret with key api-key that holds the provider API key, an OpenRouter key when providerEndpoint is empty.
ModelRequired
Provider model identifier including owner/path where required.
API endpointOptional
Public OpenAI-compatible HTTPS endpoint on TCP 443, including its /v1 suffix if required. If it is empty, the template uses OpenRouter (https://openrouter.ai/api/v1).
Default:
https://openrouter.ai/api/v1Dashboard domainRequired
Separate HTTPS dashboard hostname.
Made for you
These values are generated at deploy and kept in a Kubernetes Secret, shown as Secret/key.
- hermes-secrets/api-key
- hermes-secrets/dashboard-password
- hermes-secrets/dashboard-session-key
Getting started
-
In Zeabur OSS, open the
hermes-agentservice. When Overview shows its replica as ready, the service is up. Both domains are on the Networking tab under Public domains, for examplehermes.example.comfor the API andhermes-admin.example.comfor the dashboard. -
Get the dashboard password. Open Variables, click
hermes-secretsunder From config files and secrets, and click the eye icon next todashboard-password. Without Zeabur OSS, read Secrethermes-secrets, keydashboard-password, with kubectl:kubectl -n <namespace> get secret hermes-secrets -o jsonpath='{.data.dashboard-password}' | base64 -d -
Open the dashboard domain and sign in as
adminwith that password. -
Get the API key. In the same
hermes-secretslist, click the eye icon next toapi-key. With kubectl:kubectl -n <namespace> get secret hermes-secrets -o jsonpath='{.data.api-key}' | base64 -d -
Call the API at
https://hermes.example.com/v1and send the key as a Bearer token:curl https://hermes.example.com/v1/chat/completions \ -H "Authorization: Bearer <api key>" \ -H "Content-Type: application/json" \ -d '{"model": "hermes-agent", "messages": [{"role": "user", "content": "Hello!"}]}'
The key of your model provider is not in hermes-secrets. It is in the Secret you chose in the install form, key api-key. The key dashboard-session-key in hermes-secrets signs dashboard sessions.
Configuration
Connect a client
Open WebUI, LobeChat, LibreChat and other OpenAI-compatible clients can use the agent. Set the API base URL to https://hermes.example.com/v1 and the API key to the value of api-key in hermes-secrets. See API Server.
Change the provider API key
On the service’s Variables tab, click the Secret you chose in the install form under From config files and secrets, enter a new value for api-key, then review and apply. The running replica keeps the old key until you click Restart at the top of the service page.
The template writes the model, endpoint and key from the install form into the Hermes configuration on every start. A change of the model in the dashboard lasts only until the next restart.
See Web Dashboard for what the dashboard manages.
Troubleshooting
The page shows 502 or does not load
Open the hermes-agent service in Zeabur OSS. Check that Overview shows its replica as ready, then read the Logs tab. If the replica is not ready, open Deployments and switch to Events. If Events show OOMKilled, the service ran out of memory. Raise Maximum memory under Settings → Compute. If the domain or the certificate stays pending, see Troubleshooting on the domains page.
Without Zeabur OSS, read the logs with kubectl -n <namespace> logs deployment/hermes-agent and the events with kubectl -n <namespace> get events --sort-by=.lastTimestamp.
See Adjust replicas, resources, and health checks and View logs, events, and usage, and open a terminal in the Zeabur OSS docs.
Requests fail with a model provider error
Hermes calls the model with the model name, endpoint and key from the install form. When a call fails, read the Logs tab of the hermes-agent service, then check three things. The model name must exist at your provider. The key api-key in the Secret you chose in the install form must be valid. And your account must not be over its rate limit or quota at the provider. See AI Providers in the Hermes docs.
Resources
Each service is guaranteed the first amount and can use up to the second.
hermes-agent
Ports
9119, 5000
CPU
0.3 cores to 2.5 cores
Memory
768 MiB to 3 GiB
Technical details
This release
- Version
- v2026.8.16.2
- Licence
- MIT
- Homepage
- github.com
Tested in CI
CI installs these exact files on a new cluster, waits until they are ready, then records the idle memory.
| Distribution | Platform | Kubernetes | Passed | Idle memory |
|---|---|---|---|---|
| kind | linux/amd64 | v1.37.0 | 256 MiB |
Security
The pod runs as UID 10000 with no extra capabilities, no privilege escalation and a read-only root filesystem. Only a few paths are writable, and they have size limits. The API needs authentication, and messaging platforms are denied by default. Outbound traffic is not limited.
Known risks
Risk
The agent's tools start subprocesses and run code for highly trusted users.
How it is handled
There is no host socket or host path, no privileged mode and no service-account credentials. Outbound traffic is not limited, so agent tasks can reach private and cloud metadata addresses. Add an egress NetworkPolicy to block them. A malicious skill, prompt or web page can take over the agent's state and credentials. Give each trust boundary its own namespace, and use dedicated nodes for users you do not trust.
Risk
The saved state holds provider credentials, conversations, memories and skills that can run code.
How it is handled
Allow only one writer, and install only skills you trust. Lazy installs are turned off. Take encrypted backups off the node while the gateway is stopped, and rehearse a restore. After a restore, check file ownership, provider access and the messaging allowlists before you send clients back to it. A node-local StorageClass has no high availability and no snapshots.
Risk
The dashboard can manage tools, profiles and secrets, so whoever gets in has a lot of power.
How it is handled
The Basic-auth password and the session key are generated separately, and the dashboard has its own hostname. Anyone who can reach that hostname can open the dashboard, so keep the generated password private. To limit who can reach it, add an IP limit in the service's network settings.
Risk
The pod does not run the image's s6 /init, because /init needs the DAC_OVERRIDE capability. So the image's first-boot skill setup does not run, and newer versions write a random API_SERVER_KEY to /opt/data/.env.
How it is handled
That key overrides the one from hermes-secrets, so API calls with the Secret key may get 401. If that happens, use the API_SERVER_KEY in /opt/data/.env. The bundled skills are not set up.
What the cluster needs
Zeabur OSS suggests the components a cluster is missing. Without it, install them first.