---
agent:
  instructions: "Search published articles with space-separated keywords. All terms must occur in the article text. Results are Markdown excerpts with canonical links, newest first."
  endpoint: "https://www.zaihua.news/.well-known/search?q={query}"
  method: "GET"
  documentation: "https://www.zaihua.news/docs/api/#agent-search"
---

# 🤖 OpenAI Codex 支持自定义第三方模型提供者

Source: https://www.zaihua.news/article/42016/

[返回新闻流](https://www.zaihua.news/)
2026年6月17日 · 21:58 · [在花新闻](https://www.zaihua.news/about/)

# OpenAI Codex 支持自定义第三方模型提供者

OpenAI Codex 现在允许用户通过自定义模型提供者接入第三方模型。只需在配置文件中定义提供者名称、接口地址和 API 密钥，即可使用 OpenAI 代理、本地 Ollama、Mistral 等外部模型。

官方文档详细列出了 Amazon Bedrock、Azure 等提供者的配置方式，并支持命令行直接覆盖部分设置，方便在终端开发环境中快速切换模型。

[OpenAIDevs](https://developers.openai.com/codex/config-advanced)

🌸 [在花频道](http://t.me/ZaiHuaPd) · [备用频道](https://t.me/zaihuatg) · [投稿通道](http://t.me/ZaiHuabot)

https://cdn.zaihua.news/main/42016/AQADoAtrG9C_mEV-.jpg

[上一条 利用 AI 造谣小米被西安警方破获，4 人被刑拘](https://www.zaihua.news/article/42015/)[下一条 印度临时封锁 Telegram 应对作弊，VPN 注册量激增 150%](https://www.zaihua.news/article/42017/)
