Hermes Env
@mgreten/hermes-envv2026.05.30.1
01README
Manage Hermes agent environment variables via SSH or locally from inside the container. Supports setEnv, removeEnv, listKeys, restartGateway, and rotateSwampKey (updates all four key locations + full container recreation).
02Models
@mgreten/hermes-envv2026.05.30.1hermes_env.ts
fn listKeys()
List the env var key names currently in Hermes .env. Values are never returned.
fn setEnv()
Set one or more Hermes env vars. Merges with existing — unlisted keys are preserved.
fn removeEnv(keys: array)
Remove one or more env vars from Hermes .env by key name. Missing keys are silently skipped.
| Argument | Type | Description |
|---|---|---|
| keys | array | Env var key names to remove |
fn rotateSwampKey(newKey: string)
Rotate the SWAMP_API_KEY across all four locations that must stay in sync,
| Argument | Type | Description |
|---|---|---|
| newKey | string | The new SWAMP_API_KEY value from swamp-club.com → Settings → Access Tokens |
fn restartGateway()
Restart the Hermes gateway.
Resources
envState(1h)— Current Hermes .env key names (values never stored)
opResult(7d)— Result of a setEnv, removeEnv, or restartGateway operation
03Previous Versions
2026.05.25.3May 25, 2026
2026.05.25.2May 25, 2026
2026.05.25.1May 25, 2026
04Stats
B
85 / 100
Downloads
2
Archive size
20.8 KB
- Has README or module doc2/2earned
- README has a code example1/1earned
- README is substantive1/1earned
- Most symbols documented1/1earned
- No slow types1/1earned
- Dependencies pass trust audit2/2earned
- Has description1/1earned
- Platform support declared (or universal)2/2earned
- License declared1/1earned
- Verified public repository0/2missing
05Platforms
06Labels