Vs · Codex CLI

Anvaya vs Codex CLI.

OpenAI's safety-first terminal agent against the memory-first local agent. Sandboxing vs compounding, pick your autonomy guarantee.

The short answer

Anvaya vs Codex CLI: Codex is OpenAI's terminal agent: GPT-powered, workspace-sandboxed (scoped reads, gated writes, network limits), available as CLI/desktop with cloud execution options.

Read the full answer

Anvaya is provider-agnostic and local-first: Ollama-first with no account or key, with BYOK for any OpenAI-compatible or Anthropic provider, offline-capable, a static Rust binary, plus the layer Codex lacks, a compounding memory graph (typed nodes with half-lives, git drift detection, Beta-Bernoulli utility) targeting 2–4K packed tokens per turn. Codex wins sandbox mechanics and OpenAI-ecosystem fit; Anvaya wins provider choice, privacy (local by default), and knowledge that survives sessions. GPT fans can run GPT reasoning inside Anvaya's memory loop, or bridge the graph to Codex over MCP.

Weighed side by side

Codex is light. anv is lighter.

Both are Rust. Codex measured 97.2 MB with a git child; anv measured 23.4 MB with none.

Footprint · median own-process RSS
HarnesscodexMedian RSS97.2 MBAgainst anv4.2× anv

Median own-process RSS · anv --no-mind · macOS/ARM · 14 harnesses, 1030 runs, 994 verified

› runs past this scale. With the Mind on, anv’s process tree is about 213 MB, measured separately.

Every bar to scale. Hover or focus a row to compare it with anv.Anvaya-Benchmark/docs/v6-evot-lane.md · CRITERIA.md §8

The table

Side by side.

DimensionCodex CLIAnvayaWinner
ModelsOpenAI (GPT/Codex)Ollama + 3 + customAnvaya on choice
SandboxingWorkspace scopes + gatesLocality + plan-only + backupsCodex on mechanics
Harness RSS (measured)97.2 MB median23.4 MB medianAnvaya (14 harnesses, 994 verified runs)
Memory modelMemories (additive)Typed graph, calibratedAnvaya on compounding
OfflineCloud-tiedFully localAnvaya
Ecosystem fitOpenAI stack nativeProvider-agnosticDepends on stack
Entry pricePlus/API metered$0 local loopAnvaya

Questions

Asked about the two.

How is Anvaya different from Codex CLI?

Codex CLI is OpenAI's sandboxed terminal agent: workspace-scoped permissions, GPT-powered autonomy, cloud + local hybrid. Anvaya is provider-agnostic and local-first (Ollama default, fully offline) with a compounding memory graph (typed nodes, decay, drift detection, outcome calibration) so sessions improve instead of replaying.

Which is safer for autonomous runs?

Codex leads on sandboxing mechanics: constrained filesystem/network scopes with approval gates are its headline feature. Anvaya's safety story is locality (nothing leaves your machine by default) plus plan-only read-only mode and timestamped backups before mutations. Different safety philosophies; both beat unscoped autonomy.

Can I use GPT models with Anvaya?

Yes: OpenAI is one of three transports (Ollama local, generic OpenAI-compatible endpoints, Anthropic Messages). Same memory graph, GPT reasoning. Memory is model-agnostic by design.

Which should OpenAI-stack teams pick?

If your stack, contracts, and evals already live on OpenAI, Codex is the natural fit. Add Anvaya where Codex resets: cross-session bug threads, decision history, and local/private runs that never touch the API.

Run agents that fit on your laptop.

23.4 MB median own-process memory, measured across 1030 runs (994 verified) and fourteen harnesses. One command installs the harness and the Mind together. Nothing leaves your machine on the Ollama path.

Developer beta. macOS on Apple Silicon and Linux on x86_64 or arm64. Memory figure: --no-mind, macOS/ARM, n=3 per cell. Pre-1.0, pricing not set.