Answer: To deny a provider everywhere, add a statement to opencode.jsonc with action "provider.use", resource set to the provider (e.g., "openai"), and effect "deny". A denied provider disappears from the catalog and model selection even when it has valid credentials. Status: Overdue (check was due 2026-11-20T13:37:12Z and has not succeeded) Entry: tool/opencode/permissions-and-security/deny-provider-with-policy Revision: 1 Digest: sha256:f58153dbd1fdde58 (changes whenever the content changes) Timeline: Created: 2026-11-13T03:58:00Z Last changed: 2026-11-13T03:58:00Z Last verified: 2026-11-19T13:37:12Z Next check: 2026-11-20T13:37:12Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of action | provider.use | [1] | 2026-11-19 resource | openai | [1] | 2026-11-19 effect | deny | [1] | 2026-11-19 config file | opencode.jsonc | [1] | 2026-11-19 legacy key | experimental.policies | [1] | 2026-11-19 Sources: [1] opencode. "Policies | OpenCode". https://opencode.ai/docs/policies/ Role: primary. Accessed: 2026-11-19T13:37:12Z Quote: ""action" : "provider.use"" (Supports: action) Quote: ""resource" : "openai"" (Supports: resource) Quote: ""effect" : "deny"" (Supports: effect) Quote: "Configure Deny one provider everywhere by adding a statement to opencode.jsonc" (Supports: config file) Quote: "Earlier releases read policies from experimental.policies ." (Supports: legacy key) Snapshot SHA-256: 10daccd13493aca93e51252a533c9575eaa3d44fd7f9411e720da3fda8f96e00 (captured 2026-11-13T03:58:00Z) Verification: Method: Automated extraction from [1] with deepseek-flash (JSON output, thinking disabled). Every value was checked by code to appear verbatim in a quoted passage of [1]. On this check the text of [1] was unchanged since 2026-11-13T03:58:00Z, so the values verified then were kept. Cross-check: not-available at 2026-11-19T13:37:12Z. No independent second source is configured for this entry Last successful check: 2026-11-19T13:37:12Z Last attempt: 2026-11-19T13:37:12Z Notes and limitations: Extracted automatically from a single official source (section "Configure"). Related: https://latestn.com/tool/opencode/permissions-and-security/inference-api-authentication How do I authenticate requests to the opencode Inference API? https://latestn.com/tool/opencode/permissions-and-security/permission-actions-and-effects What permission actions and effects does opencode support, such as allow, ask, and deny? https://latestn.com/tool/opencode/permissions-and-security/permission-rule-matching-order How does opencode decide which permission rule applies when multiple rules match? https://latestn.com/tool/opencode/permissions-and-security/configure-shell-permission-rules How do I configure opencode permissions to ask before shell commands but allow git status and block git push? https://latestn.com/tool/opencode/permissions-and-security/console-model-list-authentication How do I authenticate a request to the opencode Console model list API? https://latestn.com/tool/opencode/permissions-and-security/default-agent-permissions How do I set default permissions for opencode agents? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-13T03:58:00Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/opencode/permissions-and-security/deny-provider-with-policy/latest Challenge this entry: Open challenges: None How: If a value here is wrong or out of date, send what is wrong and a link to evidence. Challenges are queued and checked against the evidence; they do not change the entry by themselves. If the entry changes as a result, the change log says so. Form: https://latestn.com/dispute/tool/opencode/permissions-and-security/deny-provider-with-policy POST: https://latestn.com/dispute/tool/opencode/permissions-and-security/deny-provider-with-policy with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/opencode/permissions-and-security/deny-provider-with-policy?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I deny a provider in opencode using policies? Revision 1, last verified 2026-11-19T13:37:12Z. https://latestn.com/tool/opencode/permissions-and-security/deny-provider-with-policy (accessed 2026-11-21T10:03:18Z). @misc{LatestN_tool_opencode_permissions_and_security_deny_provider_with_policy_r1, title = {How do I deny a provider in opencode using policies?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/opencode/permissions-and-security/deny-provider-with-policy}}, note = {Revision 1; digest sha256:f58153dbd1fdde58; last verified 2026-11-19T13:37:12Z; accessed 2026-11-21T10:03:18Z} } Reuse: License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) Attribution: Copying and adapting are allowed, including commercially, if you credit LatestN and link to the entry you used. Each entry ends with a ready-made citation. URL: https://latestn.com/tool/opencode/permissions-and-security/deny-provider-with-policy