Skip to content

fix(honcho): support base_url-only config in cmd_identity for local instances#13439

Open
ygd58 wants to merge 1 commit into
NousResearch:mainfrom
ygd58:fix/honcho-base-url-local-instance-v2
Open

fix(honcho): support base_url-only config in cmd_identity for local instances#13439
ygd58 wants to merge 1 commit into
NousResearch:mainfrom
ygd58:fix/honcho-base-url-local-instance-v2

Conversation

@ygd58

@ygd58 ygd58 commented Apr 21, 2026

Copy link
Copy Markdown
Contributor

Problem

Local Honcho instances using base_url instead of an API key could not use hermes honcho identity — it required an API key and exited early with "No API key configured".

Fix

Adds to plugins/memory/honcho/cli.py:

  • _resolve_base_url() helper: reads baseUrl/base_url from host block and root level (camelCase + snake_case)
  • _is_configured() helper: returns True if either api_key OR base_url is set
  • cmd_identity(): uses _is_configured() instead of _resolve_api_key() only

Note

Rebased from #2619 to target the current plugins/memory/honcho/ layout after honcho_integration/ was moved in the pluggable memory provider refactor (#4623).

Fixes #2613

…nstances

cmd_identity() only checked _resolve_api_key(), blocking local Honcho
instances that use base_url instead of an API key (issue NousResearch#2613).

Changes to plugins/memory/honcho/cli.py:
- Add _resolve_base_url() helper: reads baseUrl/base_url from host
  block and root level (camelCase + snake_case)
- Add _is_configured() helper: returns True if api_key OR base_url
  is set — any valid auth method suffices
- cmd_identity(): use _is_configured() instead of _resolve_api_key()
  so local no-auth instances can use the command

Rebased from NousResearch#2619 to target current plugins/memory/honcho/ layout
after honcho_integration/ was moved in refactor NousResearch#4623.

Fixes NousResearch#2613
@alt-glitch alt-glitch added type/bug Something isn't working P2 Medium — degraded but workaround exists comp/plugins Plugin system and bundled plugins tool/memory Memory tool and memory providers labels Apr 22, 2026
@alt-glitch

Copy link
Copy Markdown
Collaborator

Rebased from #2619 (closed) onto current plugins/memory/honcho/ layout after pluggable memory refactor.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp/plugins Plugin system and bundled plugins P2 Medium — degraded but workaround exists tool/memory Memory tool and memory providers type/bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Local Honcho "base_url" instead of api key does not work

2 participants