Answer: To use OpenCode Go models with Codex, set the model provider to "opencode-go" with base_url "https://opencode.ai/inference/go/openai/v1", env_key "OPENCODE_API_KEY", and wire_api "responses", using a key from a workspace with a Go subscription. Status: Confirmed Entry: tool/opencode/models/use-go-models-with-codex Revision: 1 Digest: sha256:ca6fd2ac407007b9 (changes whenever the content changes) Timeline: Created: 2026-11-13T03:57:05Z Last changed: 2026-11-13T03:57:05Z Last verified: 2026-11-20T13:46:19Z Next check: 2026-11-21T13:46:19Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of model | kimi-k3 | [1] | 2026-11-20 model provider | opencode-go | [1] | 2026-11-20 provider name | OpenCode Go | [1] | 2026-11-20 base URL | https://opencode.ai/inference/go/openai/v1 | [1] | 2026-11-20 env key | OPENCODE_API_KEY | [1] | 2026-11-20 wire API | responses | [1] | 2026-11-20 config file | ~/.codex/config.toml | [1] | 2026-11-20 Sources: [1] opencode. "Codex | OpenCode". https://opencode.ai/docs/console/harnesses/codex/ Role: primary. Accessed: 2026-11-20T13:46:19Z Quote: "model = "kimi-k3"" (Supports: model) Quote: "model_provider = "opencode-go"" (Supports: model provider) Quote: "name = "OpenCode Go"" (Supports: provider name) Quote: "base_url = "https://opencode.ai/inference/go/openai/v1"" (Supports: base URL) Quote: "env_key = "OPENCODE_API_KEY"" (Supports: env key) Quote: "wire_api = "responses"" (Supports: wire API) Quote: "~/.codex/config.toml" (Supports: config file) 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:09Z, so the values verified then were kept. Cross-check: not-available at 2026-11-20T13:46:19Z. No independent second source is configured for this entry Last successful check: 2026-11-20T13:46:19Z Last attempt: 2026-11-20T13:46:19Z Notes and limitations: Extracted automatically from a single official source (section "Go"). Related: https://latestn.com/tool/opencode/permissions-and-security/authenticate-console-api How do I authenticate requests to the opencode Console API? 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/models/select-models How do I select or list models in Pi with OpenCode? 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/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-13T03:57:05Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/opencode/models/use-go-models-with-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/models/use-go-models-with-codex POST: https://latestn.com/dispute/tool/opencode/models/use-go-models-with-codex with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/opencode/models/use-go-models-with-codex?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I use opencode Go models with Codex? Revision 1, last verified 2026-11-20T13:46:19Z. https://latestn.com/tool/opencode/models/use-go-models-with-codex (accessed 2026-11-21T09:53:03Z). @misc{LatestN_tool_opencode_models_use_go_models_with_codex_r1, title = {How do I use opencode Go models with Codex?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/opencode/models/use-go-models-with-codex}}, note = {Revision 1; digest sha256:ca6fd2ac407007b9; last verified 2026-11-20T13:46:19Z; accessed 2026-11-21T09:53:03Z} } 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/models/use-go-models-with-codex