Build Self-Improving Hermes AI Agent on VPS
Nate Herk | AI Automationgo watch the original →
the gist
Complete hands-on course teaches installing Hermes Agent on Hostinger VPS, wiring it to Telegram, crafting skills/crons, and scaling via its five pillars: memory, skills, soul, crons, self-improvement.
Hermes' Core Architecture: Five Pillars for Persistent, Proactive AI
Hermes Agent, an open-source project from Nous Research with 140,000+ GitHub stars, runs on personal infrastructure like VPS, laptops, or even Android via Termux. It excels in self-improvement by persisting experience into memory, skills, and searchable history. The five pillars form its foundation:
- Memory: Durable context across sessions via
user.md(your preferences, style) andmemory.md(projects, business context). Loaded at session start to combat stateless wake-ups. Sessions auto-update these files; explicitly instruct 'chunk that into memory' for key facts. Use session search in SQLite DB for past convos, but avoid secrets or temp status. - Skills: Procedural playbooks in
skills.mdwith YAML frontmatter for progressive disclosure (summarizes use cases without bloating context). Like recipes for consistent outputs—e.g., 'generate image' skill uses structured markdown instructions. Hermes auto-creates/patches skills from workflows, analyzes convos for repeats. Pull 520+ from community Skills Hub (16 official Anthropic ones like Canvas, skill creator). - Soul: Shapes personality in
soul.md(no YAML). Evolves via feedback for vibe—concise, sarcastic, etc. Influences interactions in Telegram/YouTube comments. - Crons: Proactive scheduling turns reactive agent into automator. Natural language request like 'daily 6AM briefing' creates isolated sessions using skills/tools. Flags:
context_fromchains jobs,work_dirsets folder,--no-agentfor scripts. Safety: No recursive crons; prompts must be self-contained. - Self-Improving Loop: Work → Learn → Persist (memory/skills/history) → Repeat. User corrections amplify: save prefs, turn repeats into skills post-complex tasks. Honorable mention:
agents.md(like Claude'sclaw.md) for project goals.
"Memory = what to remember, skills = how to do it again." Hermes auto-extracts but thrives on guidance.
Strategic Comparisons: Hermes vs. Claude Code vs. OpenClaw
Claude Code (Anthropic's terminal driver) handles 90% desk-based knowledge/coding work—sit-down sessions next to code. Hermes/OpenClaw shine for on-the-go: phone-based, instant wake via Telegram/Discord/Slack/WhatsApp/iMessage. OpenClaw (Peter Steinberger, 350k+ stars, Nvidia's NemoClaw built atop) is heavier, update-prone (crashes), larger team. Hermes: lighter, faster, self-improvement-focused, open models-friendly (e.g., Qwen/Llama). Use Hermes for tinkering without breakage.
Complementary: Sync all via GitHub repo (knowledge, skills, context). Agents adapt terminology (claw.md vs. agent.md). Claude Code manages multiple Hermes/OpenClaw instances organizationally.
"I'm not going to use OpenClaw or Hermes to sit down and do my knowledge work... it's for when I'm on the go."
Hands-On Setup: VPS to Telegram-Connected Agent
Start with Hostinger VPS (code NATEHERK 10% off annual): Provision Ubuntu VPS, SSH in, update (apt update && apt upgrade), install Docker (curl -fsSL https://get.docker.com | sh), git, etc. Clone Hermes repo: git clone https://github.com/Hermes-agents/Hermes.git && cd Hermes (assumed from context; exact cmds in free Skool resource guide).
Configure .env: API keys (Anthropic/OpenAI—store securely, not in memory files), Telegram bot token (create via BotFather). Run docker compose up -d for containerized deploy.
Onboard: Chat '/start' in Telegram bot. Hermes loads memory files, intros. Backup: git add . && git commit -m 'backup' && git push—cron this.
First skill: Natural language 'build skill for X' → YAML-md recipe. E.g., YouTube commenter: Analyzes transcripts, responds sarcastically.
First cron: 'Daily AI news briefing to Skool' → Creates scheduled session, posts output.
"Hey make me a video using hyperframes about what Hermes agent is..." → Researches, installs tools, iterates via vision analysis.
Best Practices, Security, and Multi-Agent Scaling
Security: Env vars for keys, no memory storage. Git ignore secrets. Review auto-updates.
Practices: Ask Hermes for its docs ('Hermes probably understands it the best'); link X posts for impl. Feedback loop: Correct → 'save to memory/skill'. Holistic files prevent repetition.
Scale: Multiple agents via separate dirs/repos. Claude Code oversees: 'Manage my Hermes agents.' No breakage—lightweight.
Common pitfalls: Over-relying on auto (not magic); recursive crons; context bloat (use YAML disclosure). Quality: Consistent outputs via skills, durable memory, proactive crons.
"If you are confused about anything... just ask it hey can you do this... grab that X post... it's really going to be your best friend."
Prerequisites: Basic terminal/SSH, Docker familiarity, AI agent concepts (RAG-like memory). Fits mobile workflows post-desk Claude sessions.
Key Takeaways
- Provision Hostinger VPS, Docker-install Hermes, configure
.envwith API/Telegram tokens for quick deploy. - Prime
user.md/memory.mdwith prefs/context; let Hermes auto-update but explicitly chunk key facts. - Build skills as YAML-md recipes with frontmatter; import from 520+ hub for instant power-ups.
- Schedule crons in natural language for proactive automations—chain via
context_from, isolate sessions. - Evolve soul/personality via feedback; use self-loop: work → persist → improve.
- Sync everything to GitHub; use Claude Code to orchestrate multi-agents.
- Avoid: Secrets in memory, recursive crons, ignoring manual corrections.
- Test: Natural requests like video gen—iterate with research/install perms.
"The more you use your Hermes agent the better it's going to get and the more it's going to understand you."