Skip to content

[codex] Allow self-hosted Honcho without API key#3482

Closed
cameronbergh wants to merge 1 commit intoNousResearch:mainfrom
cameronbergh:codex/honcho-base-url-pr
Closed

[codex] Allow self-hosted Honcho without API key#3482
cameronbergh wants to merge 1 commit intoNousResearch:mainfrom
cameronbergh:codex/honcho-base-url-pr

Conversation

@cameronbergh
Copy link
Copy Markdown
Contributor

What changed

  • treat a configured Honcho base_url as sufficient to activate Honcho integration paths
  • stop requiring an API key when Hermes is pointed at a self-hosted Honcho deployment
  • update status and doctor messaging to reflect base_url-only self-hosted usage

Why

Self-hosted Honcho can be reachable by base URL without an API key, but Hermes previously treated that setup as disabled. These checks now allow self-hosted deployments to work without fake credentials.

User impact

Hermes CLI, gateway, doctor, and Honcho activation checks now work correctly for self-hosted Honcho setups configured with a base URL and no API key.

Validation

  • python3 -m py_compile cli.py gateway/run.py hermes_cli/doctor.py honcho_integration/cli.py run_agent.py

teknium1 added a commit that referenced this pull request Mar 29, 2026
Self-hosted Honcho on localhost doesn't require authentication, but
both the activation gates and the SDK client required an API key.

Combined fix from three contributor PRs:
- Relax all 8 activation gates to accept (api_key OR base_url) as
  valid credentials (#3482 by @cameronbergh)
- Use 'local' placeholder for the SDK client when base_url points to
  localhost/127.0.0.1/::1 (#3570 by @ygd58)

Files changed: run_agent.py (2 gates), cli.py (1 gate),
gateway/run.py (1 gate), honcho_integration/cli.py (2 gates),
hermes_cli/doctor.py (2 gates), honcho_integration/client.py (SDK).

Co-authored-by: cameronbergh <cameronbergh@users.noreply.github.com>
Co-authored-by: ygd58 <ygd58@users.noreply.github.com>
Co-authored-by: devorun <devorun@users.noreply.github.com>
teknium1 added a commit that referenced this pull request Mar 29, 2026
Self-hosted Honcho on localhost doesn't require authentication, but
both the activation gates and the SDK client required an API key.

Combined fix from three contributor PRs:
- Relax all 8 activation gates to accept (api_key OR base_url) as
  valid credentials (#3482 by @cameronbergh)
- Use 'local' placeholder for the SDK client when base_url points to
  localhost/127.0.0.1/::1 (#3570 by @ygd58)

Files changed: run_agent.py (2 gates), cli.py (1 gate),
gateway/run.py (1 gate), honcho_integration/cli.py (2 gates),
hermes_cli/doctor.py (2 gates), honcho_integration/client.py (SDK).

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

Merged via #3644 — your gate relaxation approach was the core of the combined fix. Thanks @cameronbergh!

@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