สรุป: Hermes Agent เป็นผู้ช่วย AI แบบโอเพนซอร์สที่จดจำสิ่งที่เรียนรู้และฉลาดขึ้นเมื่อเวลาผ่านไป ติดตั้งด้วยคำสั่งเดียว, กำหนดค่าผู้ให้บริการ LLM ของคุณ, และเริ่มสนทนาผ่าน CLI, Telegram, Discord, หรือ IDE ของคุณ คู่มือนี้ครอบคลุมการติดตั้ง, การตั้งค่า, การใช้งานประจำวัน, คุณสมบัติขั้นสูง, และวิธีใช้ Hermes ให้เกิดประโยชน์สูงสุด
Hermes Agent คืออะไร?
Hermes Agent เป็นผู้ช่วย AI ส่วนตัวที่สร้างโดย NousResearch ซึ่งทำงานตลอด 24 ชั่วโมง 7 วันต่อสัปดาห์ จดจำทุกสิ่งที่เรียนรู้ และมีความสามารถมากขึ้นเมื่อเวลาผ่านไป ไม่เหมือน ChatGPT หรือ Claude ที่เริ่มต้นใหม่ทุกการสนทนา Hermes สร้างแบบจำลองที่คงอยู่ของงาน, โครงการ, และความชอบของคุณ
ความสามารถหลัก:
- จดจำ — จัดเก็บการสนทนา, การตัดสินใจ, และโค้ดที่คุณเขียน
- เรียนรู้ — สร้างทักษะที่นำกลับมาใช้ใหม่ได้จากงานที่ทำซ้ำๆ
- หลายแพลตฟอร์ม — สนทนาผ่าน CLI, Telegram, Discord, Slack, WhatsApp, หรือ IDE
- โฮสต์เอง — ทำงานบนแล็ปท็อปของคุณ, VPS ราคา $5, หรือโครงสร้างพื้นฐานคลาวด์
- ไม่ขึ้นกับโมเดล — ใช้โมเดลกว่า 200+ ผ่าน OpenRouter หรือผู้ให้บริการโดยตรง
- ขยายได้ — ระบบปลั๊กอินสำหรับเครื่องมือและคำสั่งที่กำหนดเอง
ใครควรใช้ Hermes:
- นักพัฒนาที่ต้องการโปรแกรมเมอร์คู่หู AI ที่รู้จักโค้ดเบสของพวกเขา
- ทีมที่ต้องการผู้ช่วย AI ที่ใช้ร่วมกันพร้อมรองรับผู้ใช้หลายคน
- ผู้ใช้ขั้นสูงที่ต้องการระบบอัตโนมัติของเอเจนต์ตลอด 24 ชั่วโมง 7 วันต่อสัปดาห์ผ่านการจัดตารางเวลา Cron
- นักวิจัยที่ฝึกอบรมโมเดล AI ที่กำหนดเองด้วยข้อมูล Trajectory
การติดตั้ง: ทีละขั้นตอน
ข้อกำหนดเบื้องต้น
- ระบบปฏิบัติการ: macOS, Linux, หรือ Windows (แนะนำ WSL)
- Python: 3.10 หรือสูงกว่า
- Git: สำหรับการโคลน Repository
- API Key: OpenRouter, Anthropic, OpenAI, หรือผู้ให้บริการ LLM อื่นๆ
การติดตั้งแบบรวดเร็ว (แนะนำ)
ติดตั้ง Hermes อย่างรวดเร็วในเครื่องของคุณ:
curl -fsSL https://raw.githubusercontent.com/NousResearch/hermes-agent/main/scripts/install.sh | bash
สคริปต์นี้จะโคลน Hermes, ติดตั้ง uv, สร้าง virtualenv, ติดตั้ง dependency ทั้งหมด และเพิ่ม Hermes ใน PATH
หลังติดตั้ง โหลด shell ของคุณใหม่:
source ~/.bashrc # สำหรับ bash
source ~/.zshrc # สำหรับ zsh
ตรวจสอบการติดตั้ง:
hermes --version
ควรเห็น Hermes Agent v0.5.0 หรือเวอร์ชันล่าสุด
การติดตั้งด้วยตนเอง (สำหรับนักพัฒนา)
หากต้องการปรับแต่งขั้นสูง:
# Clone repository
git clone https://github.com/NousResearch/hermes-agent.git
cd hermes-agent
# ติดตั้ง uv
curl -LsSf https://astral.sh/uv/install.sh | sh
# สร้างและ activate virtualenv
uv venv venv --python 3.11
source venv/bin/activate # Linux/macOS
# หรือ
.\venv\Scripts\activate # Windows
# ติดตั้ง Hermes พร้อม dev features
uv pip install -e ".[all,dev]"
# ทดสอบระบบ
python -m pytest tests/ -q
ติดตั้งพร้อมรองรับ RL Training
สำหรับการฝึกโมเดล custom:
git submodule update --init tinker-atropos
uv pip install -e "./tinker-atropos"
การตั้งค่าและการกำหนดค่าเบื้องต้น
เรียกใช้ Setup Wizard
ใช้งานครั้งแรกให้ตั้งค่าง่ายๆ ด้วย:
hermes setup
เลือกผู้ให้บริการ LLM, ใส่ API keys, กำหนด memory, terminal backend และ gateway (เช่น Telegram/Discord)
การกำหนดค่าด้วยตนเอง
hermes config edit
หรือใช้ CLI ตรง:
hermes config set model anthropic/claude-opus-4
hermes config set terminal.backend local
hermes config set OPENROUTER_API_KEY sk-or-...
hermes config set ANTHROPIC_API_KEY sk-ant-...
ตำแหน่งไฟล์การกำหนดค่า
~/.hermes/
├── config.yaml # การกำหนดค่าหลัก
├── .env # API keys (ห้ามแชร์!)
├── memory/ # ที่เก็บหน่วยความจำถาวร
├── skills/ # ทักษะที่ติดตั้ง
└── plugins/ # ปลั๊กอินที่กำหนดเอง
ยืนยันการตั้งค่าของคุณ
hermes doctor
ตรวจสอบ config, การเชื่อมต่อ API, memory, gateway, terminal backend
การเลือกผู้ให้บริการ LLM ของคุณ
OpenRouter (แนะนำสำหรับผู้เริ่มต้น)
API key เดียวใช้ได้กับโมเดลกว่า 200+ (มีฟรี):
hermes config set model openrouter
hermes config set OPENROUTER_API_KEY sk-or-...
ตัวอย่างโมเดลยอดนิยม: anthropic/claude-opus-4, openai/gpt-4o, google/gemini-pro-1.5
Anthropic โดยตรง
hermes config set model anthropic
hermes config set ANTHROPIC_API_KEY sk-ant-...
hermes config set model.default claude-opus-4
OpenAI โดยตรง
hermes config set model openai
hermes config set OPENAI_API_KEY sk-...
โมเดล Local (Ollama)
# ติดตั้ง Ollama ก่อน: https://ollama.ai
hermes config set model ollama
hermes config set model.default qwen2.5-coder:32b
การกำหนดเส้นทางโมเดลตัวอย่าง
model:
provider: openrouter
default: anthropic/claude-opus-4
fallback:
- anthropic/claude-haiku-4-5
- openai/gpt-4o-mini
หรือจำกัดค่าใช้จ่าย:
model:
budget:
daily_limit: 5.00 # USD
monthly_limit: 100.00
การใช้งานพื้นฐาน: โหมด CLI
เริ่มต้นใช้งาน Hermes
hermes
เริ่มแชทหรือสั่งงานได้ทันทีใน CLI
คำสั่งพื้นฐาน
> /help
> /skills
> /memory
> /config
> /clear
> /history
หรือถามเป็นภาษาไทย-อังกฤษได้ทันที เช่น:
> Hey, can you help me write a Python function to parse JSON?
สั่ง Hermes อ่าน/เขียนไฟล์หรือรันคำสั่ง shell ได้ เช่น:
> Run: npm install && npm run build
Shell ถาวร
> cd /my/project && source venv/bin/activate
> python src/main.py
Shell context จะคงอยู่ตลอด session
การทำงานกับไฟล์
> Show me the contents of config.yaml
> In main.py, change the database port from 5432 to 5433
> Create a new file called utils.py with helper functions for date formatting
เวิร์กโฟลว์หลายขั้นตอน
> I need to add user authentication to my Flask app. Can you:
> 1. Set up the database models
> 2. Create login/logout endpoints
> 3. Add JWT token generation
> 4. Write tests for the auth flow
Messaging Gateway: Telegram, Discord, Slack
ตั้งค่า Telegram
- สร้างบอทกับ @botfather และคัดลอก token
- ตั้งค่าใน Hermes:
hermes config set TELEGRAM_BOT_TOKEN 123456:ABC-DEF1234ghIkl-zyx57W2v1u123ew11
hermes gateway setup telegram
hermes gateway start
แชทกับบอทใน Telegram ได้เหมือน CLI
ตั้งค่า Discord
- สร้างแอปที่ https://discord.com/developers/applications
- สร้างบอท, คัดลอก token และเชิญบอทเข้าเซิร์ฟเวอร์
- ตั้งค่าใน Hermes:
hermes config set DISCORD_BOT_TOKEN MTIzNDU2...
hermes gateway setup discord
hermes gateway start
ตั้งค่า Slack
- สร้างแอปที่ https://api.slack.com/apps เพิ่ม permissions ให้บอท
- คัดลอก token แล้วกำหนดค่า:
hermes config set SLACK_BOT_TOKEN xoxb-...
hermes gateway setup slack
hermes gateway start
ใช้งานพร้อมกันข้ามแพลตฟอร์ม
hermes gateway start --all
สถานะการสนทนาจะ sync ข้ามทุกช่องทาง
การรวม IDE: VS Code, JetBrains
VS Code
- ติดตั้ง Extension "Agent Communication Protocol"
- สั่ง
hermes acp startในเครื่อง - เลือก Hermes เป็น agent ใน ACP sidebar
JetBrains (IntelliJ, PyCharm ฯลฯ)
- ติดตั้งปลั๊กอิน ACP
- สั่ง
hermes acp start - เพิ่ม Hermes ใน Settings → Tools → AI Agents
Zed Editor
{
"agent": {
"provider": "acp",
"endpoint": "hermes"
}
}
hermes acp start
ระบบหน่วยความจำและการเรียนรู้
- Episodic Memory: ค้นหาสิ่งที่เคยพูดหรือทำ
- Semantic Memory: กราฟความรู้, โครงการ
- Procedural Memory (Skills): สร้างเวิร์กโฟลว์อัตโนมัติซ้ำๆ
> /memory search "database migration"
> /skills list
Hermes จะช่วยดึงความรู้เดิมขึ้นมาโดยอัตโนมัติ
hermes memory export ~/backup/hermes-memory.json
hermes memory import ~/backup/hermes-memory.json
ทักษะและปลั๊กอิน
ทักษะคืออะไร?
ทักษะ = เวิร์กโฟลว์ หรือ macro สำหรับงานที่ซ้ำๆ หรือซับซ้อน
-
code_review— ตรวจโค้ด -
debug_session— ดีบัก -
api_tester— ทดสอบ API -
git_workflow— จัดการ Git -
documentation— สร้าง docs จากโค้ด
> /skills list
> /skills install code_review
> /skills run code_review ./src/auth.py
สร้างทักษะของคุณเอง
# ~/.hermes/skills/my_skill.py
from hermes.skills import Skill
class MyCustomSkill(Skill):
name = "my_custom_skill"
description = "Does something useful"
def execute(self, context):
# Your skill logic here
return "Skill executed successfully"
ปลั๊กอิน
# ~/.hermes/plugins/my_tool.py
from hermes.tools import Tool
class MyCustomTool(Tool):
name = "my_tool"
description = "A custom tool for specific tasks"
def run(self, **kwargs):
# Tool logic here
return {"result": "success"}
คุณสมบัติขั้นสูง
Cron Automation
> Set up a daily digest of my GitHub notifications at 9am
cron:
- name: "Daily digest"
schedule: "0 9 * * *"
command: "/skills run github_digest"
model: "anthropic/claude-haiku-4-5"
Subagent/Parallel Task
> I need you to review all the PRs in my repo and summarize the changes
Voice Mode
hermes --voice
ส่งข้อความเสียงใน Telegram/Discord หรือให้ Hermes ถอดเสียงให้
Browser Automation
> Go to github.com and find the top 5 trending Python repos
hermes browser connect --cdp
MCP Integration
mcp:
servers:
filesystem:
command: "npx"
args: ["-y", "@modelcontextprotocol/server-filesystem", "~/projects"]
git:
command: "npx"
args: ["-y", "@modelcontextprotocol/server-git"]
Worktree Mode
hermes -w
รัน Agent อื่นๆ ใน Hermes
> Use claude-code to review this pull request
การแก้ไขปัญหา
- ถ้า API key หาย:
hermes config get OPENROUTER_API_KEY
hermes config set OPENROUTER_API_KEY sk-or-...
- โมเดลไม่พร้อมใช้งาน:
hermes models list
hermes config set model anthropic/claude-opus-4
- Gateway มีปัญหา:
hermes gateway status
hermes gateway stop
hermes gateway start
- Memory เสียหาย:
hermes memory export ~/backup/memory-backup.json
hermes memory reset
hermes memory import ~/backup/memory-backup.json
- ดู log และขอความช่วยเหลือ:
> /help
hermes logs tail --follow
hermes doctor
คำถามที่พบบ่อย
Hermes มีค่าใช้จ่ายเท่าไหร่?
- ใช้งานเบา: $5-15/เดือน (OpenRouter)
- ใช้งานปานกลาง: $20-50/เดือน
- ใช้งานหนัก: $50-200/เดือน
ถ้าใช้โมเดล local (Ollama) ฟรี แต่ต้องมีฮาร์ดแวร์
Hermes ทำงาน 24/7 ได้ไหม?
curl -fsSL https://raw.githubusercontent.com/NousResearch/hermes-agent/main/scripts/install.sh | bash
hermes service install
hermes service start
เหมาะกับองค์กรไหม?
- Multi-user gateway
- PII redaction
- Security supply chain
- Self-host
- Audit log
ย้ายจาก OpenClaw
hermes claw migrate --dry-run
hermes claw migrate
hermes doctor
ใช้ Hermes แบบ offline ได้ไหม?
curl -fsSL https://ollama.ai/install.sh | sh
ollama pull qwen2.5-coder:32b
hermes config set model ollama
hermes config set model.default qwen2.5-coder:32b
Hermes ต่างกับ ChatGPT อย่างไร?
คุณสมบัติ |
Hermes |
ChatGPT |
|---|---|---|
หน่วยความจำ |
ถาวร, ค้นหาได้ |
เฉพาะเซสชัน |
การปรับใช้ |
โฮสต์เอง, 24/7 |
คลาวด์เท่านั้น |
การเลือกโมเดล |
โมเดล 200+ รายการ |
GPT เท่านั้น |
ความสามารถในการขยาย |
ปลั๊กอิน, ทักษะ |
จำกัด |
ค่าใช้จ่าย |
จ่ายตามการใช้งานเท่านั้น |
ค่าสมัครสมาชิก |
ความเป็นส่วนตัว |
คุณควบคุมข้อมูล |
OpenAI จัดเก็บข้อมูล |
สำรองข้อมูล Hermes
hermes export --all ~/backup/hermes-full-backup.tar.gz
Hermes เข้าถึงไฟล์ local ของฉันได้ไหม?
Hermes เข้าถึงเฉพาะไฟล์หรือโฟลเดอร์ที่คุณอนุญาตหรืออ้างอิงเท่านั้น
💡ต้องการทดสอบ API ซึ่งเป็นส่วนหนึ่งของเวิร์กโฟลว์การพัฒนาที่ขับเคลื่อนด้วย AI ของคุณหรือไม่? ลองใช้ Apidog แพลตฟอร์มการพัฒนา API แบบครบวงจรสำหรับการออกแบบ การทดสอบ และการจัดทำเอกสาร API

Top comments (0)