Hermes

Hermes is a lightweight, highly intelligent universal LLM API proxy and concurrency control gateway.

It natively supports mutual proxying, format conversion, and routing for almost all mainstream protocols (OpenAI, Google Gemini, Anthropic, and local models like Ollama/vLLM). Out of the box, it includes a massive dictionary of 30+ global model providers.

Through multi-account polling and intelligent concurrency queuing, it completely solves business interruptions caused by API Key rate limits, bans, or depleted balances. The latest version is purely Zero-Config driven, with a built-in SQLite database and Web Admin Dashboard.

Core Features

Protocol & Routing Matrix

Source Protocol (Client)Target Protocol (Upstream)Description
openaiopenaiPassthrough + Polling (Compatible with all OpenAI format APIs)
openaianthropicOpenAI format → Anthropic format conversion
openaigoogleOpenAI format → Google Gemini format conversion
anthropicanthropicPassthrough + Polling
anthropicopenaiAnthropic format → OpenAI format conversion
googlegooglePassthrough + Polling
locallocalLocal model unauthenticated passthrough (Ollama/vLLM)

Installation

All configurations, billing records, and SQLite database (polarisagi_hermes.db) are securely stored in: ~/.polarisagi/hermes/.

macOS / Linux

Default:

curl -sSL https://raw.githubusercontent.com/polarisagi/hermes/main/scripts/install.sh | bash

China Region (Proxy):

curl -sSL https://mirror.ghproxy.com/https://raw.githubusercontent.com/polarisagi/hermes/main/scripts/install.sh | bash

Windows (PowerShell as Admin)

Default:

iwr -useb https://raw.githubusercontent.com/polarisagi/hermes/main/scripts/install.ps1 | iex

China Region (Proxy):

iwr -useb https://mirror.ghproxy.com/https://raw.githubusercontent.com/polarisagi/hermes/main/scripts/install.ps1 | iex

The gateway will run as a background service and start on boot.

Uninstallation

macOS / Linux

Default:

curl -sSL https://raw.githubusercontent.com/polarisagi/hermes/main/scripts/uninstall.sh | bash

China Region (Proxy):

curl -sSL https://mirror.ghproxy.com/https://raw.githubusercontent.com/polarisagi/hermes/main/scripts/uninstall.sh | bash

Windows (PowerShell as Admin)

Default:

iwr -useb https://raw.githubusercontent.com/polarisagi/hermes/main/scripts/uninstall.ps1 | iex

China Region (Proxy):

iwr -useb https://mirror.ghproxy.com/https://raw.githubusercontent.com/polarisagi/hermes/main/scripts/uninstall.ps1 | iex

Quick Start

By default, the gateway listens on 127.0.0.1:27777.

  1. Admin Dashboard: Visit http://127.0.0.1:27777/dashboard
  2. Add Channel: Select protocol → Select provider → Enter API Key → Save.
  3. One-Click Client Config: Navigate to "Client Config", select target software, choose the API Key to inject, and you're done.
  4. API Endpoints (Enter these URLs in any AI tool, API Key can be anything):
    • OpenAI Protocol: http://127.0.0.1:27777/v1/openai/
    • Anthropic Protocol: http://127.0.0.1:27777/v1/anthropic/
    • Google Protocol: http://127.0.0.1:27777/v1/google/