Codex CLI v0.165 makes Vertex AI a built-in provider and turns memories on by default

Codex Published:

v0.165.0 adds a Vertex AI provider set with model_provider = "gcp" and enables memories by default for fresh profiles. Plus mid-conversation effort changes.

Verified on Oct 30, 2026 Verified with Codex CLI v0.165.0 These tools change quickly. Please also check the latest official documentation. How articles are researched and verified
Contents
  1. Vertex AI is now a built-in provider
  2. Memories are on by default for fresh profiles
  3. Reasoning effort can change mid-conversation
  4. Security and the other fixes
  5. Summary

Codex CLI v0.165.0 brings six features and six fixes. Two of them touch configuration: a built-in Vertex AI provider and memories on by default.

For both, the release notes are ahead of the official configuration reference. Check the behaviour on your own machine before relying on either.

KEY POINT

What this article covers

  • The Vertex AI provider configured with model_provider = "gcp"
  • Why the release notes and the configuration reference disagree about memories
  • Changing reasoning effort partway through a conversation

Vertex AI is now a built-in provider

The release notes read: "Added a built-in Google Cloud Vertex AI provider, configured with model_provider = "gcp"." Using Vertex AI previously meant writing your own model_providers entry; now it is treated as built in.

gcp is not in the configuration reference yet

As of 2026-10-30, the reference lists only three built-in provider IDs: "Built-in provider IDs (openai, ollama, and lmstudio) are reserved and cannot be overridden." There is no mention of gcp or Vertex AI. The ID appears only in the release notes.

Where you write the setting matters. The configuration reference states that model_provider and model_providers are ignored in a project-local .codex/config.toml.

# Put this in ~/.codex/config.toml; a project-local copy is ignored
model_provider = "gcp"

The ignored keys include openai_base_url, chatgpt_base_url, model_provider, model_providers, notify, profile, profiles and otel. Provider, notification and telemetry keys belong in user-level config. For defining a custom provider, the fields are model_providers.<id>.name, .base_url, .env_key and others, covered in Configuring Codex with config.toml.

GPT-6.1 Terra was also added to the model catalogs.

Memories are on by default for fresh profiles

The release notes read: "Enabled memory v2 by default for fresh profiles and added support for importing external-agent memories into it."

The two sources disagree on the default

The configuration reference still describes features.memories as "Enable Memories (off by default)" (checked 2026-10-30). The term "memory v2" does not appear in the memories documentation at all. Since the documents do not settle which applies, check the actual state with /memories.

The mechanism itself is documented.

AspectDetail
Storage~/.codex/memories/, holding summaries, durable entries, recent inputs and evidence
When they are writtenIn the background once a chat has been idle long enough, not at the end of every chat
What is skippedActive and short-lived sessions; secrets are redacted from generated memory fields
ThrottlingA background pass is skipped when your rate-limit remaining percentage is below the configured threshold
Per-chat control/memories chooses whether the chat can use existing memories and whether it feeds future ones

The documentation is also explicit about the limits of relying on them: "Keep required team guidance in AGENTS.md or checked-in documentation. Treat memories as a helpful recall layer, not as the only source for rules that must always apply."

On the files themselves, it says "Treat these files as generated state" — fine to inspect when troubleshooting or before sharing your Codex home directory, but not a control surface to edit by hand.

Reasoning effort can change mid-conversation

Another entry reads: "Enabled reasoning effort changes during a conversation by default for supported models." On models that support it, you can change the depth after a conversation has started.

Switching through /model already existed; what changed is that mid-conversation changes are enabled by default. For the values and the ways to set them, see How to change reasoning effort in Codex CLI.

The session picker also gained a repository filter, and the agent command center now groups by directory, which makes sessions easier to find across linked worktrees.

Security and the other fixes

There are six fixes. The security one reads: "Closed a marketplace URL validation gap that could allow Git to connect to a different host than the one checked against allowed patterns."

The remaining fixes that change behaviour:

  • Fresh TUI sessions now honour the server's default approval reviewer when no explicit override is given
  • TUI preferences stay editable and immediately applicable when execution settings are invalid
  • Queued agent messages no longer restart work after an interrupt or a switch to Plan mode
  • When a provider reports that a model was not found, Codex stops retrying and preserves the error message

For the previous release, see Codex CLI v0.164 adds /presets and inline /permissions arguments.

Summary

  • A built-in Vertex AI provider is configured with model_provider = "gcp"
  • gcp could not be confirmed in the configuration reference, which still lists only openai, ollama and lmstudio
  • model_provider is ignored in a project-local .codex/config.toml; put it in user-level config
  • Memories are said to be on by default for fresh profiles, while the reference still says off by default
  • A marketplace URL validation gap that could redirect Git to another host was closed

FAQ

How do I configure Vertex AI?
The release notes give model_provider = "gcp". As of 2026-10-30 the official configuration reference does not mention gcp, and lists only openai, ollama and lmstudio as built-in provider IDs.
Are memories on by default now?
The sources disagree. The release notes say memory v2 is enabled by default for fresh profiles, while the configuration reference still describes features.memories as off by default (checked 2026-10-30).
Where are memories stored?
Under ~/.codex/memories/, holding summaries, durable entries, recent inputs and supporting evidence. The docs say to treat these as generated state rather than edit them by hand.

Primary sources

This article was drafted by AI from official documentation and reviewed by the site operator before publishing. Found a mistake? Let us know via the contact page.