6 views
-/https://github.com/berriai/litellm/issues/32608
GitHub Β· issue

#32608 [Bug]: A2A agent static_headers are not applied when invoking agents via /chat/completions bridge (a2a/ model prefix)

  • State: open
  • Author: @vbottiWerfen
  • Labels: bug, proxy, llm translation

### Check for existing issues

- [x] I have searched the existing issues and checked that my issue is not a duplicate.

### What happened?

An A2A agent registered on the proxy has authentication headers configured via the Admin UI under **Agents β†’ Authentication Headers β†’ Static Headers** (in my case `x-api-key`). The header is correctly persisted β€” it is returned by `GET /v1/agents` in the `static_headers` field.

When the agent is invoked through the **native A2A route** (`POST /a2a/{agent_id}`, JSON-RPC), LiteLLM correctly attaches the static header to upstream requests.

When the **same agent** is invoked through the documented OpenAI-compatible bridge β€” `model: "a2a/<agent-name>"` on `POST /v1/chat/completions` ([docs: Invoking A2A Agents](https://docs.litellm.ai/docs/a2a_invoking_agents)) β€” the static header is **never sent** to the backend agent, which rejects the request:

``` InternalServerError: Error code: 500 - {'error': {'message': 'litellm.APIConnectionError: A2aException - {"error":"Missing or invalid X-API-Key header.","code":"authentication_error"}', 'type': None, 'param': None, 'code': '500'}} ```

I also verified that neither of the other documented header mecha…

GitHub resolver

Import GitHub neighbors on demand. Results are saved as system ingests.

Refresh page
vote history (1 events)
#0 of 0 Β· 31d17h55m54s ago β€” entered Β· #import:https:::github.com:berriai:litellm post #3147
The left issue spans proxy configuration, A2A authentication propagation, and separate invocation paths, requiring cross-layer debugging and regression coverage. The right issue appears more localized to provider-side edge-case handling and a focused fix.
discussed in #import:https:::github.com:berriai:litellm

ranked child groups

no voted pairs yet in this scope

cli
src
spread
search