Skip to content

[Bug]: Honcho plugin ignores endpoint.baseUrl in ~/.honcho/config.json, silently routes to production cloud #43800

Closed

Description

@cfdude

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.json in the SDK-native format with endpoint.baseUrl set
  • ~/.hermes/config.yaml with memory.provider: honcho
  • honcho-ai==2.0.1 Python 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:

  1. raw["endpoint"]["baseUrl"] (SDK-native format, what Claude Desktop writes)
  2. raw["baseUrl"] (top-level camelCase)
  3. raw["base_url"] (top-level snake_case)
  4. HONCHO_BASE_URL env var
  5. SDK default (https://api.honcho.dev for environment=production)

A user who has the URL in any of these locations should not silently fall through to the production cloud.

Repro

  1. Start a self-hosted Honcho Docker container on http://localhost:8500 (port doesn't matter for this bug).

  2. Configure ~/.honcho/config.json in the SDK-native format that Claude Desktop writes:

    {
      "apiKey": "local-self-hosted",
      "peerName": "your-peer",
      "workspace": "personal",
      "enabled": true,
      "endpoint": {
        "baseUrl": "http://localhost:8500"
      }
    }
  3. In ~/.hermes/config.yaml, set memory.provider: honcho.

  4. Start a Hermes session and call honcho_profile (or any of the other honcho_* tools).

  5. Observe: tool returns "No result from Honcho" with no error.

  6. With logging.level=DEBUG, observe that the plugin logged base_url: https://api.honcho.dev (production cloud), not the http://localhost:8500 you 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

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_ENDPOINT env var as a fallback to HONCHO_BASE_URL (some users set the SDK's native env var name).
  • Add the resolved base_url to the existing INFO log line at client.py:826-829 so future misconfigurations are visible at default log level.

Proposed Fix

  1. In plugins/memory/honcho/client.py:454-459, add endpoint.baseUrl to the resolution chain as the highest-priority source.
  2. Optionally also accept HONCHO_ENDPOINT env var as a fallback to HONCHO_BASE_URL.
  3. Optionally add the resolved base_url to the existing INFO log line at client.py:826-829.

Happy to open a PR with all three. Will reference this issue in the PR description.

Activity

  1. cfdude commented on Jun 10, 2026

    @cfdude
    Author

    Update: PR opened. Fix landed in #43803 — 1-2 line change to plugins/memory/honcho/client.py:454-459 plus 4 new unit tests, 1 INFO log improvement, all on branch fix/honcho-v3-sdk-compat. Verified end-to-end against a self-hosted Honcho 3.0.9 Docker container: peer.chat() and scope.create() now succeed against the local container instead of silently routing to the production cloud. Reviewers welcome. — Rob

  2. added
    type/bugSomething isn't working
    comp/pluginsPlugin system and bundled plugins
    tool/memoryMemory tool and memory providers
    P3Low — cosmetic, nice to have
    on Jun 10, 2026
  3. GottZ commented on Jul 29, 2026

    @GottZ

    This was generated by AI during triage.

    Summary

    One PR addresses #43800. #43803 fixes the reported routing cause by resolving the SDK-native endpoint.baseUrl before legacy top-level keys and environment fallbacks, but its current diff also includes unrelated Discord/Slack reasoning-suppression changes.

    Related pull requests

    Suggested consolidation

    Merge #43803 after narrowing it to the Honcho configuration fix, removing the README artifact and unrelated gateway changes, and either supporting HONCHO_ENDPOINT through from_env() with a missing-config test or dropping that advertised fallback. This follows, rather than overrides, the keep_open review 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"
    
    Loading

    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.

  4. GottZ commented on Jul 31, 2026

    @GottZ

    This was generated by AI during triage.

    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_ENDPOINT claim with the SDK-supported HONCHO_URL, and covers that variable through the missing-config fallback path.

    Changed pull requests

    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.

  5. added a commit that references this issue on Aug 3, 2026
    36e0f40
  6. added a commit that references this issue on Aug 13, 2026
    ad58854
  7. added a commit that references this issue on Aug 15, 2026
    32ef25c
  8. added a commit that references this issue on Aug 26, 2026
    34ca05e
  9. added a commit that references this issue on Aug 27, 2026
    24d3d2f
  10. added a commit that references this issue on Sep 3, 2026
    1e51e2a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3Low — cosmetic, nice to havecomp/pluginsPlugin system and bundled pluginstool/memoryMemory tool and memory providerstype/bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions