A side-by-side Codex CLI variant with local loop orchestration and an early Vivling companion layer for terminal workflows.
Codex VL is a fork of OpenAI Codex that
installs as codex-vl, so it can live next to the official codex command.
The fork keeps the upstream Codex runtime model and adds a small set of experimental workflow features:
/loopfor session-scoped recurring checks and follow-up tasks;/loop apply//loop dismissto action or discard Vivling loop suggestions/vivlingfor a persistent local companion and orchestration foundation/vlfor direct Vivling chat when a brain profile is configured/remote-controlfor daemon lifecycle checks and app pairing from inside the TUI/mcp reloadto apply MCP server configuration changes without restarting- side-by-side npm packaging under
@mmmbuto/codex-vl
Linux x64, Linux arm64 (Raspberry Pi 4 / 5 and other arm64 boards) and Termux Android arm64 installs use packaged native binaries. npm 11 and later require explicit permission for the package postinstall script.
The standalone installer downloads a prebuilt package from the GitHub
releases, verifies it against the release SHA256SUMS manifest and the
GitHub-published asset digest, checks the installed binary reports the
expected version, and installs the codex-vl command under
~/.codex/packages/standalone-vl/. It never touches the official codex
command, ~/.codex/packages/standalone, Homebrew, or any npm install, and it
never runs as root.
Download, read, then run:
curl -fsSLO https://github.com/DioNanos/codex-vl/releases/latest/download/install.sh
less install.sh
sh install.shOr the one-liner, if you prefer:
curl -fsSL https://github.com/DioNanos/codex-vl/releases/latest/download/install.sh | shPin a specific release with CODEX_RELEASE:
CODEX_RELEASE=0.165.0-vl.1 sh install.shOn Termux the installer detects Android automatically, installs the
aarch64-linux-android package, and puts the symlink in $PREFIX/bin; also
install ripgrep, which the Android package does not bundle:
pkg install ripgrepRemove the standalone install later with sh install.sh --uninstall. The
installer disables automatic updates by design: re-run it (with or without
CODEX_RELEASE) to update. macOS arm64 has no prebuilt package yet; on macOS
use the npm source build below.
Install the latest release on Linux x64, Linux arm64, or Termux arm64.
npm install -g @mmmbuto/codex-vl@latest --allow-scripts=@mmmbuto/codex-vlOn Termux, also install ripgrep (the Android package resolves rg from PATH
and does not bundle it):
pkg install ripgrepCheck the installed version.
codex-vl --versionSign in to Codex VL.
codex-vl loginThe macOS arm64 package builds the native binary locally with Cargo. On npm 11 and later, explicitly allow the postinstall script and show its build output.
Check that Xcode Command Line Tools are installed.
xcode-select -pCheck that Cargo is available.
cargo --versionInstall the latest release on macOS arm64 and display build output.
npm install -g @mmmbuto/codex-vl@latest --allow-scripts=@mmmbuto/codex-vl --foreground-scriptsCheck the installed macOS version.
codex-vl --versionThe first macOS build can take 10-30 minutes. If a previous install left the
platform package or binary incomplete, uninstall @mmmbuto/codex-vl first,
then repeat the complete command above. Do not run npm's target-less
npm install -g --allow-scripts=... hint by itself: it does not name an
install target.
Codex VL uses the normal Codex configuration and runtime state in ~/.codex/.
Installing it does not replace the official codex binary.
For a local npm prefix:
Set the npm installation prefix.
npm config set prefix ~/.localInstall the latest release under that prefix; foreground output also shows the macOS source build.
npm install -g @mmmbuto/codex-vl@latest --allow-scripts=@mmmbuto/codex-vl --foreground-scriptsCheck the version under the local prefix.
~/.local/bin/codex-vl --versionThe latest and next channels both point to 0.172.0-vl.1, based on
upstream Codex rust-v0.172.0. The conservative stable tag currently points
to 0.153.2-vl.2.
Packages cover Linux x64, Linux arm64 (musl), Android arm64, and macOS arm64 source builds. The main package is a thin wrapper: the binaries live in the per-platform packages, which is why they are published first and why the main one is useless without them.
The 0.147.0 line remains as described above: the Termux TLS root fix carried
there for parity was retired at that version, because upstream removed the
client it wrapped and MCP OAuth discovery now runs on the injected
codex-http-client.
Local stdio MCP servers start with a restricted environment. Forward a process variable explicitly by name when the server needs it; repeat the flag for multiple names:
codex-vl mcp add example-server --env-var EXAMPLE_MCP_SESSION --env-var TMUX --env-var TMUX_PANE -- example-server mcpThe command stores only the variable names. Their values are read from the
launching process when the MCP server starts and are never written to
config.toml.
For macOS, the package is a source-build payload instead of a prebuilt native binary; the local install path requires Rust/Cargo on the Mac. The postinstall script performs a fail-closed preflight check (Xcode Command Line Tools, Cargo, optional rustup target) and prints actionable hints when something is missing.
Restored on the native Android arm64 package (0.136.x):
- code-mode (
exec/wait): the in-process V8 runtime is now enabled on the native Android target, so code-mode is no longer a no-op stub there. This is the meaningful capability gain on Android. The Android package bundleslibc++_shared.sonext to the binaries (RUNPATH=$ORIGIN), since Termux has no system copy.
/voice starts a realtime voice conversation over WebRTC. The CLI spawns a
packaged helper (codex-voice-host) that owns the microphone and the speakers
and decodes audio with a private GStreamer runtime carried inside the package
itself (codex-resources/voice). Codex VL ships that runtime on macOS arm64 and
on glibc Linux (x64 and arm64), so /voice works wherever there is a
microphone. Voice audio goes to the realtime voice backend, exactly as in
upstream Codex.
Prerequisites by platform:
- macOS arm64 - a microphone, and Microphone permission for the terminal or editor running the CLI (System Settings -> Privacy & Security -> Microphone). The runtime travels with the package; there is nothing else to install.
- Linux x64 / arm64 (glibc) - a working audio stack (ALSA or PulseAudio)
with both an input and an output device. No GStreamer package is needed on the
host: the bundle loads its own plugin directory. The Linux CLI is linked
against musl while the voice helper is a glibc binary, so
/voiceneeds a glibc host (Debian, Ubuntu, Fedora, ...); it is not available on musl-only systems such as Alpine. - Android / Termux - not available. The platform gate rejects it, and the private GStreamer runtime does not exist there.
- Servers and headless hosts -
/voicestays hidden when the runtime is missing, and reports a clear error when the runtime is present but no microphone can be opened.
Vivling behavior is still experimental. It is intended to become a workflow assistant over time, but the current public surface is deliberately small.
Creates and manages recurring local jobs attached to the current TUI session. Loops are useful for periodic status checks, long-running work supervision, and agent-managed follow-up tasks.
Manages the active Vivling. Current features include local state, growth, lifecycle status, species data, and optional brain profile configuration. The public development journal is at dev.mmmbuto.com/vivling.
Frequent commands: /vivling hatch, /vivling status, /vivling roster,
/vivling focus <id|name>, /vivling card, /vivling model <profile>,
/vivling memory, /vivling crt-brain show, /vivling layout line for the
one-row CRT strip, and /vivling loop-strategy <label> <strategy> for
delegated loops.
The full command list, with exact syntax, prerequisites, and what each command persists, is in the Vivling command reference.
Sends a direct message to the active Vivling. If the Vivling brain is ready, the message routes through its configured Codex profile. Otherwise Codex VL uses the local fallback reply path.
Checks and controls the Codex remote-control daemon without leaving the TUI.
Supported subcommands are status, start, stop, restart, and pair.
pair prints the code the ChatGPT mobile app asks for. It attaches to a daemon
that is already listening and starts one only when none is, so pairing does not
need a separate start first. status is the only read-only subcommand: it
probes the daemon without starting it. Client enrollment toggles are
intentionally not implemented in this command.
Lists the configured MCP servers; /mcp verbose also lists their tools.
/mcp reload re-reads the MCP server configuration and applies it to every
active session, so a server added, removed, or re-pointed in config.toml
takes effect without restarting Codex VL. Each session picks the new
configuration up when it resolves its MCP runtime for the next model step,
which means a turn already running can adopt it before it ends.
Vivling brain models use standard Codex profiles and providers. No shell wrapper is required.
Start with:
Minimal flow:
/vivling model <profile>
/vivling brain on
/vl hello
Enter the Rust workspace.
cd codex-rsBuild the CLI in release mode.
cargo build --release -p codex-cli --bin codexFor a local macOS install, build from source with Cargo, then point your local
wrapper or npm prefix at the produced codex binary (the codex-vl-exec
command dispatches it via the exec subcommand). The
npm package includes Linux x64, Linux arm64 and Termux Android arm64
native packages plus the macOS arm64 source-build package.
- Termux-native audio (parked):
/voiceis shipped on macOS and glibc Linux; Termux needs its own audio backend (PulseAudio ortermux-api) because the Android audio path cannot initialize in a plain CLI process.
Codex VL is active development software. Use the official OpenAI Codex release when you want the upstream baseline without Codex VL additions.
Codex VL is a community fork of OpenAI Codex. Security-relevant properties of this build:
- Network: agents bind to loopback by default; nothing is exposed externally unless you opt in.
/remote-controland the app-server require explicit opt-in. - Supply chain: builds and releases come only from fork-owned CI and the
@mmmbuto/codex-vlnpm scope. This package does not silently fetch or run the upstream installer; updates flow through the fork's own channel. - Termux: TLS trust uses bundled webpki roots (no Android platform-verifier dependency), and advisory file locks degrade safely where unsupported.
For sensitive work, prefer the official Codex CLI on Linux/macOS over SSH.
To report a vulnerability, see SECURITY.md.
Apache 2.0. Upstream Codex remains under Apache 2.0, and the Codex VL additions are distributed under the same license.