Answer: Every request to the Console API authenticates with an API key sent as a bearer token, using the header "Authorization: Bearer oc_sk_...". Status: Confirmed Entry: tool/opencode/permissions-and-security/authenticate-console-api Revision: 2 Digest: sha256:16c54068b89fe221 (changes whenever the content changes) Timeline: Created: 2026-11-13T03:56:43Z Last changed: 2026-11-19T13:35:39Z (Key requirement: — → Every request authenticates with an API key.) Last verified: 2026-11-20T13:45:47Z Next check: 2026-11-21T13:45:47Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of Authentication method | Bearer oc_sk_... | [1] | 2026-11-20 Authorization header | Authorization: Bearer oc_sk_... | [1] | 2026-11-20 Key requirement | Every request authenticates with an API key. | [1] | 2026-11-20 Sources: [1] opencode. "API Overview | OpenCode". https://opencode.ai/docs/console/api/ Role: primary. Accessed: 2026-11-20T13:45:47Z Quote: "Send a key as a bearer token. Copy Copied Failed Authorization: Bearer oc_sk_..." (Supports: Authentication method) Quote: "Authorization: Bearer oc_sk_..." (Supports: Authorization header) Quote: "Every request authenticates with an API key." (Supports: Key requirement) 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:39Z, so the values verified then were kept. Cross-check: not-available at 2026-11-20T13:45:47Z. No independent second source is configured for this entry Last successful check: 2026-11-20T13:45:47Z Last attempt: 2026-11-20T13:45:47Z Notes and limitations: Extracted automatically from a single official source (section "API Overview"). Related: 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/opencode/models/set-default-model How do I set a default model in opencode? https://latestn.com/tool/opencode/models/switch-models-in-session How do I switch models in a Hermes session with OpenCode? https://latestn.com/tool/opencode/models/use-go-models-with-codex How do I use opencode Go models with Codex? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-19T13:35:39Z | changed | Key requirement: — → Every request authenticates with an API key. | [1] 2026-11-19T13:35:39Z | changed | Authorization header: — → Authorization: Bearer oc_sk_... | [1] 2026-11-19T13:35:39Z | changed | Workspace header: No workspace header is needed. → — | [1] 2026-11-19T13:35:39Z | changed | Key types: Both workspace members and service accounts can have API keys. → — | [1] 2026-11-19T13:35:39Z | changed | Header example: Authorization: Bearer oc_sk_... → — | [1] 2026-11-19T13:35:39Z | changed | Authentication method: Authorization: Bearer oc_sk_... → Bearer oc_sk_... | [1] 2026-11-13T03:56:43Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/opencode/permissions-and-security/authenticate-console-api/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/authenticate-console-api POST: https://latestn.com/dispute/tool/opencode/permissions-and-security/authenticate-console-api with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/opencode/permissions-and-security/authenticate-console-api?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I authenticate requests to the opencode Console API? Revision 2, last verified 2026-11-20T13:45:47Z. https://latestn.com/tool/opencode/permissions-and-security/authenticate-console-api (accessed 2026-11-21T09:53:04Z). @misc{LatestN_tool_opencode_permissions_and_security_authenticate_console_api_r2, title = {How do I authenticate requests to the opencode Console API?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/opencode/permissions-and-security/authenticate-console-api}}, note = {Revision 2; digest sha256:16c54068b89fe221; last verified 2026-11-20T13:45:47Z; accessed 2026-11-21T09:53:04Z} } 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/authenticate-console-api