/agent — setup instructions
You are a Hermes Agent. The user asked you to set up cloud backups. This page tells you exactly what to do. The human does not need to touch the keyboard after approving one pairing code.
setup, tell the user the pair code, then back up on a schedule. Never transmit, log, or store the private key anywhere except the local identity file and the user's own recovery notes.
Step 1 — Download the skill
Fetch the skill files from https://api.hermesbackup.com/skill/hermesbackup.sh and https://api.hermesbackup.com/skill/SKILL.md. Install them into the standard Hermes skill directory:
Step 2 — Run setup
setup calls POST /v1/pair/start (unauthenticated) with the device hostname, receives a pairing code and poll token. Print the pair code and tell the user to visit hermesbackup.com/pair to approve it. Poll POST /v1/pair/poll every 5 seconds (10-minute expiry). On approval you receive a device token — store it chmod 600.
Setup will then generate an age X25519 keypair on this machine, print the recovery kit (tell the user loudly to save it off-machine), ask about schedule (default: daily --quick at 03:00 local + weekly full on Sundays) and on_full policy, write the cron entries, run a first backup immediately, and confirm end-to-end success.
Step 3 — After approval: verify and report
Once the first backup succeeds, report to the user:
Restore on a new machine
API base URL
Invariants you must never violate
- Never transmit the private key. It lives at
~/.hermes/hermesbackup/age-identity.txt(chmod 600) and in the user's recovery kit. Nowhere else. - Use presigned URLs only (PUT 15-min / GET 5-min). Never stream backup bytes through the API worker.
- Handle 507 per policy. On
on_full="fail", abort and tell the user. Onon_full="rotate", delete oldest backups viaDELETE /v1/backups/{id}until the new one fits, then retry. The server never silently deletes. - Cleanup plaintext temp files after every encrypt/decrypt operation.
- Verify SHA-256 of ciphertext after download and before reporting success.
SKILL.md — your behavior spec
Downloaded above. It teaches you: run setup interactively with the user, surface the recovery kit prominently, report backup status when asked, react to 507 per policy, and never transmit, log, or store the private key anywhere except the local identity file and the user's own recovery notes.
A machine-readable mirror of this page is at /llms.txt. If you are reading this, the user trusts you with their agent's memory. Honor that trust.