跳转到内容

Quick Start

  • Python 3.10+ (3.11+ recommended)
  • Git
  • curl (pre-installed on most systems)
  • At least 2GB RAM

Option A: One-Line Script (Linux / macOS / WSL2)

Section titled “Option A: One-Line Script (Linux / macOS / WSL2)”
Terminal window
curl -fsSL https://raw.githubusercontent.com/NousResearch/hermes-agent/main/scripts/install.sh | bash

China Mirror (Faster for users in mainland China)

Section titled “China Mirror (Faster for users in mainland China)”
Terminal window
curl -fsSL https://res1.hermesagent.org.cn/install.sh | bash
Terminal window
pip install hermes-agent
Terminal window
docker pull nousresearch/hermes-agent:latest
docker run -it -v ~/.hermes:/root/.hermes nousresearch/hermes-agent:latest
Terminal window
git clone https://github.com/NousResearch/hermes-agent.git
cd hermes-agent
pip install -e .
Terminal window
source ~/.bashrc # Bash users
# OR
source ~/.zshrc # Zsh users (macOS default)
Terminal window
hermes --version # Should show v0.13.0+
hermes doctor # Check dependencies and configuration
Terminal window
hermes model # Interactive model configuration wizard

You’ll need an API key from one of the supported providers. Hermes Agent supports 20+ LLM backends:

ProviderGet API KeyNotes
DeepSeekplatform.deepseek.comGreat for China users
OpenRouteropenrouter.ai/keysAccess 100+ models
Anthropicconsole.anthropic.comClaude models
OpenAIplatform.openai.comGPT-4o, GPT-4.1
Kimi (Moonshot)platform.moonshot.cnGood for Chinese tasks
Google Geminiaistudio.google.comGemini 2.5 Pro
Groqconsole.groq.comUltra-fast inference
Together AIapi.together.aiOpen-source models
Fireworks AIapp.fireworks.aiFast open-source inference
Mistralconsole.mistral.aiMistral models
Coheredashboard.cohere.comCommand R+
Perplexityperplexity.ai/settingsOnline-augmented models
Azure OpenAIAzure PortalEnterprise OpenAI
AWS BedrockAWS ConsoleClaude, Llama on AWS
OllamaLocalRun models locally
vLLMLocalSelf-hosted inference
LM StudioLocalGUI local models
SiliconFlowsiliconflow.cnChina-based inference
Zhipu AIopen.bigmodel.cnGLM-4 models
Qwen (Dashscope)dashscope.aliyun.comQwen 3 models

💡 For users in China: DeepSeek, Kimi, SiliconFlow, Zhipu AI, and Qwen offer the best experience with no additional network configuration needed.

If you prefer to edit the config directly:

~/.hermes/config.yaml
llm:
provider: openrouter
model: anthropic/claude-sonnet-4-20250514
api_key: sk-or-...
Terminal window
hermes chat

Try asking it something:

> Hello! Can you help me write a Python script to fetch weather data?

After sending your first message, check that everything is working:

Terminal window
hermes doctor # Re-run to confirm LLM connectivity

You should see:

  • ✅ LLM connection successful
  • ✅ Memory system active
  • ✅ Skills directory ready

Type / to see available slash commands:

CommandWhat It Does
/helpList all commands
/modelSwitch models mid-conversation
/memoryView or search agent memory
/skillsList learned skills
/saveSave current conversation
/clearClear conversation history
/costShow token usage this session
/exportExport conversation to file

For longer prompts, use triple quotes:

> """
> Write a function that:
> 1. Fetches data from an API
> 2. Parses the JSON response
> 3. Handles errors gracefully
> 4. Returns a pandas DataFrame
> """

Or use the --multiline flag when starting:

Terminal window
hermes chat --multiline

If the agent goes off track or you want to stop mid-generation:

  • Press Ctrl+C once to interrupt the current response
  • Press Ctrl+C twice quickly to exit the chat
  • The agent saves its state, so you can resume without losing context

The agent can read, write, and edit files directly:

> Read the file src/main.py and add error handling to the database connection function
> Search for the latest Python 3.13 release notes and summarize the key changes

Once you’re comfortable with basic chat, here’s how to unlock Hermes Agent’s full power:

🤖 Connect to a Messaging Platform (Bot Mode)

Section titled “🤖 Connect to a Messaging Platform (Bot Mode)”
Terminal window
herms chat --platform telegram # Telegram bot
herms chat --platform discord # Discord bot
herms chat --platform wechat # WeChat (via wechaty)

See Platform Configuration for detailed setup guides.

Terminal window
hermes cron add "0 9 * * *" "Summarize my unread emails"

See Cron Jobs for scheduling syntax and examples.

docker-compose.yml
services:
hermes:
image: nousresearch/hermes-agent:latest
volumes:
- ./hermes-data:/root/.hermes
environment:
- LLM_API_KEY=${LLM_API_KEY}

See Docker Deploy for production setup.

Terminal window
hermes chat --voice # Enable voice I/O

See Voice Configuration for STT/TTS setup.

Terminal window
hermes skill install web-scraper # From skill registry
hermes skill create my-skill # Create your own

See Skills System for the full guide.

Hermes Agent supports the Model Context Protocol (MCP) and Agent Communication Protocol (ACP) to connect external tools:

~/.hermes/config.yaml
mcp:
servers:
- name: filesystem
command: npx
args: ["-y", "@modelcontextprotocol/server-filesystem", "/home/user/documents"]

See MCP Protocol and ACP Integration for details.

ProblemCauseFix
command not found: hermesShell not reloadedRun source ~/.bashrc or restart terminal
LLM connection failedInvalid API keyRun hermes model to reconfigure
ModuleNotFoundErrorBroken Python installReinstall: pip install --force-reinstall hermes-agent
Permission denied: ~/.hermes/Wrong directory ownersudo chown -R $(whoami) ~/.hermes/
Agent hangs without responseNetwork/firewall issueCheck proxy settings; try a different provider
Rate limit exceededToo many requestsWait 60s or switch to a higher-tier API plan
Memory not persistingMultiple instances writingEnsure only one instance uses ~/.hermes/
Chinese text garbled in outputTerminal encodingSet export LANG=en_US.UTF-8 or use a modern terminal

If something goes wrong, try these in order:

  1. hermes doctor — Diagnose common issues automatically
  2. hermes config reset — Reset configuration to defaults (keeps memory and skills)
  3. hermes cache clear — Clear temporary caches
  4. hermes session list — See active sessions; hermes session kill --all to clean up
  5. Backup and clean start:
Terminal window
cp -r ~/.hermes ~/.hermes.backup # Backup everything
rm -rf ~/.hermes # Nuclear option
hermes model # Reconfigure from scratch

All configuration is stored in ~/.hermes/:

~/.hermes/
├── config.yaml # Main configuration
├── memory/ # Persistent memory storage
├── skills/ # Auto-generated and custom skills
├── sessions/ # Session history
└── logs/ # Runtime logs

⚠️ Important: Do not run multiple Hermes Agent instances writing to the same ~/.hermes/ directory simultaneously.