Answer: You authenticate by replacing with a service account key created in Console, sent as an Authorization: Bearer header. Console also reads the key from x-api-key, api-key, or x-goog-api-key. Status: Check failed Entry: tool/opencode/permissions-and-security/providers-api-authentication Revision: 1 Digest: sha256:703507c490861e19 (changes whenever the content changes) Timeline: Created: 2026-11-13T03:56:48Z Last changed: 2026-11-13T03:56:48Z Last verified: 2026-11-19T13:35:47Z Last attempt: 2026-11-20T13:45:58Z (failed) Next check: 2026-11-20T14:45:58Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of Auth header | Authorization: Bearer | [1] | 2026-11-19 Token source | a service account key created in Console | [1] | 2026-11-19 Alternate header | x-api-key | [1] | 2026-11-19 Sources: [1] opencode. "Providers API | OpenCode". https://opencode.ai/docs/console/api/providers/ Role: primary. Accessed: 2026-11-19T13:35:47Z Quote: "Authorization: Bearer " (Supports: Auth header) Quote: "Replace with a service account key created in Console." (Supports: Token source) Quote: "Console also reads the key from x-api-key , api-key , or x-goog-api-key" (Supports: Alternate header) Snapshot SHA-256: d62b42145f5ea4e438ba52eb75e9a1c944217aa6a30a0cbb93811a77734636fc (captured 2026-11-19T13:35:47Z) 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]. Cross-check: not-available at 2026-11-19T13:35:47Z. No independent second source is configured for this entry Last successful check: 2026-11-19T13:35:47Z Last attempt: 2026-11-20T13:45:58Z (failed) Notes and limitations: Extracted automatically from a single official source (section "Authentication"). Related: https://latestn.com/tool/opencode/permissions-and-security/restricted-key-limitations What are the limitations of restricted API keys in opencode? https://latestn.com/tool/opencode/permissions-and-security/revoke-api-key How do I revoke an opencode API key? https://latestn.com/tool/opencode/permissions-and-security/send-verify-identity-token How do I send and verify an identity token for opencode providers? 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/policies-vs-permissions How do opencode policies differ from permissions? https://latestn.com/tool/opencode/permissions-and-security/policy-matching-and-order How do opencode policies match resources and in what order are they evaluated? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-20T13:45:58Z | check-failed | Extraction did not pass verification: section "Authentication" not found in the source (the page may have been reorganized) | — 2026-11-13T03:56:48Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/opencode/permissions-and-security/providers-api-authentication/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/providers-api-authentication POST: https://latestn.com/dispute/tool/opencode/permissions-and-security/providers-api-authentication with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/opencode/permissions-and-security/providers-api-authentication?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I authenticate requests to the opencode Console Providers API? Revision 1, last verified 2026-11-19T13:35:47Z. https://latestn.com/tool/opencode/permissions-and-security/providers-api-authentication (accessed 2026-11-21T09:54:16Z). @misc{LatestN_tool_opencode_permissions_and_security_providers_api_authentication_r1, title = {How do I authenticate requests to the opencode Console Providers API?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/opencode/permissions-and-security/providers-api-authentication}}, note = {Revision 1; digest sha256:703507c490861e19; last verified 2026-11-19T13:35:47Z; accessed 2026-11-21T09:54:16Z} } 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/providers-api-authentication