# Build a Shared AI Memory for Claude Code and Hermes with Honcho

> Connect Claude Code and Hermes to shared Honcho memory. Set up a local service, align user identities, and test recall without confusing local storage with local inference.

- Author: Rihanoor Protik
- Published: Nov 8, 2026
- Category: Workflow Automation
- Canonical: https://automatorx.ai/blog/honcho-shared-ai-memory
- Hero image: https://automatorx.ai/_astro/01-hero.B85SEN7W_2jyMYX.webp
- Hero image alt: Claude Code and Hermes connect to one shared Honcho memory layer with a matching workspace and user identity.

## The short answer

You can use Honcho memory to connect Claude Code and Hermes to a shared memory backend. Point both integrations at the same Honcho API, workspace, and user peer, give each assistant its own agent peer, then test whether a preference saved in one tool can be retrieved in a fresh session of the other.

This tutorial uses a self-hosted Honcho service. Local memory storage does not automatically mean local model inference, and installing a plugin does not prove cross-tool recall works. The verification steps below check both.

## What is Honcho memory, and when is it useful?

Honcho is an open-source memory service for AI agents. It stores conversation messages and processes them into context that connected assistants can retrieve later. A workspace groups the data, a peer represents a user or agent, and a session groups a conversation.<sup>[1], [2]</sup>

Use this setup when you work across Claude Code and Hermes and want both to retrieve the same project preferences or decisions. You can keep Obsidian for notes you maintain yourself; this adds an agent memory service rather than replacing your note-taking workflow.

### Do you need Honcho if Claude Code already has memory?

