Skip to content

fix(honcho): CLI credential guard accepts self-hosted baseUrl-only configs - #15362

Closed
erosika wants to merge 1 commit into
NousResearch:mainfrom
erosika:fix/honcho-cli-self-hosted-baseurl-guard
Closed

fix(honcho): CLI credential guard accepts self-hosted baseUrl-only configs#15362
erosika wants to merge 1 commit into
NousResearch:mainfrom
erosika:fix/honcho-cli-self-hosted-baseurl-guard

Conversation

@erosika

@erosika erosika commented Apr 24, 2026

Copy link
Copy Markdown
Contributor

Adopts #14881 by @sasha-id (Alexander Yususpov) with original authorship preserved.

hermes honcho status and other credential-check commands reject self-hosted Honcho configs that have only baseUrl / HONCHO_BASE_URL set without an API key. Self-hosters on local no-auth instances can't use the CLI today.

_resolve_api_key() now returns the sentinel "local" when no key is configured but a base URL is present. The existing client already skips auth for local base URLs; this makes the CLI guard consistent with that behavior.

  • plugins/memory/honcho/cli.py: +12 -2
  • tests/honcho_plugin/test_cli.py: +39 (5 new tests)

232/232 honcho_plugin tests pass locally.

_resolve_api_key() only checks for apiKey / HONCHO_API_KEY, so all
CLI subcommands (identity --show, status, migrate, etc.) bail with
"No API key configured" on self-hosted instances that use baseUrl
without an API key.

Return "local" when baseUrl or HONCHO_BASE_URL is set, matching the
client.py behavior that already handles this case for the SDK.

Tested on: macOS, self-hosted Honcho (Docker, localhost:8000).
@erosika

erosika commented Apr 24, 2026

Copy link
Copy Markdown
Contributor Author

Superseded by #15381 (consolidated).

@erosika erosika closed this Apr 24, 2026
@erosika
erosika deleted the fix/honcho-cli-self-hosted-baseurl-guard branch April 24, 2026 22:11
@alt-glitch alt-glitch added type/bug Something isn't working P2 Medium — degraded but workaround exists comp/plugins Plugin system and bundled plugins comp/cli CLI entry point, hermes_cli/, setup wizard labels Apr 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp/cli CLI entry point, hermes_cli/, setup wizard comp/plugins Plugin system and bundled plugins P2 Medium — degraded but workaround exists type/bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants