{
  "schemaVersion": "1.0",
  "schemaUrl": "https://www.yingxueyuan.cn/ai-directory.schema.json#/$defs/newsContentDocument",
  "name": "Codex CLI 0.165.0：接入 Vertex AI，更新 GPT-6.1 Terra 与记忆功能｜映雪网资讯机器可读正文",
  "description": "单篇 AI 资讯结构化内容，含正文、逐节引用来源和编辑分析边界。",
  "siteUrl": "https://www.yingxueyuan.cn",
  "lastContentUpdate": "2026-10-30",
  "articles": [
    {
      "id": "openai-codex-cli-0-165-vertex-ai-gpt-6-1-terra-2026-10-27",
      "contentUrl": "https://www.yingxueyuan.cn/ai-content/news/openai-codex-cli-0-165-vertex-ai-gpt-6-1-terra-2026-10-27.json",
      "category": "AI 编程与开发",
      "title": "Codex CLI 0.165.0：接入 Vertex AI，更新 GPT-6.1 Terra 与记忆功能",
      "description": "OpenAI Codex 官方发布记录显示，0.165.0 增加 Google Cloud Vertex AI 提供方与 GPT-6.1 Terra 模型目录，并改进会话筛选、Agent 面板分组和新配置的记忆功能。",
      "summary": "OpenAI Codex 0.165.0 于 2026 年 10 月 27 日发布：CLI 新增内置 Google Cloud Vertex AI 提供方（配置标识 `gcp`），更新 GPT-6.1 Terra 模型目录，并为会话选择器加入仓库筛选、按目录分组 Agent 面板。新建配置默认启用 memory v2，也支持导入外部 Agent 记忆。官方同时修复了模型不存在时继续重试的问题。GitHub 当前将 0.165.0 标为 Latest；0.166.0-alpha 属预览版本。Vertex AI 的项目、凭据、地域和计费仍按 Google Cloud 当前规则核验；Codex 与 OpenAI 服务的账号/地区资格也应单独确认。",
      "searchAliases": [
        "Codex CLI 0.165.0",
        "Codex 0.165 Vertex AI",
        "Codex 配置 Google Cloud Vertex AI",
        "Codex GPT-6.1 Terra",
        "Codex memory v2 默认开启",
        "Codex 0.166.0-alpha 是正式版吗"
      ],
      "publishedAt": "2026-10-27",
      "updatedAt": "2026-10-30",
      "url": "https://www.yingxueyuan.cn/news/openai-codex-cli-0-165-vertex-ai-gpt-6-1-terra-2026-10-27/",
      "relatedTools": [
        {
          "name": "OpenAI Codex",
          "url": "https://www.yingxueyuan.cn/tools/openai-codex/",
          "kind": "ai-product-entry"
        }
      ],
      "relatedGuides": [
        {
          "title": "编码 Agent 怎么选？本机协作、云端改代码与审查流程",
          "url": "https://www.yingxueyuan.cn/docs/choose-coding-agent/"
        }
      ],
      "source": {
        "name": "OpenAI Codex 官方 GitHub Release 0.165.0",
        "url": "https://github.com/openai/codex/releases/tag/rust-v0.165.0"
      },
      "sources": [
        {
          "label": "OpenAI Codex 官方 GitHub Release 0.165.0",
          "url": "https://github.com/openai/codex/releases/tag/rust-v0.165.0"
        },
        {
          "label": "OpenAI Codex CLI 官方文档",
          "url": "https://developers.openai.com/codex/cli"
        },
        {
          "label": "Google Cloud Vertex AI 文档",
          "url": "https://cloud.google.com/vertex-ai/docs"
        },
        {
          "label": "OpenAI ChatGPT 支持国家与地区",
          "url": "https://help.openai.com/en/articles/7947663-chatgpt-supported-countries"
        }
      ],
      "author": {
        "@type": "Organization",
        "@id": "https://www.yingxueyuan.cn/#editorial-team",
        "name": "映雪网编辑部",
        "url": "https://www.yingxueyuan.cn/editorial-policy/",
        "parentOrganization": {
          "@id": "https://www.yingxueyuan.cn/#organization"
        }
      },
      "publisher": {
        "@type": "Organization",
        "@id": "https://www.yingxueyuan.cn/#organization",
        "name": "映雪园智能科技",
        "alternateName": "映雪网",
        "brand": {
          "@type": "Brand",
          "@id": "https://www.yingxueyuan.cn/#brand-yingxuewang",
          "name": "映雪网",
          "url": "https://www.yingxueyuan.cn/"
        },
        "url": "https://www.yingxueyuan.cn/company/"
      },
      "sections": [
        {
          "id": "vertex-provider",
          "heading": "Codex CLI 可配置 Google Cloud Vertex AI",
          "detailsUrl": "https://www.yingxueyuan.cn/news/openai-codex-cli-0-165-vertex-ai-gpt-6-1-terra-2026-10-27/#vertex-provider",
          "paragraphs": [
            "0.165.0 为 Codex CLI 增加内置 Google Cloud Vertex AI 提供方，发布记录给出的配置标识为 `model_provider = \"gcp\"`。这是 Codex CLI 的模型提供方选项，不代表 Codex Cloud 自动改用 Vertex AI，也不表示任意 Google Cloud 项目已经开通所需模型。"
          ],
          "bullets": [
            "按 Codex CLI 当前配置文档设置提供方和模型，并确认命令行版本已更新。",
            "在 Google Cloud 项目中核对 Vertex AI API、凭据、目标模型、配额和计费。",
            "先用非生产仓库验证认证、模型响应与工具权限，再迁移常用工作流。"
          ],
          "sources": [
            {
              "label": "OpenAI Codex 官方 GitHub Release 0.165.0",
              "url": "https://github.com/openai/codex/releases/tag/rust-v0.165.0"
            },
            {
              "label": "OpenAI Codex CLI 官方文档",
              "url": "https://developers.openai.com/codex/cli"
            }
          ],
          "editorialNote": false
        },
        {
          "id": "model-and-agent-navigation",
          "heading": "模型目录与会话导航同步更新",
          "detailsUrl": "https://www.yingxueyuan.cn/news/openai-codex-cli-0-165-vertex-ai-gpt-6-1-terra-2026-10-27/#model-and-agent-navigation",
          "paragraphs": [
            "此版本把 GPT-6.1 Terra 加入模型目录；会话选择器增加仓库筛选，Agent command center 按目录分组，便于在关联工作树中定位会话。发布记录还称，支持的模型默认可在对话中调整推理 effort；是否可选取决于当前模型及运行环境。"
          ],
          "sources": [
            {
              "label": "OpenAI Codex 官方 GitHub Release 0.165.0",
              "url": "https://github.com/openai/codex/releases/tag/rust-v0.165.0"
            }
          ],
          "editorialNote": false
        },
        {
          "id": "memory-and-preview",
          "heading": "新配置默认使用 memory v2；预览版本另行区分",
          "detailsUrl": "https://www.yingxueyuan.cn/news/openai-codex-cli-0-165-vertex-ai-gpt-6-1-terra-2026-10-27/#memory-and-preview",
          "paragraphs": [
            "官方发布说明称，新建配置默认启用 memory v2，并支持将外部 Agent 的记忆导入该功能。记忆导入可能带入其他 Agent 生成的内容，使用前应检查其来源和内容。GitHub Releases 同时展示 0.166.0-alpha 预览构建；本条记录的是标为 Latest 的稳定版 0.165.0，不把 alpha 的变化混入正式版说明。"
          ],
          "sources": [
            {
              "label": "OpenAI Codex 官方 GitHub Release 0.165.0",
              "url": "https://github.com/openai/codex/releases/tag/rust-v0.165.0"
            }
          ],
          "editorialNote": false
        },
        {
          "id": "availability-and-scope",
          "heading": "地区、账号与云端资格要分开核对",
          "detailsUrl": "https://www.yingxueyuan.cn/news/openai-codex-cli-0-165-vertex-ai-gpt-6-1-terra-2026-10-27/#availability-and-scope",
          "paragraphs": [
            "本文根据 Codex 官方 Release 与 CLI 文档于 2026 年 10 月 28 日核对。Vertex AI 的区域、服务、项目资格与费用以 Google Cloud 当前设置为准；使用 OpenAI 账号或服务的地区资格须按 OpenAI 官方政策单独核对。映雪网未登录 Google Cloud、安装或运行 0.165.0，也未测试大陆网络及账号访问。"
          ],
          "sources": [
            {
              "label": "OpenAI Codex 官方 GitHub Release 0.165.0",
              "url": "https://github.com/openai/codex/releases/tag/rust-v0.165.0"
            },
            {
              "label": "OpenAI Codex CLI 官方文档",
              "url": "https://developers.openai.com/codex/cli"
            },
            {
              "label": "Google Cloud Vertex AI 文档",
              "url": "https://cloud.google.com/vertex-ai/docs"
            },
            {
              "label": "OpenAI ChatGPT 支持国家与地区",
              "url": "https://help.openai.com/en/articles/7947663-chatgpt-supported-countries"
            }
          ],
          "editorialNote": true
        }
      ]
    }
  ]
}
