Repository navigation
Description
Summary
The Honcho memory plugin's HonchoClientConfig.from_global_config() reads the self-hosted base URL from the wrong key in ~/.honcho/config.json. The plugin reads raw.get("baseUrl") and raw.get("base_url") from the top level of the config dict, but the Honcho SDK's native config format (which is what Claude Desktop and other Honcho-native tools write) nests the URL at raw["endpoint"]["baseUrl"].
The plugin silently falls through to the SDK default when neither top-level key is present, which routes to https://api.honcho.dev (the public Honcho cloud) instead of the user's self-hosted container. From the user's perspective, the Honcho integration appears to be working (no error at startup, no error in tool returns), but every honcho_* call hits the production cloud with the user's local workspace_id (e.g. "personal") which doesn't exist there, and the tools return empty data.
The fail-open startup path makes the symptom worse: a user who has just set up a self-hosted Honcho container and configured the plugin to use it sees a working memory feature with no data, and has no way to discover the requests are going to the wrong server unless they turn on DEBUG logging and trace the base_url resolution.
This is the same root cause for users migrating from Claude Desktop (which writes the SDK-native endpoint.baseUrl format) and for users who followed the Honcho self-hosted setup docs and pasted an example config from the Honcho project (same format).
Impact
Observed on:
- Self-hosted Honcho Docker container (Honcho server v3.0.9) on
http://localhost:8500 ~/.honcho/config.jsonin the SDK-native format withendpoint.baseUrlset~/.hermes/config.yamlwithmemory.provider: honchohoncho-ai==2.0.1Python SDK (Hermes' pinned version)
Failure mode: every honcho_* tool call returns "No result from Honcho" with no error surfaced. The plugin's startup path succeeds, peer() and session() construct fine, and tool calls actually return — just empty data because they hit the wrong server with a workspace ID that doesn't exist on the production cloud.
This affects every self-hosted Honcho user who configures the plugin via ~/.honcho/config.json in the SDK-native format (the format Claude Desktop and the Honcho docs use). The misconfiguration is silent — no warning, no error, no log line at INFO level indicating the base_url was resolved to the production cloud.
Expected
The plugin should read the self-hosted base URL from any of these locations, in priority order:
raw["endpoint"]["baseUrl"](SDK-native format, what Claude Desktop writes)raw["baseUrl"](top-level camelCase)raw["base_url"](top-level snake_case)HONCHO_BASE_URLenv var- SDK default (
https://api.honcho.devforenvironment=production)
A user who has the URL in any of these locations should not silently fall through to the production cloud.
Repro
-
Start a self-hosted Honcho Docker container on
http://localhost:8500(port doesn't matter for this bug). -
Configure
~/.honcho/config.jsonin the SDK-native format that Claude Desktop writes:{ "apiKey": "local-self-hosted", "peerName": "your-peer", "workspace": "personal", "enabled": true, "endpoint": { "baseUrl": "http://localhost:8500" } } -
In
~/.hermes/config.yaml, setmemory.provider: honcho. -
Start a Hermes session and call
honcho_profile(or any of the otherhoncho_*tools). -
Observe: tool returns "No result from Honcho" with no error.
-
With
logging.level=DEBUG, observe that the plugin loggedbase_url: https://api.honcho.dev(production cloud), not thehttp://localhost:8500you configured.
The local Honcho container is healthy and reachable (curl http://localhost:8500/health returns {"status":"ok"}); the plugin simply isn't sending requests to it.
Environment
- Hermes version: 0.16.0
- Honcho server (self-hosted Docker): v3.0.9
- honcho-ai Python SDK: 2.0.1
- OS: macOS 26.5
- Python: 3.11
Debug Report
Report https://paste.rs/oGgJ5
agent.log https://paste.rs/ukaLU
desktop.log https://paste.rs/6otx9
(Generated via hermes debug share. No gateway.log because this is a desktop-app install, not a gateway install. Pastes auto-delete in 6 hours.)
Workaround
Add "baseUrl" at the top level of ~/.honcho/config.json (sibling to the existing endpoint object):
{
"apiKey": "local-self-hosted",
"peerName": "your-peer",
"workspace": "personal",
"enabled": true,
"baseUrl": "http://localhost:8500",
"endpoint": {
"baseUrl": "http://localhost:8500"
}
}This works because the plugin reads raw.get("baseUrl") from the top level — but it's not the right fix; users shouldn't have to duplicate the URL or know which config format the plugin reads.
Related
- Honcho: "one-time" memory file migration re-runs for every new session, flooding the deriver with duplicate facts #43731 (Honcho: memory file migration re-runs per session) — same component, different bug. If the reporter is also self-hosted, they may be hitting both bugs.
- Honcho: injected skill invocation text syncs to memory as user speech, polluting the deriver #43733 (Honcho: skill invocation text syncs to memory as user speech) — same component, different bug. Same self-hosted-deployment caveat.
- [Bug]: Honcho memory plugin silently fails against self-hosted Honcho v3.x server (honcho-ai SDK pinned to v2) #43775 (closed) — original report had wrong premise (claimed v2→v3 SDK migration needed; that doesn't exist). The "silent empty" symptom is the same as this issue, but the root cause is config routing, not SDK compatibility.
Root Cause
The fix is a 1-2 line change to plugins/memory/honcho/client.py:454-459.
Current code:
base_url = (
raw.get("baseUrl")
or raw.get("base_url")
or os.environ.get("HONCHO_BASE_URL", "").strip()
or None
)Proposed code:
_base_url_native = (
(raw.get("endpoint") or {}).get("baseUrl")
if isinstance(raw.get("endpoint"), dict) else None
)
base_url = (
_base_url_native
or raw.get("baseUrl")
or raw.get("base_url")
or os.environ.get("HONCHO_BASE_URL", "").strip()
or None
)This adds the SDK-native endpoint.baseUrl path at the top of the resolution chain, so users with Claude-Desktop-format config files work out of the box without manual editing. Existing users are unaffected — the new path is only consulted when the existing paths return None.
Secondary improvements worth considering:
- Also accept
HONCHO_ENDPOINTenv var as a fallback toHONCHO_BASE_URL(some users set the SDK's native env var name). - Add the resolved
base_urlto the existing INFO log line atclient.py:826-829so future misconfigurations are visible at default log level.
Proposed Fix
- In
plugins/memory/honcho/client.py:454-459, addendpoint.baseUrlto the resolution chain as the highest-priority source. - Optionally also accept
HONCHO_ENDPOINTenv var as a fallback toHONCHO_BASE_URL. - Optionally add the resolved
base_urlto the existing INFO log line atclient.py:826-829.
Happy to open a PR with all three. Will reference this issue in the PR description.
Activity
cfdude commentedon Jun 10, 2026
Update: PR opened. Fix landed in #43803 — 1-2 line change to
plugins/memory/honcho/client.py:454-459plus 4 new unit tests, 1 INFO log improvement, all on branchfix/honcho-v3-sdk-compat. Verified end-to-end against a self-hosted Honcho 3.0.9 Docker container:peer.chat()andscope.create()now succeed against the local container instead of silently routing to the production cloud. Reviewers welcome. — RobGottZ commentedon Jul 29, 2026
Summary
One PR addresses #43800. #43803 fixes the reported routing cause by resolving the SDK-native
endpoint.baseUrlbefore legacy top-level keys and environment fallbacks, but its current diff also includes unrelated Discord/Slack reasoning-suppression changes.Related pull requests
best fix— (+411/-21) — fixes: The Honcho diff directly corrects the root cause by reading nestedendpoint.baseUrl, adds precedence and malformed-block tests, and improves production-cloud fallback logging. The visiblekeep_openreview on fix(memory): read endpoint.baseUrl from Honcho config; accept HONCHO_URL #43803 remains justified because the diff also hard-codes unrelated Discord/Slack behavior, leavesHONCHO_ENDPOINTunsupported when the config file is missing or unreadable, and contains a stray README debug line; the focused Honcho fix should be salvaged after those issues are resolved.Suggested consolidation
Merge #43803 after narrowing it to the Honcho configuration fix, removing the README artifact and unrelated gateway changes, and either supporting
HONCHO_ENDPOINTthroughfrom_env()with a missing-config test or dropping that advertised fallback. This follows, rather than overrides, thekeep_openreview on #43803; there are no duplicate PRs to close.Complex graph
flowchart LR classDef open fill:#dbeafe,stroke:#1d4ed8,color:#1e3a8a classDef merged fill:#dcfce7,stroke:#15803d,color:#14532d classDef closed fill:#e5e7eb,stroke:#6b7280,color:#1f2937 classDef unverified fill:#f3f4f6,stroke:#9ca3af,color:#374151 classDef best stroke-width:3px,stroke:#b45309 classDef target stroke-width:3px,stroke:#4338ca I43800(["issue #43800 (open)"]) P43803["PR #43803 (open)"] P43803 -->|best fix| I43800 class I43800 open class I43800 target class P43803 open class P43803 best click I43800 "https://github.com/NousResearch/hermes-agent/issues/43800" click P43803 "https://github.com/NousResearch/hermes-agent/pull/43803"Graph: solid arrow = fixes / best fix, dashed arrow = partial or unverified (see edge label); boxed group = PRs duplicating each other; amber border = best fix; indigo border = target; gray node = closed or no verify verdict yet (state tag in the node label).
Cross-PR triage: Reviewed 1 pull request and 1 issue in this complex. Each diff was read against this issue; Assessment working set: 23 kB of PR diffs, 12 kB of issue/PR text, 4 kB of discussion (4 comments), 2 verify verdicts. verdicts reflect diff content, not PR titles. Part of an automated triage batch.
GottZ commentedon Jul 31, 2026
Delta since our previous triage comment
Since the previous comment, @cfdude rebuilt #43803 as a focused two-file Honcho change and explicitly addressed all three contributor-review concerns. The current diff removes the unrelated gateway changes and README artifact, replaces the incorrect
HONCHO_ENDPOINTclaim with the SDK-supportedHONCHO_URL, and covers that variable through the missing-config fallback path.Changed pull requests
best fix— (+108/-3) — best available fix; request renewed contributor review: Despite the visiblekeep_openreview on fix(memory): read endpoint.baseUrl from Honcho config; accept HONCHO_URL #43803, the current diff now directly resolvesendpoint.baseUrl, honorsHONCHO_URLin both config and missing-config paths, adds targeted precedence and malformed-input tests, and no longer contains the reviewed gateway or README scope.Suggested consolidation
The recommendation changes from conditional cleanup to keeping #43803 open for renewed maintainer review as the best existing fix; its backlog lane does not currently support a direct merge recommendation.
Complex graph unchanged since our previous triage comment.
Cross-PR triage: Reviewed 1 pull request and 1 issue in this complex. Each diff was read against this issue; Assessment working set: 7 kB of PR diffs, 11 kB of issue/PR text, 6 kB of discussion (5 comments), 2 verify verdicts. verdicts reflect diff content, not PR titles. Part of an automated triage batch.
fix(memory): read endpoint.baseUrl from Honcho config; accept HONCHO_URL
fix(memory): read endpoint.baseUrl from Honcho config; accept HONCHO_URL
fix(memory): read endpoint.baseUrl from Honcho config; accept HONCHO_URL
fix(memory): read endpoint.baseUrl from Honcho config; accept HONCHO_URL
fix(memory): read endpoint.baseUrl from Honcho config; accept HONCHO_URL
fix(memory): read endpoint.baseUrl from Honcho config; accept HONCHO_URL