TheDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/techjarves/Hermes-USB-Portable/llms.txt
Use this file to discover all available pages before exploring further.
data/ directory is the heart of your Hermes Portable installation. Every piece of personal state — your API credentials, LLM configuration, chat histories, persistent memory, custom skills, and logs — lives inside it. Nothing is written to the host system’s home directory. When you move the portable folder to a new machine or a different USB drive, your entire agent context moves with it.
Directory Structure
File Reference
| File | Path | Purpose |
|---|---|---|
| API Keys | data/.env | Secrets — OpenRouter, OpenAI, Anthropic, Telegram, and other provider credentials |
| Settings | data/config.yaml | All Hermes configuration: active LLM provider, model, and feature flags |
| Chat History | data/sessions/ | Saved conversations, one file per session |
| Memory | data/memories/ | Persistent memory databases built up across conversations |
| Skills | data/skills/ | Reusable custom skills Hermes has learned or been taught |
| Logs | data/logs/ | agent.log, errors.log, and gateway.log for diagnostics |
| State DB | data/state.db | Gateway state and process locks |
| Custom Prompt | data/SOUL.md | System prompt injected at the start of every conversation |
SOUL.md — Custom System Prompt
Creating a file atdata/SOUL.md lets you inject a persistent system prompt into every Hermes conversation without modifying any source code. Whatever you write in that file is loaded automatically on launch and prepended to the agent’s context.
Common uses for SOUL.md:
- Give Hermes a specific persona or communication style
- Add standing instructions (“always respond in Spanish”, “prefer concise answers”)
- Include background context about your projects or preferences that you want Hermes to remember across sessions
HERMES_HOME Environment Variable
Both launchers set theHERMES_HOME environment variable to the absolute path of the data/ folder before starting Hermes:
~/.hermes/ on the host machine. As a result, all reads and writes from the Hermes process are redirected into the portable data/ directory — no files are created in the user’s home folder.
If you ever run
hermes commands outside of the portable launcher (e.g., from a global install), Hermes will fall back to ~/.hermes/ because HERMES_HOME will not be set. Always use launch.bat or launch.sh to ensure full isolation.Backup and Restore
What to Back Up
Back up the entiredata/ folder. It contains everything that is uniquely yours:
| What | Why |
|---|---|
data/.env | Your API keys — losing these requires regenerating keys from each provider |
data/config.yaml | Your LLM provider and model preferences |
data/sessions/ | Your full conversation history |
data/memories/ | The accumulated memory Hermes has built from your conversations |
data/skills/ | Any custom skills you have created or taught |
data/SOUL.md | Your custom system prompt, if you use one |
What Is Safe to Delete
The.cache/runtimes/ directory holds the downloaded Python and Node.js interpreters for each platform. It can be deleted freely to reclaim disk space — the launcher will re-download and rebuild the runtimes automatically on the next launch.