Hermes Agent
Cheat Sheet
Self-improving AI agent với built-in learning loop — tạo skills từ kinh nghiệm, ghi nhớ qua các session, sống trên 20+ messaging platforms. Chạy local, Docker, SSH, Daytona, Modal hay Singularity.
Hermes Agent là gì?
Không phải coding copilot gắn vào IDE, cũng không phải chatbot bọc quanh một API. Hermes là autonomous agent — càng chạy lâu càng khôn ra. Cài lên $5 VPS, GPU cluster, hay serverless (Daytona, Modal — gần như miễn phí khi idle). Nhắn cho nó qua Telegram trong khi nó tự làm việc trên VM bạn không bao giờ phải SSH vào.
Closed learning loop
Agent-curated memory với periodic nudges, tự tạo & tự cải tiến skills khi dùng, FTS5 cross-session recall + LLM summarization.
Runs anywhere
6 terminal backends: local, Docker, SSH, Daytona, Singularity, Modal. Daytona & Modal hibernate khi idle.
20+ messaging platforms
CLI, Telegram, Discord, Slack, WhatsApp, Signal, Matrix, Mattermost, Email, SMS, Teams, Home Assistant… cùng một gateway.
Built by model trainers
Tạo bởi Nous Research — lab đứng sau Hermes, Nomos, Psyche. Hoạt động với Nous Portal, OpenRouter, OpenAI, Anthropic, Google.
Quick Start
Install (Linux/macOS/WSL2)
curl -fsSL https://raw.githubusercontent.com/NousResearch/hermes-agent/main/scripts/install.sh | bashAndroid (Termux) dùng đúng lệnh này — installer tự nhận diện.
Configure
hermes config edit
hermes config set OPENROUTER_API_KEY sk-or-...API keys lưu vào ~/.hermes/.env; mọi cài đặt khác vào config.yaml.
Launch
hermesInteractive session với streaming tool output, slash autocomplete, multi-line input.
Windows (native, PowerShell) — beta sớm:
irm https://raw.githubusercontent.com/NousResearch/hermes-agent/main/scripts/install.ps1 | iex
CLI Commands
Running Hermes
hermesStart interactive sessionhermes --tuiLaunch modern TUI (Ink)hermes chat -q "Hello"Single query mode (non-interactive)hermes --continueResume most recent session (-c)hermes --resume <id>Resume specific session (-r)hermes -wRun in isolated git worktreehermes chat --verboseDebug outputModel & Provider
--model anthropic/claude-sonnet-4Pin specific model--provider nousUse Nous Portal--provider openrouterForce OpenRouter--toolsets "web,terminal,skills"Limit available toolsets-s skill-a,skill-bPreload skills at launchConfig Management
hermes configView current confighermes config editOpen config.yaml in $EDITORhermes config set KEY VALSet value (auto-routes secrets to .env)hermes config checkCheck for missing options after updatehermes config migrateAdd missing options interactivelyUpdate & Uninstall
hermes updateUpdate to latest versionhermes --versionShow installed versionhermes uninstallRemove Hermes (keeps ~/.hermes/)Slash Commands
Gõ / để mở autocomplete. Lệnh không phân biệt hoa-thường. Skills cài trong ~/.hermes/skills/ tự thành slash command.
Core
/helpShow command help/modelShow/change current model/toolsList available tools/usageToken + cost breakdown/compressCompress context khi gần đầy/title My sessionĐặt tên cho session hiện tạiSkills & Background
/skills browseBrowse Skills Hub/background <prompt>Run prompt in background session/reasoning highTăng reasoning effort/skinSwitch CLI skinVoice Mode
/voice onEnable voice (Ctrl+B để record)/voice ttsToggle spoken playbackPersonality
/personality conciseTrả lời ngắn gọn/personality technicalTone kỹ thuật, chi tiết/personality teacherGiải thích như giáo viên/personality pirateBuilt-in fun (kawaii, noir, surfer…)Keyboard Shortcuts
Input
Control
fg để resumeConfiguration
Mọi non-secret settings: model, terminal backend, memory, toolsets, personalities.
model: anthropic/claude-sonnet-4
terminal:
backend: docker
timeout: 180API keys, bot tokens, passwords. Auto-redact trong logs.
OPENROUTER_API_KEY=sk-or-...
ANTHROPIC_API_KEY=sk-ant-...
TELEGRAM_BOT_TOKEN=...Tham chiếu env vars trong YAML bằng ${VAR_NAME}.
auxiliary:
vision:
api_key: ${GOOGLE_API_KEY}Định nghĩa slash command chạy shell ngay, không qua LLM.
quick_commands:
status:
type: exec
command: systemctl status hermes-agent Precedence: CLI flags > config.yaml > .env > built-in defaults. hermes config set tự định tuyến secrets vào .env.
Terminal Backends
Backend quyết định nơi shell command thực thi. Đổi qua hermes config set terminal.backend <name>.
Chạy trực tiếp trên máy hiện tại. Nhanh nhất, không sandbox.
Container cô lập trên cùng máy. Image mặc định nikolaik/python-nodejs.
Server từ xa. Nhắn tin từ Telegram trong khi agent làm việc trên VM.
Modal cloud sandbox. Hibernate khi idle — chi phí gần như 0.
Daytona workspace. Persistent state, hibernate khi idle.
Singularity/Apptainer container — lý tưởng cho GPU cluster có policy.
Lives where you do
Một gateway, 20+ platform. Hermes có thể nhắn lại từ bất kỳ kênh nào sau khi bạn cấu hình token.
Chat Platforms
bot tokenDM + channels + voiceSocket ModeBaileys bridgesignal-clinativepluginOther Channels
IMAP/SMTPTwilioconversation agentGitHub, GitLab, etc.enterprise CNregionalOpenAI-compatibleSkills · Memory · MCP
Hermes tự tạo skills từ trải nghiệm, tự cải tiến khi dùng. Compatible với chuẩn mở agentskills.io. Mỗi skill ở ~/.hermes/skills/ tự thành slash command.
Background process theo dõi usage, đánh dấu skill stale, archive khi không dùng, LLM-driven review để cải tiến.
MEMORY.md + USER.md + FTS5 cross-session search. Agent tự nudge mình ghi nhớ.
.hermes.md, AGENTS.md, CLAUDE.md, global SOUL.md tự inject vào mọi conversation.
Kết nối tới bất kỳ MCP server nào, filter tools an toàn, mở rộng năng lực Hermes mà không thổi context.
Spawn isolated subagent qua delegate_task. Programmatic Tool Calling collapse multi-step pipeline thành 1 inference call.
Một ngày với Hermes
Tài liệu & cộng đồng
Hướng dẫn đầy đủ cho install, config, features.
hermes-agent.nousresearch.com/docsDoc index dạng machine-readable cho LLM (≈17 KB).
hermes-agent.nousresearch.com/docs/llms.txtToàn bộ docs concat vào 1 markdown (≈1.8 MB) cho one-shot ingestion.
hermes-agent.nousresearch.com/docs/llms-full.txtSource code, issues, skills hub, community channels.
github.com/NousResearch/hermes-agent