openclaw - 💡(How to fix) Fix feat: per-agent and per-cron-job provider request headers [2 pull requests]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…

Custom headers for LLM provider requests can only be configured globally under models.providers.<provider>.request.headers. There's no mechanism to set per-agent or per-cron-job provider overrides.

Root Cause

Custom headers for LLM provider requests can only be configured globally under models.providers.<provider>.request.headers. There's no mechanism to set per-agent or per-cron-job provider overrides.

Fix Action

Fixed

RAW_BUFFERClick to expand / collapse

Summary

Custom headers for LLM provider requests can only be configured globally under models.providers.<provider>.request.headers. There's no mechanism to set per-agent or per-cron-job provider overrides.

Requested Behavior

  • agents.list[].providers.<provider>.request.headers — per-agent provider request header overrides
  • payload.providers.<provider>.request.headers — per-cron-job header overrides (headers only, no auth/proxy/TLS for security)
  • Three-level precedence: global models.providers → agent-level → cron job-level

Use Cases

  • Different agents using different API keys or beta headers for the same provider
  • Cron jobs that need provider-specific headers without affecting the agent's default config
  • Agent-level Anthropic-Beta or custom X- headers for multi-tenant setups

Related Issues

  • #54177 — "[Feature]: How to pass custom header"
  • #48379 — "Per-agent X-Title header for OpenRouter"

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING