Answer: Add Console as a model provider in ~/.codex/config.toml and make it the default, setting model_provider = "opencode" with the [model_providers.opencode] block using base_url "https://opencode.ai/inference/openai/v1" and env_key "OPENCODE_API_KEY". Then create a personal API key and export it as OPENCODE_API_KEY. Status: Confirmed Entry: tool/opencode/integrations/configure-console-provider-in-codex Revision: 2 Digest: sha256:6959641905e178fe (changes whenever the content changes) Timeline: Created: 2026-11-13T03:57:03Z Last changed: 2026-11-20T13:46:18Z (export command: — → export OPENCODE_API_KEY= "oc_sk_...") Last verified: 2026-11-20T13:46:18Z Next check: 2026-11-21T13:46:18Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of config file | ~/.codex/config.toml | [1] | 2026-11-20 model | gpt-6.1-sol | [1] | 2026-11-20 model provider | opencode | [1] | 2026-11-20 provider name | OpenCode Console | [1] | 2026-11-20 base URL | https://opencode.ai/inference/openai/v1 | [1] | 2026-11-20 env key | OPENCODE_API_KEY | [1] | 2026-11-20 wire API | responses | [1] | 2026-11-20 export command | export OPENCODE_API_KEY= "oc_sk_..." | [1] | 2026-11-20 Sources: [1] opencode. "Codex | OpenCode". https://opencode.ai/docs/console/harnesses/codex/ Role: primary. Accessed: 2026-11-20T13:46:18Z Quote: "Add Console as a model provider in ~/.codex/config.toml and make it the default." (Supports: config file) Quote: "model = "gpt-6.1-sol"" (Supports: model) Quote: "model_provider = "opencode"" (Supports: model provider) Quote: "name = "OpenCode Console"" (Supports: provider name) Quote: "base_url = "https://opencode.ai/inference/openai/v1"" (Supports: base URL) Quote: "env_key = "OPENCODE_API_KEY"" (Supports: env key) Quote: "wire_api = "responses"" (Supports: wire API) Quote: "export OPENCODE_API_KEY= "oc_sk_..."" (Supports: export command) Snapshot SHA-256: 4466143e8f30546ec112ac5e1055e85f78b1ee402622d07d20f0e3a38387e003 (captured 2026-11-19T13:36:10Z) 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:36:08Z, so the values verified then were kept. Cross-check: not-available at 2026-11-20T13:46:18Z. No independent second source is configured for this entry Last successful check: 2026-11-20T13:46:18Z Last attempt: 2026-11-20T13:46:18Z Notes and limitations: Extracted automatically from a single official source (section "Configure"). Related: https://latestn.com/tool/opencode/integrations/configure-opencode-provider How do I configure OpenCode Zen or OpenCode Go as the provider in Hermes? https://latestn.com/tool/opencode/integrations/connect-identity-provider How do I connect Okta or Microsoft Entra ID to opencode directory sync? https://latestn.com/tool/opencode/integrations/connect-provider-account How do I connect a provider account in opencode Console? https://latestn.com/tool/opencode/integrations/close-host-resources How do I release or close an opencode host's resources? https://latestn.com/tool/opencode/integrations/cloudflare-durable-object-sdk How do I use the opencode SDK inside a Cloudflare Durable Object? https://latestn.com/tool/opencode/integrations/cloudflare-route-outbound-requests How do I route outbound requests with the opencode Cloudflare SDK? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-20T13:46:18Z | changed | export command: — → export OPENCODE_API_KEY= "oc_sk_..." | [1] 2026-11-13T03:57:03Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/opencode/integrations/configure-console-provider-in-codex/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/configure-console-provider-in-codex POST: https://latestn.com/dispute/tool/opencode/integrations/configure-console-provider-in-codex with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/opencode/integrations/configure-console-provider-in-codex?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I configure opencode Console as a model provider in Codex? Revision 2, last verified 2026-11-20T13:46:18Z. https://latestn.com/tool/opencode/integrations/configure-console-provider-in-codex (accessed 2026-11-21T09:55:02Z). @misc{LatestN_tool_opencode_integrations_configure_console_provider_in_codex_r2, title = {How do I configure opencode Console as a model provider in Codex?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/opencode/integrations/configure-console-provider-in-codex}}, note = {Revision 2; digest sha256:6959641905e178fe; last verified 2026-11-20T13:46:18Z; accessed 2026-11-21T09:55:02Z} } 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/configure-console-provider-in-codex