The Codex Changelog
All Episodes
Transparent TCP Routing in Codex CLI 0.171.0 Linux Sandboxes

Transparent TCP Routing in Codex CLI 0.171.0 Linux Sandboxes

0:00|0:00

We break down opt-in transparent TCP routing in Codex CLI 0.171.0, covering how the bundled TCP stack and TUN interface route native Linux clients through the managed SOCKS proxy without client-side configuration. Plus, we cover quality-of-life fixes for permission profiles, TOML config diagnostics, the TypeScript SDK, and macOS release pruning.


Chapter 1

Transparent TCP Routing for Linux Sandboxes

James Turner

If you have ever tried running a native TCP client inside a Linux sandbox and watched it fail because it had no idea how to talk to a proxy, this update is for you. Thanks to Jellypod AI for sponsoring this episode of The Codex Changelog. Today we are looking at Codex CLI version 0.171.0, which shipped on November 20, 2026, and specifically pull request 61372. It introduces opt in transparent TCP routing for Linux sandboxes, and it solves a pretty annoying networking bottleneck.

James Turner

Here is what actually changed. Previously, if you ran a native TCP client inside a Linux sandbox, that client needed to implement its own proxy support to reach managed network destinations. If the tool did not respect proxy environment variables or speak SOCKS natively, you were kind of stuck. With PR 61372, Codex CLI adds a new flag called dash dash transparent tcp to the Linux sandbox command. On top of that, if you are running codex exec server, it now exposes two new flags: dash dash linux sandbox transparent tcp and dash dash tcp upstream proxy.

James Turner

Let us talk about how this works under the hood, because the architecture is actually pretty clean. When you enable transparent TCP routing, Codex spins up a bundled TCP stack, a private TUN interface, and a DNS stub inside the sandbox. Any native IPv4 or IPv6 connection your client makes gets intercepted at that TUN interface and routed automatically through Codex's attributed managed SOCKS proxy. Your client thinks it is just opening a normal socket, no proxy configuration required on the client side.

James Turner

Even better, original hostnames are preserved for proxy policy checks. That means your network rules still see the actual domain name being requested, not just a resolved IP address. And if a native socket closes while a connection is still waiting for approval, Codex automatically cancels that pending approval connection. It keeps things tidy and prevents stale approval prompts from hanging around.

James Turner

Now, how do you actually use it? If you are invoking the Linux sandbox command directly, you pass dash dash transparent tcp. If you are using codex exec server, you pass dash dash linux sandbox transparent tcp. And if you want to enforce a mandatory HTTP CONNECT next hop with zero direct fallback, you add dash dash tcp upstream proxy on codex exec server. That last part is important: there is NO direct fallback. If that upstream proxy is unavailable, the connection will fail rather than bypass the proxy.

James Turner

Before you flip this on in production, there are a few caveats and system requirements to watch out for. Transparent TCP routing requires private network and PID namespaces, private procfs, system bwrap, which is bubblewrap, and access to slash dev slash net slash tun. If your container or host environment restricts any of those, it is not going to work. Also, Codex will reject incompatible launcher options and untrusted proxy ports right at startup, so double check your sandbox configuration if you hit an immediate error.

Chapter 2

Quality of Life Fixes and Main Branch Updates

James Turner

Beyond the headline networking feature, there are several smaller quality of life updates from 0.171.0 and the main branch between November 20 and November 23 that are worth knowing about. First up, in 0.171.0, PR 61195 fixes an annoying issue with permission profiles when you change your working directory. Previously, changing directories rebuilt permission profiles through the legacy sandbox policy. Now, your active profile and workspace roots are preserved, while runtime workspace roots update for the new directory. It still denies writes to dot git slash config and your previous workspace, so your safety boundaries stay intact.

James Turner

Next, on the main branch on November 23, PR 63377 fixed a subtle project config diagnostics bug. If your project config had an unknown key sitting right before an invalid setting, like an invalid tui dot vim mode default, deserializing the effective config directly could mask the actual type error you needed to fix. Codex now reuses the TOML validation deserializer when diagnosing effective config layers, with ignored field path collection disabled, so the real error still surfaces.

James Turner

If you use the TypeScript SDK, PR 62884 landed on November 21. The WebSearchMode type now accepts indexed alongside cached. At the same time, codex exec now tracks whether an explicit web search setting matches the effective mode after applying configuration requirements. And for macOS users, PR 62648 on November 20 fixed standalone release pruning. If you have GNU coreutils stat shadowing slash usr slash bin slash stat on your PATH, the installer now explicitly calls the system stat for device checks before pruning old releases.

James Turner

Finally, just a quick note on pre release activity: 0.173.0 alpha 1 through 0.173.0 alpha 4 were tagged on November 20 and 21, alongside 0.172.0 alpha 2.1. Plenty of movement on the main branch, so keep an eye on your local installs. That is it for today. Go try out dash dash transparent tcp if you are running native Linux tools in a sandbox, and we will catch you on the next episode.