# Hermes Agent Gateway on Oracle

> **Status:** CURRENT
> **Last verified:** 2026-11-28

Hermes is the messaging agent on Oracle `dify-a1` (`129.225.74.53`, user
`ubuntu`), governed by the required/current owner-only access policy. It runs as
the current project user service `hermes-gateway.service`. It is not a public
website origin, the Google legacy Telegram bridge, or an Examiner service.

## Runtime and paths

| Item | Current value |
| --- | --- |
| Hermes version | `v0.23.4 (2026.9.24)`, stable |
| Checkout | `8fc0374447313e276f6b9a2764bfc750190c966a` |
| Install method | Git checkout |
| Hermes home | `/home/ubuntu/.hermes` |
| Install directory | `/home/ubuntu/.hermes/hermes-agent` |
| Executable | `/home/ubuntu/.hermes/hermes-agent/.hermes/bin/hermes` |
| User unit | `/home/ubuntu/.config/systemd/user/hermes-gateway.service` |
| Configuration | `/home/ubuntu/.hermes/config.yaml` |
| Secret file | `/home/ubuntu/.hermes/.env` (mode `0600`; key names only below) |
| Configured log directory | `/home/ubuntu/.hermes/logs`; service output also goes to the journal |

The unit is loaded, active, running, and enabled. It executes
`/home/ubuntu/.hermes/hermes-agent/.hermes/bin/hermes gateway run` with
`WorkingDirectory=/home/ubuntu/.hermes`, `Restart=always`, `RestartSec=5`, and
`TimeoutStopSec=70`. These are dated runtime observations, not a guarantee about
future boots.

## Telegram transport and access

- `telegram.transport`: `polling`
- `platforms.telegram.enabled`: `true`
- No inbound webhook or public Hermes listener is part of the verified topology.
- **CURRENT policy:** Hermes access and code/file edits are owner-only. The
  documented owner Telegram ID is `8260131997`. Regular users have no Hermes
  terminal, SQLite, cron, or file-edit access.
- `telegram.allowed_users` is blank/null in `config.yaml`. The runtime allowlist
  key `TELEGRAM_ALLOWED_USERS` exists in `.env`; its value was intentionally not
  read. Neither the effective value nor environment-variable precedence over
  YAML was independently inspected. Owner-only is the required/current policy,
  not a claim that runtime enforcement was independently verified. Any access
  change requires owner approval and a protected runtime check.

## Models

Exact configured model strings:

| Role | Provider / model |
| --- | --- |
| Primary provider | `gemini` |
| Default | `gemini-3.5-flash-lite` |
| Compression | `gemini-3.5-flash-lite` |
| Reasoning | `gemini-1.5-pro-latest` |
| Fallback 1 | `private/nvidia/nemotron-3.5-super-120b-a12b` (`NVIDIA_API_KEY`) |
| Fallback 2 | `nvidia/nemotron-3.5-super-vl:free` (`KILO_API_KEY`) |

Only environment key names are documented. No provider key value is stored in
this article.

## Tools

| Policy | Tools |
| --- | --- |
| Enabled | `terminal`, `sqlite`, `cron`, `telegram_send` |
| Disabled | `whisper`, `chromium`, `browser_sandbox` |

Because terminal and SQLite access are enabled, the owner-only gateway boundary
is a security requirement, not an optional convenience. Do not expose these
tools to regular Telegram users or copy them into a future companion design.

## Rate limits

| Field | Value |
| --- | ---: |
| `rate_limit.rpm` | 10 |
| `rate_limit.tpm` | 30000 |
| `rate_limit.rpd` | 250 |
| `rate_limit.retry_on_429` | `true` |
| `rate_limit.honor_retry_after` | `true` |
| `rate_limit.max_retries` | 3 |
| `rate_limit.base_backoff_seconds` | 2 |
| `rate_limit.max_backoff_seconds` | 30 |

## Sessions and memory

- Configured session store: `telegram.session_store=sqlite`.
- Configured session database: `telegram.session_db=~/.hermes/sessions.db`.
  That configured file was absent at verification time.
- Observed SQLite database: `/home/ubuntu/.hermes/state.db` (mode `0600`),
  containing `sessions`, `messages`, and gateway state tables. Its presence and
  schema were observed read-only; active use was not independently established.
- A JSON session snapshot is also present at
  `/home/ubuntu/.hermes/sessions/sessions.json` (mode `0600`).
- Owner memory files are under `/home/ubuntu/.hermes/memories/`, including
  `MEMORY.md`, `USER.md`, and Hermes knowledge Markdown files. These files are
  private owner context and must not be published or exposed to regular users.

The configured-versus-observed session-path difference is recorded rather than
silently normalized. Do not move, delete, or rewrite these state files as part
of routine documentation checks.

## `.env` key names only

The following keys were observed without reading or printing their values:

- `GEMINI_API_KEY`
- `KILO_API_KEY`
- `KILO_BASE_URL`
- `NVIDIA_API_KEY`
- `NVIDIA_BASE_URL`
- `TELEGRAM_ALLOWED_USERS`
- `TELEGRAM_BOT_TOKEN`
- `TELEGRAM_HOME_CHANNEL`
- `TELEGRAM_HOME_CHANNEL_THREAD_ID`

Never source this file casually, echo it, paste it into a prompt, or commit it.

## Read-only health checks

Use the direct Oracle SSH command; the local `oracle-eb` alias is stale.

```bash
ssh -i ~/.ssh/oracle_eb ubuntu@129.225.74.53 'set -eu
systemctl --user is-active hermes-gateway.service
systemctl --user is-enabled hermes-gateway.service
systemctl --user show hermes-gateway.service \
  -p LoadState -p ActiveState -p SubState -p UnitFileState \
  -p FragmentPath -p ExecStart -p WorkingDirectory -p MainPID -p NRestarts
/home/ubuntu/.hermes/hermes-agent/.hermes/bin/hermes --version
stat -c "%A %U:%G %n" \
  /home/ubuntu/.hermes/config.yaml \
  /home/ubuntu/.hermes/.env \
  /home/ubuntu/.hermes/state.db \
  /home/ubuntu/.hermes/memories/MEMORY.md'
```

For SQLite, open only with SQLite URI `mode=ro`; never modify the live database
for a health check. Do not print journal messages during routine checks because
they may contain user content or sensitive values.

## Registered-user companions — PLANNED — NOT IMPLEMENTED

Per-Telegram-ID companions and lifelong per-user memory are **PLANNED — NOT
IMPLEMENTED**. The current owner memory directory is not a multi-user companion
store. No regular-user isolation, consent, retention, deletion, or protected
BYOK relay may be inferred from this Hermes deployment. See
[Security](security.md) for the required future boundaries.
