Skip to content

Hermes Agent install guide (Linux) ​

Use the one-line script instead

The setup script does every manual step below for you (install + Claude and GPT config in one go):

bash
curl -fsSL https://sh.flashapi.top/hermes.sh | bash

See Hermes Agent one-line setup.

1. Install Hermes Agent ​

Open a terminal and run the official Hermes installer:

bash
curl -fsSL https://raw.githubusercontent.com/NousResearch/hermes-agent/main/scripts/install.sh | bash

The 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 (or run source ~/.bashrc), then check it:

bash
hermes --version

2. 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).

bash
mkdir -p ~/.hermes
nano ~/.hermes/config.yaml

Paste in the following (if you already have a config, just add or replace the matching sections):

yaml
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 model at the one you kept.
  • The provider display names 闪电API Claude / 闪电API GPT just 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 ​

bash
hermes -z "Reply with exactly: OK"
hermes -z "Reply with exactly: OK" --provider flashapi-gpt -m gpt-6.1-sol

If 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 (or run source ~/.bashrc).

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 /v1 for Claude, /v1 for GPT
  • The "Anthropic API" check in hermes doctor pings Anthropic's official endpoint and has nothing to do with this config. A ✗ there is safe to ignore.

One base URL for GPT, Claude and Gemini