# NousResearch/hermes-agent · Alibaba and Anthropic auth and config fixes

## Open now

- Nothing open on GitHub.

A mix of bug fixes targeting authentication and configuration issues for two providers: Alibaba/DashScope (model name handling, 401 auth errors, agent identity injection) and Anthropic (OAuth autodiscovery, token setup flow, stale entry pruning).

## TL;DR

- 4 member(s): 0 open issue(s), 1 closed issue(s), 0 open PR(s), 2 merged PR(s), 1 PR(s) closed without merging.
- A fix was merged to main in PR #2332. Verify it addresses your case.
- **Recommended:** read PR #2332 (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: `resolved` · deciding PR(s): `pr-2332`. This is distinct from the fix status above. Weigh it yourself.

## How this cluster was grouped

- Link evidence (`STRUCTURAL_SPANNING`): every member is connected by structural evidence: shared changed files, or a closing/superseded reference.
- Pairwise link density `0.50`: 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

- #1739: \[Bug\]: Can't use alibaba codingplan w,th hermes agent

## Prior & competing PRs

- **#2314: fix(agent): inject model identity for Alibaba Coding Plan**. merged to main · fix tier `verified`
  - maintainer direction: category `merged`
  - files: `run_agent.py`
  - fix hunks:
  - `run_agent.py`

    ```diff
    @@ -2329,6 +2329,18 @@ def _build_system_prompt(self, system_message: str = None) -> str:
                 timestamp_line += f"\nProvider: {self.provider}"
             prompt_parts.append(timestamp_line)
     
    +        # Alibaba Coding Plan API always returns "glm-4.7" as model name regardless
    +        # of the requested model. Inject explicit model identity into the system prompt
    +        # so the agent can correctly report which model it is (workaround for API bug).
    +        if self.provider in ("alibaba-coding-plan", "alibaba-coding-plan-anthropic"):
    +            _model_short = self.model.split("/")[-1] if "/" in self.model else self.model
    +            prompt_parts.append(
    +                f"You are powered by the model named {_model_short}. "
    +                f"The exact model ID is {self.model}. "
    +                f"When asked what model you are, always answer based on this information, "
    +                f"not on any model name returned by the API."
    +            )
    +
             platform_key = (self.platform or "").lower().strip()
             if platform_key in PLATFORM_HINTS:
                 prompt_parts.append(PLATFORM_HINTS[platform_key])
    ```
- **#2332: fix: Alibaba/DashScope: preserve model dots, fix 401 auth, fix dead provider check (salvage #1748 + fix #2314)**. merged to main · fix tier `verified`
  - maintainer direction: category `merged`
  - files: `agent/anthropic_adapter.py`, `run_agent.py`, `tests/test_anthropic_adapter.py`
- **#1748: Fix Alibaba/DashScope: preserve model dots (qwen3.5-plus) and fix 401 auth (Fixes #1739)**. closed without merge
  - maintainer direction: category `merged_via`; implication `superseded`; refs `#2332`, `#2314`

## Fix status

- Merged to main in PR #2332 (cited above). No release data is tracked. Verify downstream.
- Fix last verified (merged) `2026-03-21`. This confirmation is old and may be out of date (a revert/reopen would not have invalidated it here); re-verify.
- Subsystem: `agent`
