# Codex CLI 0.173.0 — shared MCP connections and hooks that can block tools

> Codex CLI shares MCP connections by default and gives hooks and admins more control over what runs.

- Org: OpenAI
- Date: 2026-12-02
- Category: tool
- Source: https://github.com/openai/codex/releases/tag/rust-v0.173.0
- Canonical page: https://ai-tldr.dev/releases/openai-codex-cli-0-173/

## In short

Codex CLI 0.173.0 shares MCP connections by default, lets command and MCP tool hooks block a tool when a check fails, adds an admin switch for daemon updates and lets custom status lines align left, center or right.

## What it is

Shared MCP connections are now the default in Codex CLI 0.173.0, and the agent also supports older local MCP servers that expect `initialize` as their first request. Custom status lines can align items left, center or right, or spread them across the terminal width.

## How it works

Synchronous command and MCP tool hooks can set `onFailure` to `block`, so a failed `PreToolUse` check stops the tool from running instead of letting it continue. Administrators can block scheduled and manual daemon updates with `features.daemon_updates = false` in a managed `requirements.toml` or local MDM policy, and Codex finds OAuth endpoints published by a config server when `config_server.oauth` is left out.

## Why it matters

Teams that use hooks as safety gates get a hard stop when a check fails, and managed fleets can pin the Codex daemon version. Bug fixes in this release keep pasted image attachments alive after the original file moves, and refresh sidebar previews when a file changes on disk.

## Who it's for

developers and admins who run the Codex agent in the terminal

## Try it

npm i -g @openai/codex@0.173.0

## Links

- [Release Notes](https://github.com/openai/codex/releases/tag/rust-v0.173.0)
- [Repository](https://github.com/openai/codex)
