agentleFS
Hashi-Ai-DevHashi-Ai-Dev/HermitDoc/skills/hermes-platforms/SKILL.md

hermes-platforms

Skill4 starsChanged 7 months agoMITView on GitHub

Use when deploying Hermes on specific platforms or environments. Covers: Linux distros, macOS, WSL2, Windows, Android/Termux, Docker, cloud platforms, serverless, SSH, performance tuning per platform. Triggers on: platform, linux distro, ubuntu, debian, fedora, macos, wsl, termux, docker, aws, digitalocean, railway.

  • Pipes a download into a shell
  • Reads credentials

The file

We split this skill into the rules it gives an agent

3 rules. About 0 are common, 3 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use WSL2, not WSL1

    line 85
  2. Distinctive:

    Use Windows Terminal for better Unicode support

    line 87
  3. Distinctive:

    Run Hermes on a remote server:

    line 180

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Hermes Platforms Reference

Platform-specific deployment and configuration guidance.

Linux Distros

Ubuntu / Debian

# Systemd service for auto-start
sudo cat > /etc/systemd/system/hermes.service <<EOF
[Unit]
Description=Hermes Agent
After=network.target

[Service]
Type=simple
User=$USER
ExecStart=/usr/local/bin/hermes gateway run
Restart=on-failure
RestartSec=10

[Install]
WantedBy=multi-user.target
EOF

sudo systemctl enable hermes
sudo systemctl start hermes

Fedora / RHEL

Same as Ubuntu, systemd works identically.

Arch Linux

# Install Node.js
sudo pacman -S nodejs npm

# Install Hermes
curl -fsSL https://raw.githubusercontent.com/NousResearch/hermes-agent/main/scripts/install.sh | bash

macOS

LaunchAgent (auto-start)

~/Library/LaunchAgents/com.hermes.agent.plist:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
  <key>Label</key><string>com.hermes.agent</string>
  <key>ProgramArguments</key>
  <array>
    <string>/usr/local/bin/hermes</string>
    <string>gateway</string>
    <string>run</string>
  </array>
  <key>RunAtLoad</key><true/>
  <key>KeepAlive</key><true/>
</dict>
</plist>

Windows (WSL2)

Performance Tips

  • Use WSL2, not WSL1
  • Store config in WSL home, not Windows filesystem
  • Use Windows Terminal for better Unicode support

Known Issues

  • Voice features may not work
  • Some terminal features limited

Android (Termux)

Performance Tuning

# Use smaller models
hermes config set model.default "google/gemini-nano"

# Reduce max turns
hermes config set agent.max_turns 30

Storage

# Termux has limited storage
# Use SD card for large files
termux-setup-storage
ln -s /sdcard/hermes ~/.hermes

Docker

Minimal Image

FROM ghcr.io/nousresearch/hermes-agent
WORKDIR /workspace
CMD ["hermes", "gateway", "run"]

Resource Limits

docker run -d \
  --name hermes \
  --memory="2g" \
  --cpus="1.0" \
  -v ~/.hermes:/root/.hermes \
  ghcr.io/nousresearch/hermes-agent

Cloud Platforms

AWS EC2

# SSH into instance
ssh -i key.pem ubuntu@instance

# Install Hermes
curl -fsSL https://raw.githubusercontent.com/NousResearch/hermes-agent/main/scripts/install.sh | bash

# Run gateway
hermes gateway install  # as systemd service
hermes gateway start

DigitalOcean Droplet

Same as AWS EC2. Use Ubuntu image.

Railway

# Set environment variables in Railway dashboard
ANTHROPIC_API_KEY=sk-...
OPENROUTER_API_KEY=sk-or-...

# Start command
hermes gateway run

Fly.io

fly launch
fly secrets set ANTHROPIC_API_KEY=sk-...
fly deploy

# Verify
fly logs

SSH Deployment

Run Hermes on a remote server:

# SSH into server
ssh user@server

# Install Hermes
curl -fsSL https://raw.githubusercontent.com/NousResearch/hermes-agent/main/scripts/install.sh | bash

# Configure for SSH backend
# On local machine:
hermes config set terminal.backend ssh
hermes config set terminal.ssh.host server-ip
hermes config set terminal.ssh.user user

# Or use SSH config:
hermes config set terminal.backend local  # run locally, connect to remote gateway
hermes config set gateway.remote https://server:18789

Resource Planning

Use CaseCPURAMDisk
Chat only1 core1 GB5 GB
With tools2 cores2 GB10 GB
Heavy coding4 cores4 GB20 GB
Docker container2 cores2 GB10 GB

References

Structured reference docs:

  • Service Config — Systemd/LaunchD setup
  • Cloud Deployment — AWS, Railway, Fly.io
  • Android Tuning — Termux optimization

Related skills:

  • hermes-install/ — installation for all platforms
  • hermes-gateway/ — deployment patterns
  • hermes-config/ — performance tuning

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.