# NousResearch/hermes-agent · Provider API mode routing and endpoint detection fixes

## Open now

- Nothing open on GitHub.

These issues and PRs address how provider plugins resolve and honor the correct API transport mode (e.g., anthropic_messages) based on endpoint URL and ProviderProfile configuration. The work covers both auto-detection of the appropriate mode from the base URL and ensuring runtime resolution does not drop explicitly configured api_mode values.

## TL;DR

- 5 member(s): 0 open issue(s), 2 closed issue(s), 0 open PR(s), 1 merged PR(s), 2 PR(s) closed without merging.
- A fix was merged to main in PR #116856. Verify it addresses your case.
- **Recommended:** read PR #116856 (and any competing PRs below) before filing. Confirm the merged change covers your symptom.

## Maintainer resolution verdict

- Internal-tracker verdict over this cluster's issue members: `partially_resolved` · deciding PR(s): `pr-116856`. This is distinct from the fix status above. Weigh it yourself.

## How this cluster was grouped

- Link evidence (`STRUCTURAL_PARTIAL`): some members are connected by structural evidence (shared changed files, or a closing/superseded reference); the rest are joined by an automated relevance judgement over their text.
- Members outside that structural core may belong to a different underlying problem.
- Pairwise link density `0.34`: the share of member pairs that carry a link, counting a structural link in full and a relevance-only link at 0.36. `1.00` means every pair is linked.

## Closed / duplicate issues

- #20145: \[FR\] Auto-switch transport to anthropic_messages when DeepSeek provider points to /anthropic endpoint
- #53054: \[Bug\]: provider plugins' ProviderProfile.api_mode dropped at runtime — anthropic_messages plugins with non-/anthropic base_url 404

## Prior & competing PRs

- **#116856: Plugin ProviderProfile.api_mode reaches the runtime transport, registered dialects included (#53054, salvage #116154 #53055)**. merged to main · fix tier `verified`
  - maintainer direction: category `merged`; implication `superseded`
  - files: `agent/agent_init.py`, `agent/transports/__init__.py`, `contributors/emails/[redacted:email]`, `hermes_cli/providers.py`, `hermes_cli/runtime_provider.py`, `tests/agent/transports/test_plugin_transport_api_mode.py`, `tools/delegate_tool_config.py`, `website/docs/developer-guide/model-provider-plugin.md`
- **#53055: fix(providers): gate plugin api_mode by endpoint (#53054)**. closed without merge
  - maintainer direction: category `superseded_by_pr`; implication `superseded`; refs `da2b6a47b93`, `2dda233946`, `#76836`, `#116856`, `#53054`, `#116856`
- **#65956: fix(providers): honor ProviderProfile.api_mode in api_mode resolution**. closed without merge
  - maintainer direction: category `implemented_elsewhere`; implication `superseded`; refs `8c8003f80b`

## Fix status

- Merged to main in PR #116856 (cited above). No release data is tracked. Verify downstream.
- Fix last verified (merged) `2026-09-20`.
- Subsystem: `agent`
