Answer: Call the provider's Console API URL directly, appending the provider's API path, and authenticate with a service account key as a Bearer token. Console swaps the token for the connection's credential before forwarding. Status: Confirmed Entry: tool/opencode/integrations/call-provider-directly Revision: 2 Digest: sha256:294d2059d7422d2b (changes whenever the content changes) Timeline: Created: 2026-11-13T03:56:49Z Last changed: 2026-11-19T13:35:50Z (Token source: — → a service account key created in Console) Last verified: 2026-11-20T13:46:01Z Next check: 2026-11-21T13:46:01Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of Provider URL | https://opencode.ai/inference/custom/ | [1] | 2026-11-20 Authentication header | Authorization: Bearer | [1] | 2026-11-20 Token source | a service account key created in Console | [1] | 2026-11-20 Chat Completions path | /chat/completions | [1] | 2026-11-20 Responses API path | /responses | [1] | 2026-11-20 Anthropic Compatible path | /messages | [1] | 2026-11-20 Google Generative AI path | /models/:generateContent | [1] | 2026-11-20 Sources: [1] opencode. "Providers API | OpenCode". https://opencode.ai/docs/console/api/providers/ Role: primary. Accessed: 2026-11-20T13:46:01Z Quote: "https://opencode.ai/inference/custom/" (Supports: Provider URL) Quote: "Authorization: Bearer " (Supports: Authentication header) Quote: "Replace with a service account key created in Console." (Supports: Token source) Quote: "Chat Completions /chat/completions" (Supports: Chat Completions path) Quote: "Responses API /responses" (Supports: Responses API path) Quote: "Anthropic Compatible /messages" (Supports: Anthropic Compatible path) Quote: "Google Generative AI /models/:generateContent" (Supports: Google Generative AI path) 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]. On this check the text of [1] was unchanged since 2026-11-19T13:35:50Z, so the values verified then were kept. Cross-check: not-available at 2026-11-20T13:46:01Z. No independent second source is configured for this entry Last successful check: 2026-11-20T13:46:01Z Last attempt: 2026-11-20T13:46:01Z Notes and limitations: Extracted automatically from a single official source (section "Providers API"). Related: https://latestn.com/tool/opencode/integrations/call-rpc How do I call an opencode plugin RPC over HTTP or from another plugin? https://latestn.com/tool/opencode/integrations/call-rpc-method How do I call an opencode RPC method over HTTP or from a plugin? https://latestn.com/tool/opencode/integrations/client-headers-requests How do I pass authentication headers or a custom fetch to the opencode client? https://latestn.com/tool/opencode/install-and-setup/v2-breaking-changes What are the breaking changes when upgrading opencode from V1 to V2? https://latestn.com/tool/opencode/integrations/add-mcp-server How do I add an MCP server to opencode? https://latestn.com/tool/opencode/integrations/build-gui-plugin-bundle How do I build the opencode GUI plugin bundle? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-19T13:35:50Z | changed | Token source: — → a service account key created in Console | [1] 2026-11-19T13:35:50Z | changed | Token type: service account key → — | [1] 2026-11-13T03:56:49Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/opencode/integrations/call-provider-directly/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/integrations/call-provider-directly POST: https://latestn.com/dispute/tool/opencode/integrations/call-provider-directly with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/opencode/integrations/call-provider-directly?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I call an opencode Console provider directly from my own tools? Revision 2, last verified 2026-11-20T13:46:01Z. https://latestn.com/tool/opencode/integrations/call-provider-directly (accessed 2026-11-21T09:53:30Z). @misc{LatestN_tool_opencode_integrations_call_provider_directly_r2, title = {How do I call an opencode Console provider directly from my own tools?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/opencode/integrations/call-provider-directly}}, note = {Revision 2; digest sha256:294d2059d7422d2b; last verified 2026-11-20T13:46:01Z; accessed 2026-11-21T09:53:30Z} } 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/integrations/call-provider-directly