Hermes Cursor Agent
StrawCoding/hermes-cursor-agent
Hermes Agent model provider that routes chat requests to the local Cursor Agent CLI
Hermes Cursor Agent is a model provider plugin that lets Hermes Agent send chat requests to the local Cursor Agent CLI. It presents Cursor's cursor-agent as an OpenAI-compatible backend, so Hermes can use Cursor models from its CLI, gateway, Open WebUI and Telegram.
What Hermes Cursor Agent does
Hermes Cursor Agent is a model provider plugin that lets Hermes Agent use the Cursor Agent CLI as its chat backend. Hermes speaks OpenAI-style chat completions, so the plugin acts as a small OpenAI-compatible shim. For each request it starts a short-lived cursor-agent process, parses the stream-json output, and passes incremental assistant text back to Hermes, whether the request came from the CLI, the gateway, Open WebUI or Telegram.
The plugin lives under $HERMES_HOME/plugins/model-providers/cursor-agent/, so hermes update does not overwrite it. The Cursor key goes in ~/.hermes/.env as CURSOR_API_KEY, and the provider is chosen through hermes model or by setting provider: cursor-agent and base_url: acp://cursor in config.yaml. If a named model is out of usage, the client retries once with the auto model. An optional filter script redacts secrets from live stream-json logs.
Key features
- Spawns a short-lived cursor-agent process per request and parses its stream-json output
- Forwards incremental assistant deltas to Hermes as OpenAI-style streaming chunks
- Adds a Cursor Agent entry to the hermes model picker and works with hermes doctor
- Retries once with the auto model when a named model is out of usage
- Environment variables override the CLI command, extra arguments and default model
- Optional NDJSON log filter that redacts secrets and omits full user prompts
When to use it
- Using Cursor-hosted models as the main model for Hermes Agent
- Answering Telegram or Open WebUI conversations through Cursor Agent via the Hermes gateway
- Switching between Cursor Agent and other providers with hermes model
Who it is for: Hermes Agent users who already have a Cursor account and want Cursor Agent to be the model behind Hermes.
How it fits with Hermes Agent
Built for Hermes Agent as a model-provider plugin installed under the Hermes plugins directory. The README also lists two other Cursor-related Hermes plugins that use a different design.
How to install Hermes Cursor Agent
These commands are copied from the project's README. Check the repository for the latest steps before you run them.
git clone https://github.com/StrawCoding/hermes-cursor-agent.git
cd hermes-cursor-agent
chmod +x install.sh
./install.shRequirements: Hermes Agent installed, Cursor Agent CLI on PATH (cursor-agent or agent), and a CURSOR_API_KEY from a Cursor account
FAQ
What is Hermes Cursor Agent?
Hermes Cursor Agent is a model provider plugin for Hermes Agent. It runs the local Cursor Agent CLI for each chat request and returns the streamed output to Hermes in an OpenAI-compatible form.
How do I install Hermes Cursor Agent?
Clone the repository and run ./install.sh. A manual install copies model-providers/cursor-agent into ~/.hermes/plugins/model-providers/. Then add CURSOR_API_KEY to ~/.hermes/.env and pick the provider with hermes model.
What do I need to run Hermes Cursor Agent?
You need Hermes Agent, the Cursor Agent CLI available on PATH as cursor-agent or agent, and a CURSOR_API_KEY from your Cursor account. You can check the setup with hermes doctor and cursor-agent --list-models.
Similar models for Hermes Agent
All modelsInstaller that routes Hermes Agent traffic through the Headroom compression proxy via OpenRouter
srikanthmx Hermes CLI OrchestratorHermes plugin that pools model providers and local AI CLIs and switches the primary model from Telegram
spacepirate15 Quantum Hermes Free Router KitStarter kit that routes Hermes Agent through a local LiteLLM proxy with free-tier models and fallback
Adolanium Hermes ClinePassClinePass model provider plugin for Hermes Agent, with Kimi, GLM, DeepSeek and more
photofanz Hermes Claude ProxyOpenAI-compatible proxy that exposes a Claude Max subscription to Hermes Agent and other clients
artemiimillier Hermes Codex PoolGateway that pools Claude, ChatGPT and Kimi subscriptions behind one local endpoint for Hermes Agent
Related guides: How to install Hermes Agent