Answer: Restricted API keys must stay within the creating key's permissions and can't include This account's API keys; a key with that permission can create and revoke keys for its own service account only, and requests outside a key's permissions return HTTP 403. Status: Confirmed Entry: tool/opencode/permissions-and-security/restricted-key-limitations Revision: 2 Digest: sha256:cb2289df6386e38d (changes whenever the content changes) Timeline: Created: 2026-11-13T03:56:44Z Last changed: 2026-11-20T13:45:48Z (Out-of-scope response: — → HTTP 403) Last verified: 2026-11-20T13:45:48Z Next check: 2026-11-21T13:45:48Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of Restricted key requirement | New keys must be Restricted | [1] | 2026-11-20 Scope limitation | stay within the creating key’s permissions | [1] | 2026-11-20 Excluded permission | can’t include This account’s API keys | [1] | 2026-11-20 Key creation scope | create and revoke keys for its own service account only | [1] | 2026-11-20 Out-of-scope response | HTTP 403 | [1] | 2026-11-20 Sources: [1] opencode. "API Overview | OpenCode". https://opencode.ai/docs/console/api/ Role: primary. Accessed: 2026-11-20T13:45:48Z Quote: "New keys must be Restricted , stay within the creating key’s permissions, and can’t include This account’s API keys ." (Supports: Restricted key requirement, Scope limitation, Excluded permission) Quote: "A key with it can create and revoke keys for its own service account only." (Supports: Key creation scope) Quote: "Requests outside a key’s permissions return HTTP 403 ." (Supports: Out-of-scope response) Snapshot SHA-256: 53241b3beb9dea4fd288ae0f07746d51111901cb8ec59c765794cdcc83740cd2 (captured 2026-11-19T13:35:39Z) 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-19T13:35:40Z, so the values verified then were kept. Cross-check: not-available at 2026-11-20T13:45:48Z. No independent second source is configured for this entry Last successful check: 2026-11-20T13:45:48Z Last attempt: 2026-11-20T13:45:48Z Notes and limitations: Extracted automatically from a single official source (section "Limitations"). Related: 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/skill-permissions How do I control or troubleshoot skill permissions in opencode? 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/opencode/permissions-and-security/providers-api-authentication How do I authenticate requests to the opencode Console Providers API? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-20T13:45:48Z | changed | Out-of-scope response: — → HTTP 403 | [1] 2026-11-20T13:45:48Z | changed | Key creation scope: — → create and revoke keys for its own service account only | [1] 2026-11-20T13:45:48Z | changed | Excluded permission: — → can’t include This account’s API keys | [1] 2026-11-20T13:45:48Z | changed | Scope limitation: — → stay within the creating key’s permissions | [1] 2026-11-20T13:45:48Z | changed | Restricted key requirement: — → New keys must be Restricted | [1] 2026-11-20T13:45:48Z | changed | Personal keys restriction: no API key can create or revoke personal API keys → — | [1] 2026-11-20T13:45:48Z | changed | Out-of-permission response: HTTP 403 → — | [1] 2026-11-20T13:45:48Z | changed | Scope of key creation: its own service account only → — | [1] 2026-11-20T13:45:48Z | changed | New key requirement: Restricted → — | [1] 2026-11-13T03:56:44Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/opencode/permissions-and-security/restricted-key-limitations/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/restricted-key-limitations POST: https://latestn.com/dispute/tool/opencode/permissions-and-security/restricted-key-limitations with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/opencode/permissions-and-security/restricted-key-limitations?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). What are the limitations of restricted API keys in opencode? Revision 2, last verified 2026-11-20T13:45:48Z. https://latestn.com/tool/opencode/permissions-and-security/restricted-key-limitations (accessed 2026-11-21T10:00:26Z). @misc{LatestN_tool_opencode_permissions_and_security_restricted_key_limitations_r2, title = {What are the limitations of restricted API keys in opencode?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/opencode/permissions-and-security/restricted-key-limitations}}, note = {Revision 2; digest sha256:cb2289df6386e38d; last verified 2026-11-20T13:45:48Z; accessed 2026-11-21T10:00:26Z} } 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/restricted-key-limitations