You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Are custom provider headers from config expected to work in v1.2.x? #15306
"provider headers from config not applied to fetch requests"
However, based on the current implementation in packages/opencode/src/provider/provider.ts, it looks like those headers may not be reaching the final request layer.
My Questions
Are custom headers from config expected to work in v1.2.x?
Looking at the current implementation in v1.2.15, provider-level headers from config (e.g. provider.options.headers or provider.models.<model>.headers) appear to be merged into internal options, but they do not seem to be consistently applied to the final fetch layer.
Before implementing a local workaround, I’d like to clarify the intended design direction:
Are config-defined provider headers meant to propagate to the underlying HTTP request?
Or is header control expected to be handled entirely by the provider SDK layer instead?
Understanding the architectural intent here would help us determine whether:
This is a regression,
An unsupported use case,
Or something that may be formally supported in a future release.
Appreciate any guidance on the intended behavior going forward 🙏
For me, I'm looking for a way to send the AWS Guardrail information fromOpenCode. In ClaudeCode you set this up by including the following in your settings file.
Example for docker-compose or environment variables
Activity
github-actions commentedon Feb 27, 2026
This issue might be a duplicate of existing issues. Please check:
provider.ts, same symptom). This issue was closed and references the same PR fix: provider headers from config not applied to fetch requests #11788 you mention.dreamjxw commentedon Feb 27, 2026
Thanks for the reference 👍
I’ve reviewed #11789 and PR #11788.
Looking at the current implementation in v1.2.15, provider-level headers from config (e.g.
provider.options.headersorprovider.models.<model>.headers) appear to be merged into internal options, but they do not seem to be consistently applied to the final fetch layer.Before implementing a local workaround, I’d like to clarify the intended design direction:
Understanding the architectural intent here would help us determine whether:
Appreciate any guidance on the intended behavior going forward 🙏
esiemiat commentedon Mar 15, 2026
For me, I'm looking for a way to send the AWS Guardrail information fromOpenCode. In ClaudeCode you set this up by including the following in your settings file.
Example for docker-compose or environment variables
ANTHROPIC_CUSTOM_HEADERS=X-Amzn-Bedrock-GuardrailIdentifier: <Your_ID>,X-Amzn-Bedrock-GuardrailVersion:
rekram1-node commentedon Jun 23, 2026
Automated: closing question issues.
GitHub Issues are for bug reports and feature requests only — questions / support are no longer tracked here.
If this is a bug or feature request, please open a new issue with the appropriate template.