# Sgme: Hermes Agent plugin

> SGME (拾光记忆) self-hosted long-term memory engine — tagged memories with provenance, per-turn recall, automatic session refinement, a skills library, wiki knowledge base, care signals, communication roles and a…

Canonical: https://hermeswatcher.com/plugins/sgme  
Tier: Community  
Official page (Nous Research): https://hermes-agent.nousresearch.com/docs/plugins/sgme  
Last updated in catalog: 2026-10-25

SGME (拾光记忆) self-hosted long-term memory engine — tagged memories with provenance, per-turn recall, automatic session refinement, a skills library, wiki knowledge base, care signals, communication roles and a three-pool task system (ideas/demands/projects), all behind one HTTP service you own. The plugin is a thin bridge: no LLM, no database, everything heavy runs in your SGME server (local or remote).

## Good to know before installing

The plugin talks only to the SGME server you configure (default http://127.0.0.1:9910, SGME_BASE_URL for a remote server), sending SGME_AGENT_KEY / SGME_ADMIN_KEY read through Hermes's secret scope; each session's user, assistant and tool messages are appended to that server and refined into memories at session end by an LLM you configure on the SGME side; its sgme_* tools let the model read and change memories, skills, wiki pages and tasks on that server and write skill packages under $HERMES_HOME/plugin-data/sgme/skills/ on the SGME host; credential names in the SGME vault can be listed, and reading a credential value into the conversation is off by default (credential_get_enabled / SGME_ENABLE_CREDENTIAL_GET); no third-party services, no telemetry.

From the plugin's catalog listing.

## How to install

1. Install it. Hermes asks for any API keys it needs (this one needs `SGME_BASE_URL`, `SGME_AGENT_KEY`, `SGME_ADMIN_KEY`, `SGME_INJECT_MODE`, `SGME_INJECT_MAX_TOKENS`, `SGME_CAPTURE_ENABLED`, `SGME_REFINE_ON_END`, `SGME_HERMES_AGENT_ID`, `SGME_HTTP_TIMEOUT`), then asks whether to turn it on.

```bash
hermes plugins install sgme
```

2. Said no? Turn it on later:

```bash
hermes plugins enable sgme
```

3. Restart Hermes so it loads the plugin.

Some plugins also need a sign-in or settings: see the official page. Memory plugins ask whether to become your memory provider instead. Steps follow the official plugins guide: https://hermes-agent.nousresearch.com/docs/user-guide/features/plugins

## Facts

- Category: Memory & notes
- Maintained by: freehul (Community)
- Needs: `SGME_BASE_URL`, `SGME_AGENT_KEY`, `SGME_ADMIN_KEY`, `SGME_INJECT_MODE`, `SGME_INJECT_MAX_TOKENS`, `SGME_CAPTURE_ENABLED`, `SGME_REFINE_ON_END`, `SGME_HERMES_AGENT_ID`, `SGME_HTTP_TIMEOUT` (API keys)
- Requires Hermes: `>=0.22.0`
- Version: 1.10.6
- In the catalog since: 2026-10-25

## Links

- [Full setup and settings (official page)](https://hermes-agent.nousresearch.com/docs/plugins/sgme)
- [Source code](https://github.com/freehul/sgme/blob/main/AI-INSTALL/README.md)
- [All plugins](https://hermeswatcher.com/plugins.md)

---

HermesWatcher is an independent guide. It is not affiliated with or endorsed by Nous Research. The [official Hermes Agent documentation](https://hermes-agent.nousresearch.com/docs) and [repository](https://github.com/NousResearch/hermes-agent) from Nous Research are the authority; each page here lists the official sources it was written from. If this site and the official docs disagree, trust the official docs. Index for agents: https://hermeswatcher.com/llms.txt
