Hermes Agent คืออะไร? — คู่มือฉบับสมบูรณ์สำหรับคนไทย
รู้จัก Hermes Agent จาก Nous Research ตั้งแต่ติดตั้ง ใช้งาน ไปจนถึงขั้นสูง — Skills, Cron, Subagents, MCP, Profiles, Memory และไอเดียประยุกต์ใช้ พร้อมตัวอย่างจริง
Hermes Agent คืออะไร?
Hermes Agent คือ AI Agent Framework แบบ Open Source จาก Nous Research ทีมเดียวกับที่สร้างโมเดล Hermes อันโด่งดัง
พูดง่ายๆ — Hermes เปลี่ยน AI (Claude, GPT-4o, DeepSeek) จาก “แค่ตอบคำถาม” ให้เป็น “ลูกน้องส่วนตัว” ที่ทำงานให้คุณได้จริงๆ — อ่านไฟล์, รัน Terminal, เขียนโค้ด, deploy, ตั้งเวลาทำงานอัตโนมัติ
┌────────────────────────────────────────────────────┐
│ │
│ ChatGPT: คุณพิมพ์ → AI ตอบ → จบ │
│ │
│ Hermes: คุณสั่ง → AI วางแผน → AI ลงมือทำ → เสร็จ │
│ (อ่านไฟล์) (รันคำสั่ง) (แก้โค้ด) │
│ │
└────────────────────────────────────────────────────┘
จุดเด่นที่ทำให้ Hermes ต่างจากตัวอื่น
- Self-improving Skills — สอนให้ AI ทำงานซ้ำๆ ได้ โดยเขียน “คู่มือ” (Skill) ไว้ แล้ว AI จะทำตามทุกครั้ง
- Persistent Memory — จำได้ว่าคุณเป็นใคร, ใช้ tools อะไร, เคยแก้ปัญหาอะไรมา
- Multi-platform — ใช้ได้ทั้ง CLI, Telegram, Discord, Slack, LINE, WhatsApp, Email
- Provider-agnostic — สลับ Claude, GPT, DeepSeek, Gemini ได้โดยไม่ต้องเปลี่ยนอะไร (20+ providers)
- Profiles — แยก config, session, skills ตามโปรเจค
- Extensible — Plugins, MCP servers, custom tools, cron jobs, webhooks
เปรียบเทียบ — Hermes vs ตัวอื่น
| ChatGPT | Claude.ai | Copilot | Claude Code | Hermes Agent | |
|---|---|---|---|---|---|
| แนวคิด | Chat | Chat | Autocomplete | Coding Agent | General AI Agent |
| ทำงานแทน | ❌ | ❌ | ❌ | ✅ (โค้ด) | ✅ (ทุกอย่าง) |
| อ่านไฟล์ในเครื่อง | ❌ | ❌ | ❌ | ✅ | ✅ |
| รัน Terminal | ❌ | ❌ | ❌ | ✅ | ✅ |
| Cron/Automation | ❌ | ❌ | ❌ | ❌ | ✅ |
| Subagents | ❌ | ❌ | ❌ | ❌ | ✅ |
| Memory ถาวร | ❌ | ❌ | ❌ | ❌ | ✅ |
| Skills | ❌ | ❌ | ❌ | ❌ | ✅ |
| เปลี่ยน Model ได้ | ❌ | ❌ | ❌ | ❌ | ✅ (20+) |
| Open Source | ❌ | ❌ | ❌ | ❌ | ✅ |
| Gateway (Telegram/Discord) | ❌ | ❌ | ❌ | ❌ | ✅ |
| ราคา | $20/เดือน | $20/เดือน | $10/เดือน | จ่าย API | ฟรี + ค่า API |
ติดตั้ง — 3 ขั้นตอน
Step 1: ติดตั้ง Hermes
# Linux / macOS / WSL
curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash
# ตรวจสอบ
hermes --version
hermes doctor
Step 2: ตั้งค่า Provider + Model
# ใช้ interactive picker (ง่ายสุด)
hermes model
# หรือตั้งค่าผ่าน config
hermes config set model.default openrouter/anthropic/claude-sonnet-4
hermes config set model.provider openrouter
Step 3: API Key
# ตั้งค่า API key ใน .env
hermes config env-path # ดูว่า .env อยู่ที่ไหน
echo "OPENROUTER_API_KEY=sk-or-..." >> ~/.hermes/.env
# หรือใช้ interactive wizard
hermes setup
hermes auth
ทดสอบ
# Interactive chat
hermes
# Single query
hermes chat -q "สวัสดี แนะนำตัวหน่อย"
ความสามารถพื้นฐาน
Tools หลักที่ Hermes ใช้
Hermes มี toolsets หลายชุด — เปิด/ปิดตามต้องการด้วย hermes tools
| Toolset | มี Tools อะไรบ้าง |
|---|---|
terminal | รัน shell, ควบคุม processes |
file | read_file, write_file, search_files, patch |
browser | เปิดเว็บ, กดปุ่ม, กรอกฟอร์ม |
web | ค้นหาเว็บ, ดึงเนื้อหา |
delegation | delegate_task — ส่งงานให้ subagent |
memory | บันทึก/อ่านความจำข้าม session |
cronjob | สร้าง/จัดการ cron jobs |
ตัวอย่าง — ให้ Hermes แก้ Bug จริง
hermes chat -q "แอป React ที่ C:\myapp กด submit แล้วไม่ยิง API
ช่วยดูและแก้ให้หน่อย"
Hermes จะ:
read_file— อ่าน source code ที่เกี่ยวข้องsearch_files— หาว่าhandleSubmitถูกเรียกตรงไหน- วิเคราะห์ — เจอต้นตอของ bug
patch— แก้โค้ดเฉพาะจุดterminal— รันnpm run buildตรวจสอบ- สรุป — “เจอ bug ที่ไฟล์ X บรรทัด Y แก้ให้แล้ว build ผ่าน”
ความสามารถขั้นสูง
Skills — สอนให้ AI ทำงานซ้ำตาม SOP
Skill คือไฟล์ Markdown ที่เขียนบอก AI ว่าต้องทำงานอะไร ยังไง — เหมือนคู่มือพนักงาน
# ~/.hermes/skills/deploy-app/SKILL.md
---
name: deploy-app
description: Deploy เว็บขึ้น Cloudflare Pages
---
## ขั้นตอน
1. รัน `npm run build` — ห้ามข้าม
2. ตรวจสอบว่า dist/ มีไฟล์อยู่
3. รัน `npx wrangler pages deploy dist --project-name=$PROJECT`
4. รายงาน URL ที่ deploy สำเร็จ
# ใช้ skill
hermes -s deploy-app
# หรือใน session:
/skill deploy-app
Skills ที่มีให้ใช้ในระบบแล้ว:
backend-dev,frontend-dev,systematic-debugging,code-review,test-driven-development,writing-plans,subagent-driven-developmentและอีกมากมาย
Cron — ตั้งเวลาให้ AI ทำงานอัตโนมัติ
# สร้าง cron job
hermes cron create "0 9 * * *"
# (จะมี prompt ให้กรอกรายละเอียด)
# ดู jobs ทั้งหมด
hermes cron list
# รันทันที
hermes cron run <job-id>
ตัวอย่าง cron prompts:
- “ทุกเช้า 9:00 — เช็ค GitHub trending สรุป 5 repo น่าสนใจ”
- “ทุก 30 นาที — อ่าน error.log ถ้าเจอ error ใหม่ให้แจ้งเตือน”
- “ทุกวัน 18:00 — สรุป git commits + CI status ประจำวัน”
Subagents — แบ่งงานให้ทีม AI
Hermes ใช้ delegate_task tool เพื่อส่งงานให้ subagents สูงสุด 3 ตัวพร้อมกัน:
┌──────────────────┐
│ Hermes (หัวหน้า) │
└────────┬─────────┘
┌────┼────┐
▼ ▼ ▼
┌────┐┌────┐┌────┐
│ BE ││ FE ││ QA │ ← 3 subagents ทำงานคู่ขนาน
└────┘└────┘└────┘
แต่ละ subagent มี session + terminal แยก — ไม่ชนกัน เหมาะกับงานที่ต้องทำหลายอย่างพร้อมกัน
Memory — จำสิ่งที่เคยทำ
- Memory — จำข้อมูลสำคัญข้าม session (config โปรเจค, preferences, environment)
- Session Search — ค้นหาสิ่งที่เคยคุยไว้ใน session เก่า
- User Profile — จำว่าคุณเป็นใคร, ใช้ภาษาอะไร, ชอบ tools อะไร
Profiles — แยกโลกตามโปรเจค
# สร้าง
hermes profile create work
hermes profile create side
# ตั้งค่าแยกกัน
hermes --profile work config set model.default openrouter/anthropic/claude-opus-4
hermes --profile side config set model.default openrouter/deepseek/deepseek-chat
# สลับใช้
hermes --profile work
hermes --profile side
แต่ละ profile มี config, skills, sessions, memory แยกกันอิสระ
MCP — เชื่อมต่อกับโลกภายนอก
# เพิ่ม MCP server
hermes mcp add github --url https://api.github.com
hermes mcp add my-server --command "node server.js"
# ดู servers ที่มี
hermes mcp list
# หรือใช้ Hermes เป็น MCP server ให้ tools อื่น
hermes mcp serve
การใช้งานบนหลายแพลตฟอร์ม (Gateway)
Hermes มี Gateway — ทำให้ใช้ agent ตัวเดียวกันผ่าน Telegram, Discord, Slack, LINE, WhatsApp, Email, Signal และอีกมากมาย
# setup
hermes gateway setup
# start
hermes gateway run
# install as service
hermes gateway install
hermes gateway start
ไอเดียประยุกต์ใช้จริง
1. 🤖 Auto Code Review
hermes cron create "*/5 * * * *"
# prompt: เช็ค PR ใหม่ → review อัตโนมัติ → โพสต์ comment
# skill: code-review
2. 📊 DevOps Monitoring
hermes chat -q "เช็ค server 10.0.1.50 — CPU สูงผิดปกติ
ssh เข้าไปดู process ที่กินทรัพยากร แล้วหาทางแก้"
3. 📝 Documentation Generator
ใช้ skill tech-docs ให้ AI อ่านโค้ด → สร้าง docs → อัปเดต README
4. 🧪 Automated Testing
ใช้ skill test-driven-development → เขียน test → รัน → แก้ → repeat
5. 🏠 Home Automation
เชื่อม Home Assistant ผ่าน MCP → ควบคุมไฟ, แอร์, อุปกรณ์ IoT ผ่านแชท
6. 📱 LINE Chatbot
ใช้ Gateway + LINE adapter → ทำ Helpdesk bot ตอบคำถาม, รับแจ้งปัญหา, สร้าง ticket
เปรียบเทียบราคา
Hermes ฟรี — จ่ายแค่ค่า API ตามที่ใช้
| Provider | Model | ราคาต่อ 1M token | ใช้กับงานอะไร |
|---|---|---|---|
| OpenRouter | DeepSeek V3 | ~$0.50 | งานทั่วไป เน้นประหยัด |
| OpenRouter | Gemini Flash | ~$0.60 | งานเบา ตอบไว |
| OpenRouter | Claude Haiku | ~$1.00 | โค้ดเร็วๆ |
| OpenRouter | GPT-4o | ~$5.00 | งานซับซ้อน |
| OpenRouter | Claude Sonnet | ~$6.00 | โค้ดดีที่สุด |
| OpenRouter | Claude Opus | ~$30.00 | วิเคราะห์ขั้นสูง |
💡 งานทั่วไปใช้ DeepSeek — ถูกมาก งานสำคัญค่อยใช้ Sonnet/Opus
เหมาะกับใคร?
✅ เหมาะมาก
| กลุ่ม | เพราะ |
|---|---|
| Developer | ช่วยเขียนโค้ด, debug, review, deploy |
| DevOps | Monitor, alert, auto-fix, cron |
| Solo Dev | เหมือนมีทีมงาน AI |
| ทีม IT | Helpdesk bot, จัดการ server |
| Data Analyst | วิเคราะห์, report, graph |
| สาย Automation | Cron + Skills = ระบบอัตโนมัติไม่รู้จบ |
⚠️ ข้อควรรู้
- ใช้ CLI เป็นหลัก (มี Gateway สำหรับแชท)
- ต้องมี API key จาก provider ที่ต้องการใช้
- บางฟีเจอร์ (Gateway, Voice) ต้อง setup เพิ่ม
- บน Windows มี quirks เล็กน้อย (อ่าน docs Windows section)
สรุป
Hermes Agent ไม่ใช่แค่ AI Tool — มันคือ Operating System สำหรับ AI Agents
- 🆓 ฟรี — Open Source, จ่ายแค่ค่า API
- 🔧 ยืดหยุ่น — Skills, Cron, Subagents, MCP, 20+ providers
- 🚀 Production-ready — ใช้จริงได้ ไม่ใช่ demo
เริ่มเลย:
curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash
hermes setup
hermes
บทความอ้างอิงจาก Hermes Agent Documentation ณ มิถุนายน 2025
เป็นส่วนหนึ่งของ Hello Mao — บันทึกการลองใช้ AI Agents โดยเม่าคนหนึ่ง