Skip to content

Hermes Agent one-line install: Claude + GPT via one API (macOS, Linux, Windows) ​

TL;DR: run curl -fsSL https://sh.flashapi.top/hermes.sh | bash (macOS / Linux) or irm https://sh.flashapi.top/hermes.ps1 | iex (Windows PowerShell), pick 3, paste your API key. Done.

One command installs Hermes Agent and connects it to both Claude and GPT through Flash API. The default model is claude-opus-5-5, with reasoning effort set to medium.

1. Run the setup command ​

bash
curl -fsSL https://sh.flashapi.top/hermes.sh | bash
powershell
irm https://sh.flashapi.top/hermes.ps1 | iex

The script speaks Chinese (for now)

The script's prompts are currently in Chinese. Pick 3 for a full install, then follow the prompts.

The menu has three options:

  • 1: Install Hermes Agent only.
  • 2: Configure Flash API (Claude + GPT) only. Use this if Hermes is already installed, or to swap keys later.
  • 3: Install everything. Pick this on your first run.

2. How it installs ​

The script runs the official Hermes installer (install.sh --skip-setup on macOS / Linux, install.ps1 on Windows). The installer brings its own Python and dependencies, so you don't need pip or a system Python. It does need to reach GitHub; sort out network access first if that's blocked.

  • macOS / Linux: the command lands in ~/.local/bin/hermes. Open a new terminal afterwards.
  • Windows: the command lands in %LOCALAPPDATA%\hermes\bin. Open a new PowerShell window afterwards.

About the two keys ​

Claude and GPT live in different pricing groups in the dashboard, so they use separate API keys. The script first asks which model families to configure:

  • 1: Claude + GPT (default, just press Enter)
  • 2: Claude only
  • 3: GPT only

Then it asks for, in order:

  1. Your Claude-group API key
  2. Your GPT-group API key (press Enter to reuse the Claude key)

Each key is checked against /v1/models, and the models available in that group are pulled into the config.

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 at flashapi.top, then rerun the script and pick 2 (configure).

3. Files the script writes ​

Only config.yaml in the Hermes home directory: HERMES_HOME if set, otherwise %LOCALAPPDATA%\hermes on Windows and ~/.hermes on macOS / Linux.

yaml
model:
  default: "claude-opus-5-5"
  provider: "flashapi-claude"

providers:
  flashapi-claude:
    name: "闪电API Claude"
    base_url: "https://ai.flashapi.top"        # Anthropic format, no /v1
    api_mode: anthropic_messages
    api_key: "sk-YOUR_CLAUDE_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"     # OpenAI format, with /v1
    api_mode: codex_responses
    api_key: "sk-YOUR_GPT_KEY"
    default_model: "gpt-6.1-sol"
    models:
      "gpt-6.1-sol":
        context_length: 1050000

agent:
  reasoning_effort: "medium"
  • The provider display names are written literally as 闪电API Claude and 闪电API GPT (Flash API Claude / Flash API GPT).
  • Only the flashapi-claude / flashapi-gpt entries, the default model and the reasoning effort are touched. Everything else, comments included, stays. The original is backed up as config.yaml.bak.<timestamp> first.
  • This is the providers: format used by current Hermes releases. Hermes no longer reads the format from older docs, so trust this page.

4. Verify and use ​

bash
# Default model (Claude)
hermes -z "Reply with exactly: OK"
# GPT
hermes -z "Reply with exactly: OK" --provider flashapi-gpt -m gpt-6.1-sol
  • Start a session: hermes
  • Switch mid-session: /model gpt-6.1-sol --provider flashapi-gpt (add --global to make it the default)
  • Pick the default model interactively: hermes model
  • Change reasoning effort: /reasoning high in a session, or hermes config set agent.reasoning_effort high
  • The "Anthropic API" check in hermes doctor pings Anthropic's official endpoint and has nothing to do with your Flash API config. A ✗ there is safe to ignore.

5. Roll back ​

Copy config.yaml.bak.<timestamp> back to config.yaml. Hermes moves these backups into <hermes-home>/backups/config/ on its next start, so if you don't see them, look there.

One base URL for GPT, Claude and Gemini