Claude Code already supports instruction files and auto memory. You do not need Honcho just to keep project instructions or retain notes between Claude Code sessions. This tutorial addresses a narrower problem: making selected context available to more than one agent through a shared backend. See the [Claude Code memory documentation](https://code.claude.com/docs/en/memory) for its built-in options.

| Need | Start with |
| --- | --- |
| Stable project rules and build instructions | Your project's instruction file |
| Claude Code notes across its own sessions | Claude Code auto memory |
| Notes you want to curate and read yourself | Your existing notes or Obsidian vault |
| A shared user representation across configured agents | Honcho with matching workspace and user identity |

If you only use one assistant and its existing memory is sufficient, adding a database, worker, and model-provider configuration may not be worth the maintenance.

## How do the agents use one memory backend?

Instead of giving each assistant a separate pile of notes, connect them to one memory backend:

```text
Claude Code ─┐
             ├─ Honcho workspace: second-brain
Hermes ──────┘     ├─ user peer: tutorial-user
                   ├─ agent peers: claude, hermes
                   ├─ separate conversation sessions
                   └─ stored messages and reasoned representations
```

Honcho organizes data into workspaces, peers, sessions, and messages. Messages can be processed in the background to update representations of a peer. An integration then retrieves useful context and supplies it to an assistant. This is the missing read/write loop: merely storing notes somewhere does not automatically make an agent consult them.<sup>[1], [2]</sup>

*[Figure: Diagram of several agent tools sharing Honcho as a memory backend]*

[View figure](https://automatorx.ai/_astro/02-02-shared-memory-system-map.BBi_uBUX_1vQY0J.webp)

*Tools share context through configured integrations. Each tool needs an appropriate connector or import; the diagram does not mean the named applications automatically share history. This guide configures Claude Code and Hermes.*

A useful memory system should help with four different problems: retaining context within a session, recalling information across sessions, responding to updates, and distinguishing older information from newer information.

## Is self-hosted Honcho memory fully local?

Choose your privacy boundary before connecting real conversations. The simplest supported local setup runs the memory service on your computer, but still asks for a model-provider API key for background processing.<sup>[4], [5]</sup>

- **Local storage:** the Honcho service and database run on your machine.
- **Local inference:** the models that reason over messages and create embeddings also run on your machine. This requires additional model and endpoint configuration; it is not the default recipe taught here.
- **Cloud-backed assistants:** if retrieved memories are inserted into a cloud model's context, those memories go to that model provider too.

The documented local-stack setup requires a provider key or appropriately configured inference endpoints. Your Claude or ChatGPT subscription doesn't pay for Honcho's background processing.<sup>[4], [5]</sup>

**Cost:** budget for model API usage and storage. Self-hosted doesn't mean free.

**Safety:** use harmless test data first. Keep the service bound to loopback, do not publish an unauthenticated endpoint, and never use your memory service as a password manager. Local storage still needs access control and backups.<sup>[4], [5]</sup>

## Step 1: Check Docker, uv, Node.js, and your agents

For the local CLI route, have Docker Desktop running with Docker Compose available, a working `uv` installation, and a supported Python version. The Honcho CLI currently requires Python 3.11 or newer. Claude's integration also requires Node.js on your PATH.<sup>[5], [6]</sup>

On macOS, if `uv` is missing and you use Homebrew:

```bash
brew install uv
```

Check the required tools before continuing:

```bash
uv --version
node --version
docker --version
docker compose version
docker info
```

`docker info` should be able to contact the Docker daemon. If it cannot, start Docker Desktop and wait for its engine to become ready before attempting the Honcho setup.

You also need an already authenticated Claude Code installation and an existing Hermes installation. This workflow uses Claude Code's plugin system; Claude Desktop is not required for this setup.<sup>[6]</sup>

*[Figure: Honcho project repository and README]*

[View figure](https://automatorx.ai/_astro/03-03-honcho-repository.DACyChOS_ZwDp0d.webp)

*Project reference. The current CLI route below does not require cloning the repository.*

## Step 2: Start the self-hosted Honcho memory service

Install the CLI, then explicitly start its local stack:<sup>[4], [5]</sup>

```bash
uv tool install honcho-cli
honcho start --setup basic
honcho status
```

The setup wizard asks for a provider and its API key. Enter credentials only into the appropriate local setup interface; do not paste them into a chat, tutorial, screenshot, or repository.

The CLI starts the API, background worker/deriver, PostgreSQL, and Redis. It stores the default stack's files under `~/.honcho/profiles/local/`. Installing `honcho-cli` by itself does not start those services, and this command does not also start an MCP server.<sup>[4], [5]</sup>

**Write down the API address printed by startup or `honcho status`.** The examples below use `http://127.0.0.1:8000`; replace that address everywhere if startup selected another port. Do not copy a database or Redis address by mistake.<sup>[4]</sup>

Connect the CLI to that local API and check it:

```bash
honcho init --base-url http://127.0.0.1:8000
honcho doctor
curl --fail http://127.0.0.1:8000/health
```

`honcho init` configures the CLI's connection to Honcho. It is interactive and may ask about authentication; an auth-disabled local server can use an empty CLI API key. This is separate from the Claude plugin's non-empty placeholder described later. Initialization does not supply the server's background model credentials; those belong to the earlier setup wizard.<sup>[4]</sup>

For more explicit inference-provider choices, use the advanced setup path instead of assuming a particular model is enabled:<sup>[4]</sup>

```bash
honcho start --setup advanced
```

*[Figure: Pipeline from raw chats through reasoning into useful memory]*

[View figure](https://automatorx.ai/_astro/04-03-memory-reasoning-loop.ZKN065c2_Z126h75.webp)

*Background reasoning turns conversation records into useful peer context. The local stack includes the worker that handles this processing.<sup>[1], [4]</sup>*

## Step 3: Match the workspace and user identity

Use these example identifiers consistently:

| Setting | Claude Code | Hermes |
| --- | --- | --- |
| Honcho API origin | `http://127.0.0.1:8000` | `http://127.0.0.1:8000` |
| Workspace | `second-brain` | `second-brain` |
| User peer | `tutorial-user` | `tutorial-user` |
| Agent peer | `claude` | `hermes` |
| Observation mode | `unified` | `unified` |

The shared workspace and user peer keep both integrations talking about the same user. The distinct agent peers preserve which assistant participated. Explicitly choosing `unified` observation mode aligns the user representation used for this shared-memory example; the integrations have different defaults. It doesn't migrate conclusions generated earlier.<sup>[6], [8]</sup>

These identifiers are examples, not credentials. If you change them, update both integrations together. Do not combine unrelated people or clients under one user peer merely to simplify configuration.

## Step 4: Connect Claude Code to local Honcho

Inside Claude Code, run these plugin commands, not in your shell:<sup>[6]</sup>

```text
/plugin marketplace add plastic-labs/claude-honcho
/plugin install honcho@honcho
```

Back up any existing `~/.honcho/config.json`, then merge the following fields into it. Do not overwrite unrelated configuration or other host blocks.<sup>[6], [7]</sup>

```json
{
  "apiKey": "local-dev",
  "peerName": "tutorial-user",
  "endpoint": {
    "baseUrl": "http://127.0.0.1:8000/v3"
  },
  "hosts": {
    "claude_code": {
      "workspace": "second-brain",
      "aiPeer": "claude",
      "observationMode": "unified"
    }
  }
}
```

**Local authentication caveat:** `local-dev` above is a non-secret placeholder for an auth-disabled localhost server. The plugin's current source requires a non-empty API-key field even when connecting locally. Plugin behaviour may differ between versions; check the effective connection after restarting Claude Code. If your server enables authentication, replace it with valid Honcho credentials using the supported configuration mechanism. Never use an LLM-provider key as a substitute for a Honcho API key.<sup>[7]</sup>

Check for a stale `HONCHO_API_KEY`, which takes precedence over the file's API key, and any existing `hosts.claude_code.endpoint` block, which takes precedence over the root endpoint. The current connector reads `HONCHO_ENDPOINT` through its environment-only configuration path when no usable file configuration loads. An explicit root `peerName` takes precedence over `HONCHO_PEER_NAME`. Verify the resulting connection instead of assuming every environment variable overrides the file.<sup>[6], [7]</sup>

Fully exit Claude Code, start it again, and run:<sup>[6]</sup>

```text
/honcho:status
```

Confirm the effective address is local and the workspace and user peer match your table. If status still shows a hosted endpoint, stop before sending personal data.

## Step 5: Connect Hermes to the same Honcho memory

Use the Hermes profile you actually intend to connect. In its shell context, install the memory plugin and run the setup wizard:<sup>[3]</sup>

```bash
hermes plugins install honcho
hermes memory setup honcho
```

Choose the self-hosted option and supply the local API address, `second-brain` workspace, `tutorial-user` user peer, and a distinct AI peer such as `hermes`. If this is a separate work profile, a name such as `hermes-work` can make its identity clearer.<sup>[3], [8]</sup>

For the default Hermes profile, merge the following into `hosts.hermes` in the JSON file selected by the plugin. This example shows the host wrapper; preserve existing root fields and other hosts. For a named profile, use its profile-specific host key, such as `hosts.hermes_work` for a profile named `work`.<sup>[8]</sup>

```json
{
  "hosts": {
    "hermes": {
      "baseUrl": "http://127.0.0.1:8000",
      "workspace": "second-brain",
      "peerName": "tutorial-user",
      "aiPeer": "hermes",
      "enabled": true,
      "observationMode": "unified",
      "recallMode": "hybrid",
      "saveMessages": true
    }
  }
}
```

This is a merge example, not an instruction to replace all wizard-generated settings. Use the Honcho setup controls where available and preserve any authentication settings they create. Do not paste this into Hermes's main YAML configuration.<sup>[8]</sup>

The plugin reads the first existing configuration file in this order: `$HERMES_HOME/honcho.json`, `~/.hermes/honcho.json`, then `~/.honcho/config.json`. A profile-local file can therefore hide the shared global file. Within the selected file, host-specific settings can override root settings. Inspect the effective configuration for your active profile if the connection differs from what you expect.<sup>[8]</sup>

Check the connection, then restart existing Hermes sessions:<sup>[3], [8]</sup>

```bash
hermes memory status
hermes honcho status
```

Look for a successful connection, the intended workspace and peers, and the expected observation flags. Use the configuration path printed by status to inspect the selected JSON file and its active host block, including `baseUrl`. The current `hermes honcho status` output does not explicitly print the effective API base URL, so status alone is not endpoint verification. Confirm the local server receives the harmless test messages in the next step.<sup>[8]</sup>

## Step 6: Check ingestion and retrieval before adding hooks

An integration needs both ingestion and retrieval: save the relevant conversation, then load useful memory when a later conversation needs it. A tool the assistant can optionally call is different from a lifecycle hook that the application invokes at a particular event.<sup>[6], [8]</sup>

The supported plugins already provide integration behavior. Start with them instead of creating a second set of generic “send everything” scripts. Event names and payload formats are tool-specific; one hook file cannot simply be assumed to work across every assistant.<sup>[6], [8]</sup>

Inspect what each integration stores and injects. In particular, do not indiscriminately record every tool output: it may contain credentials, customer records, or other data that should never enter durable memory. Don't rely on automatic secret filtering to catch everything.<sup>[3], [8]</sup>

## Step 7: Test memory sharing in both directions

Run an actual persistence test before importing history or doing a personal interview.

1. In Claude Code, send: **“For this memory test, my imaginary project is Cedar Kite. I prefer its weekly report as three bullet points. Please remember that.”**
2. End the conversation normally and allow time for background processing.
3. Start a fresh Hermes conversation. Ask it to use `honcho_search` to find the Cedar Kite preference, then ask what report format it should use.
4. In Hermes, update the test preference: **“For Cedar Kite, use a short table instead of bullet points from now on.”**
5. End that conversation. Start a fresh Claude Code session and ask for the current Cedar Kite reporting preference without supplying the answer in your question.
6. Inspect the stored evidence and whether the current answer reflects the newer instruction. If it fails, use the troubleshooting table below.

Use the CLI to inspect the intended workspace as needed:<sup>[4]</sup>

```bash
honcho peer list -w second-brain
honcho session list -w second-brain
honcho doctor -w second-brain -p tutorial-user
```

**Pass criteria:** messages from both tools reach the intended workspace; a fresh session can retrieve the earlier test preference; the update is discoverable; and you have confirmed which endpoint handled the requests. Background processing is asynchronous, so an immediate miss calls for checking the worker and queue, not assuming the data is lost.<sup>[1], [4]</sup>

*[Figure: Memory explorer with peer, session and conclusions areas]*

[View figure](https://automatorx.ai/_astro/07-07-memory-explorer-redacted.afQYHgY3_LbNJ5.webp)

*The memory explorer from my own setup. Use it to inspect peers, sessions, and stored conclusions.*

## Step 8: Verify storage and inference endpoints

Check all three layers:

- **Memory API:** do both selected configurations point at your loopback endpoint, and does the local service receive the test messages?
- **Background inference:** what model and embedding endpoints did you configure for Honcho?
- **Assistant inference:** where does Claude Code or Hermes send the retrieved memory?

The first can be local while the other two are cloud-based. Describe that honestly as local memory storage with cloud inference, not “nothing ever leaves my computer.”<sup>[4], [5]</sup> The integrations' endpoint settings determine which memory service each assistant uses.<sup>[6], [8]</sup>

## Can you add Codex to the same Honcho memory?

Honcho has a Codex integration, but do not assume its standard installation is an all-local equivalent of the steps above. The current connector source registers the hosted MCP URL `https://mcp.honcho.dev`; local ingestion settings alone do not make that recall route local.<sup>[9], [11]</sup>

An entirely local arrangement needs a separately configured local MCP server and a correctly configured Codex client. Honcho documents a local MCP route, but the CLI stack by itself does not start it. Keep Codex outside the initial privacy-sensitive setup until you verify both ingestion and recall endpoints.<sup>[4], [10]</sup>

## Troubleshooting cross-tool recall

| Symptom | What to check |
| --- | --- |
| Docker connection error | Start Docker Desktop; confirm `docker info` works. |
| Local API unavailable | Read `honcho status`; check whether the port changed. |
| Health works, but no memory appears | Run `honcho doctor`; verify the background worker and model-provider configuration. |
| Claude still connects to cloud | Check endpoint configuration and environment overrides; restart and inspect `/honcho:status`. |
| Hermes ignores the shared config | Check whether the active profile has an earlier-priority `honcho.json`. |
| Both tools connect but cannot share recall | Compare workspace, user peer, observation mode, and stored sessions. |
| New preference does not appear immediately | Allow asynchronous processing, inspect evidence, and test retrieval explicitly. |
| Installation differs from this guide | Check the linked docs and installed versions; repository main and published releases can differ. |

For normal lifecycle management, `honcho stop` keeps the local data and `honcho start` restarts the stack. Avoid `honcho stop --wipe` unless you deliberately intend to delete the database volumes.<sup>[4]</sup>

## FAQ

### Can Claude Code and Hermes use the same Honcho memory?

Yes. Configure both integrations to use the same Honcho API, workspace, and user peer, with distinct agent peers. Align the observation settings for this setup, then verify ingestion and recall in fresh sessions. Installing both plugins alone does not establish sharing.

### Does Honcho replace Claude Code built-in memory?

No. Claude Code has instruction files and auto memory. Honcho adds a separate memory backend for connected agents. Use it when shared context across tools justifies the additional setup, not merely because Claude Code needs to remember a project rule.

### Does self-hosting Honcho keep all data on my computer?

Not necessarily. Storage can be local while background model requests or an assistant's inference use cloud providers. Check the memory API, background model endpoints, and assistant provider before using private data.

### Is self-hosted Honcho free to run?

Self-hosting does not guarantee zero operating cost. The documented local setup needs model-provider credentials or configured inference endpoints, and you still need storage and compute. A Claude or ChatGPT subscription should not be assumed to cover Honcho background inference.

### Why can both agents connect but not recall the same information?

Check that both use the same API endpoint, workspace, and user peer. Then inspect the observation settings, selected configuration files, stored messages, and background processing. Use harmless test data and ask explicitly for retrieval before assuming the memory is missing.

### Do I need to create cron jobs or custom hooks for this setup?

Start with the supported integrations and the background worker included in the normal local stack. Do not add duplicate conversation recorders or assume one hook format works across tools. Verify what each integration saves and retrieves before adding custom automation.

## Final thought

You are finished when both assistants can save and retrieve the harmless test data through the intended endpoint, and you understand where the data is stored and processed. Then add real information gradually, inspect the resulting memories, and correct mistaken inferences.

For broader automation decisions, see [what not to automate](https://automatorx.ai/blog/what-not-to-automate). The same rule applies here: keep a person able to inspect and correct the system.

## Sources

1. [Honcho documentation](https://docs.honcho.dev)
2. [Honcho source repository](https://github.com/plastic-labs/honcho)
3. [Hermes memory providers](https://hermes-agent.nousresearch.com/docs/user-guide/features/memory-providers)
4. [Honcho CLI reference](https://honcho.dev/docs/v3/documentation/reference/cli)
5. [Honcho self-hosting guide](https://honcho.dev/docs/v3/contributing/self-hosting)
6. [Claude Code integration](https://honcho.dev/docs/v3/guides/integrations/claude-code)
7. [Claude connector configuration source](https://github.com/plastic-labs/claude-honcho/blob/main/plugins/honcho/src/config.ts)
8. [Hermes connector source](https://github.com/plastic-labs/honcho/tree/main/hermes-plugin-honcho)
9. [Codex integration](https://honcho.dev/docs/v3/guides/integrations/codex)
10. [Honcho MCP integration](https://honcho.dev/docs/v3/guides/integrations/mcp)
11. [Codex MCP connector source](https://github.com/plastic-labs/codex-honcho/blob/main/src/connectors/mcp.ts)

[1]: https://docs.honcho.dev
[2]: https://github.com/plastic-labs/honcho
[3]: https://hermes-agent.nousresearch.com/docs/user-guide/features/memory-providers
[4]: https://honcho.dev/docs/v3/documentation/reference/cli
[5]: https://honcho.dev/docs/v3/contributing/self-hosting
[6]: https://honcho.dev/docs/v3/guides/integrations/claude-code
[7]: https://github.com/plastic-labs/claude-honcho/blob/main/plugins/honcho/src/config.ts
[8]: https://github.com/plastic-labs/honcho/tree/main/hermes-plugin-honcho
[9]: https://honcho.dev/docs/v3/guides/integrations/codex
[10]: https://honcho.dev/docs/v3/guides/integrations/mcp
[11]: https://github.com/plastic-labs/codex-honcho/blob/main/src/connectors/mcp.ts

## Need help building something like this?

I build custom AI tools, integrations, and automations for businesses. If you have a workflow in mind but need help putting it together, let’s talk.

[Book a Strategy Call](https://automatorx.ai/book)

30 minutes. No cost, no obligation.
