Skip to content

fix(honcho): use placeholder API key for local instances that don't require auth#3639

Closed
teknium1 wants to merge 1 commit intomainfrom
hermes/hermes-ab59de22
Closed

fix(honcho): use placeholder API key for local instances that don't require auth#3639
teknium1 wants to merge 1 commit intomainfrom
hermes/hermes-ab59de22

Conversation

@teknium1
Copy link
Copy Markdown
Contributor

Summary

The Honcho SDK requires a non-empty api_key string, but self-hosted local instances (localhost/127.0.0.1/::1) don't need authentication. This uses "local" as a placeholder when no key is configured and the base URL points to a local server.

Salvaged from #3570 by @ygd58 with authorship preserved. #3560 by @devorun is a duplicate.

Changes

  • honcho_integration/client.py: detect local URLs, use placeholder key

Test plan

python -m pytest tests/ -n0 -q -k honcho  # 145 passed

…equire auth

The Honcho SDK requires a non-empty api_key string, but local
instances (localhost/127.0.0.1/::1) don't need authentication.
Use 'local' as a placeholder when no key is configured and the
base URL points to a local server.

Co-authored-by: ygd58 <ygd58@users.noreply.github.com>
@teknium1
Copy link
Copy Markdown
Contributor Author

Superseded — building a combined fix from #3570, #3560, and #3482 that covers all upstream gates.

@teknium1 teknium1 closed this Mar 29, 2026
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.

2 participants