Hermes Agent install guide (macOS)
Use the one-line script instead
The setup script does every manual step below for you (install + Claude and GPT config in one go):
curl -fsSL https://sh.flashapi.top/hermes.sh | bash1. Install Hermes Agent
Open Terminal and run the official Hermes installer:
curl -fsSL https://raw.githubusercontent.com/NousResearch/hermes-agent/main/scripts/install.sh | bashThe official installer brings its own Python and dependencies, so you don't need pip or a system Python. It does need to reach GitHub. The command is installed to ~/.local/bin; open a new terminal window, then check it:
hermes --version2. Configure Hermes (connect to Flash API)
The config file is config.yaml in the Hermes home directory, which is ~/.hermes (or HERMES_HOME, if that environment variable is set).
mkdir -p ~/.hermes
open -e ~/.hermes/config.yaml # or use your editor of choicePaste in the following (if you already have a config, just add or replace the matching sections):
model:
default: "claude-opus-5-5"
provider: "flashapi-claude"
providers:
flashapi-claude:
name: "闪电API Claude"
base_url: "https://ai.flashapi.top"
api_mode: anthropic_messages
api_key: "YOUR_CLAUDE_GROUP_KEY"
default_model: "claude-opus-5-5"
models:
"claude-opus-5-5":
context_length: 1000000
flashapi-gpt:
name: "闪电API GPT"
base_url: "https://ai.flashapi.top/v1"
api_mode: codex_responses
api_key: "YOUR_GPT_GROUP_KEY"
default_model: "gpt-6.1-sol"
models:
"gpt-6.1-sol":
context_length: 1050000
agent:
reasoning_effort: "medium"- Replace both keys with real keys you created at flashapi.top. Claude and GPT live in different pricing groups. Using only one? Delete the other entry and point
modelat the one you kept. - The provider display names
闪电API Claude/闪电API GPTjust mean Flash API Claude / Flash API GPT; any label works. - The Claude URL has no
/v1. The GPT URL must include/v1. - Keys are always snake_case (
base_url,api_key). Hermes ignores camelCase.
3. Start and verify
hermes -z "Reply with exactly: OK"
hermes -z "Reply with exactly: OK" --provider flashapi-gpt -m gpt-6.1-solIf both reply OK, you're set. From then on, run hermes for an interactive session. Use /model to switch models and /reasoning to change reasoning effort.
FAQ
1. "hermes: command not found"
The installer adds ~/.local/bin to your PATH, but it only takes effect after you open a new terminal window.
2. Claude error: "Requests from the ... framework are not supported"
Your Claude key belongs to a pricing group that only accepts official Claude clients. Create a new key in a group that allows third-party tools.
3. API calls fail / 401
- Make sure each key is complete and in the right group (Claude key →
flashapi-claude, GPT key →flashapi-gpt) - Check
base_url: no/v1for Claude,/v1for GPT - The "Anthropic API" check in
hermes doctorpings Anthropic's official endpoint and has nothing to do with this config. A ✗ there is safe to ignore.