Skip to content

fix(honcho): support base_url for local instances in setup and identity commands#2619

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

fix(honcho): support base_url for local instances in setup and identity commands#2619
ygd58 wants to merge 1 commit into
NousResearch:mainfrom
ygd58:fix/honcho-base-url-local-instance

Conversation

@ygd58

@ygd58 ygd58 commented Mar 23, 2026

Copy link
Copy Markdown
Contributor

Fixes #2613

Problem

Local Honcho instances using base_url instead of an API key couldn't use hermes honcho setup or hermes honcho identity — both required an API key and exited early.

Additionally, base_url from the host block was not read (only root-level baseUrl was checked, not base_url snake_case).

Fix

honcho_integration/client.py:

  • Read base_url and baseUrl from both host block and root level (snake_case + camelCase)

honcho_integration/cli.py:

  • Added _resolve_base_url() helper
  • Added _is_configured() helper (API key OR base_url)
  • cmd_setup(): allow continuing without API key if base_url is configured
  • cmd_identity(): use _is_configured() instead of _resolve_api_key() only

@teknium1

Copy link
Copy Markdown
Contributor

Thanks for the contribution, @ygd58!

Closing this as stale. The honcho_integration/ module was moved to plugins/memory/honcho/ in the pluggable memory provider refactor (#4623). The paths this PR modifies no longer exist on main. Honcho is now a memory plugin under plugins/memory/honcho/.

If you want to revisit this for the refactored code on current main, please open a new PR rebased on main targeting the current file layout. Your authorship will be preserved through cherry-pick if we salvage any of your work.

@ygd58

ygd58 commented Apr 21, 2026

Copy link
Copy Markdown
Contributor Author

Thanks @teknium1! Rebased and updated for the new plugins/memory/honcho/ layout in #13439.

Applied the same fix to plugins/memory/honcho/cli.py — added _resolve_base_url(), _is_configured() helpers and updated cmd_identity() to accept base_url-only configs.

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

Labels

None yet

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