GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — moat/CHANGELOG.md at main · majorcontext/moat

Expand file tree

/

CHANGELOG.md

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
491 lines (346 loc) · 105 KB
/

CHANGELOG.md

Copy path

File metadata and controls

491 lines (346 loc) · 105 KB
Raw
Copy raw file
Download raw file
Outline
Edit and raw actions

Changelog

Moat runs AI coding agents in isolated containers with credential injection, network policy enforcement, operation-level policy on tool calls and API traffic, and full observability. The core loop — declare what your agent needs in moat.yaml, run it in an isolated container, and audit everything it did — has stayed the same since v0.1. The runtime layer has broadened from Docker-only to Apple containers and Rancher Desktop, the proxy runs as a shared daemon that scopes credentials per run, and gatekeeper ships the credential-injecting proxy as a standalone binary for use outside the moat runtime.

Moat is pre-1.0. The CLI interface and moat.yaml schema may change between minor versions. Breaking changes are listed under Breaking headings below.

v0.9.4 — 2026-11-12

Adds saved-conversation continuation for Pi and Codex, and fixes endpoint routes disappearing during long-running sessions. Active runs now recover lost routes and routing listeners automatically.

Added

  • Pi and Codex continuation — moat pi --continue and moat codex --continue (-c) resume saved conversations, including non-interactive -p prompts. Pi requires a previous run with transcript persistence enabled; Codex continuation uses workspace-isolated histories and rejects shared sessions. (#497)

Fixed

  • Fix silently losing Codex transcripts when the session directory cannot be created — runs with transcript persistence enabled now fail with an error instead of starting without saved history. This also applies when persistence is enabled by default through an OpenAI grant. Check the reported directory's permissions and available disk space. (#497)
  • Fix endpoint routes disappearing until a run was restarted — loading historical runs no longer deletes newer routes with the same name, and cleanup checks container ownership even when ports are reused. Active runs restore lost routes and routing listeners every 30 seconds; proxy takeover is serialized across processes. Legacy routes without ownership records remain until name reuse or reconciliation confirms that they are unreachable. (#498)

v0.9.3 — 2026-11-10

Fixes a strict-policy bug on Docker on Linux that blocked all outbound traffic on the host, and adds commands to inspect, reset, and remove credential profiles. Strict runs on Linux now reach host services through moat-host instead of localhost.

Added

  • Profile management commands — moat profile list shows configured and implicit profiles, active selection, inheritance, and errors per profile. moat profile show [name] shows lookup order and environment variable names without exposing values. reset <name> clears local grants, SSH mappings, and exclusions while preserving settings; remove <name> also deletes settings and refuses profiles with dependent children. Inspection supports JSON; reset and removal support confirmation, --force, and validated --dry-run, and coordinate with credential refreshes. (#492)

Changed

  • Strict-policy runs on Docker on Linux now get their own network namespace, so localhost and 127.0.0.1 inside the container refer to the container rather than the host. To reach a host service allowed by network.host, use moat-host ($MOAT_HOST_GATEWAY). (#495)

Security

  • Fix strict-policy firewall rules landing on the host — previously, network.policy: strict runs on Docker on Linux without gVisor (for example --no-sandbox on WSL2) shared the host network namespace, so the container's NET_ADMIN iptables setup flushed the host's OUTPUT chain and appended a DROP rule, cutting every new outbound connection on the machine, including the proxy daemon's upstream requests. Strict runs no longer use host networking, and firewall setup refuses host-network containers. If you ran a strict run this way, reboot (the rules do not persist) or reload your firewall (sudo ufw reload, sudo firewall-cmd --reload) to restore the host's own OUTPUT rules, which the flush removed. To check for leftovers, run sudo iptables -S OUTPUT and sudo ip6tables -S OUTPUT, plus iptables-legacy/ip6tables-legacy if installed. (#495)

v0.9.2 — 2026-11-07

Accepts security-patch pins within maintained dependency lines and tracks upstream end-of-life dates with a daily catalog refresh. Fixes Linux bind-mode init-file staging and restores E2E CI failure reporting.

Added

  • Daily dependency support refresh opens a PR with upstream lifecycle dates and maintained release lines. Defaults advance only when their current line reaches EOL; the initial refresh advances Go from 1.25 to 1.27. (#491)

Breaking

  • Known upstream end-of-life runtime and service lines are rejected, including Node.js 20 and older. Replace retired pins in moat.yaml with a maintained line from moat deps info <name>. Conflicting explicit pins now produce an error; keep one explicit version per dependency. (#491)

Fixed

  • Fix explicit dependency versions being rejected before image building — previously, static lists blocked newer Node.js, Python, PostgreSQL, MySQL, Redis, and Ollama releases and patch pins. Patch pins within maintained lines and unknown newer releases now pass through to upstream resolution. Projects without an EOL policy do not receive an inferred age cutoff. (#491)
  • Fix explicit versions being silently replaced by installer defaults — requested apt, npm, uv-tool, and custom CLI pins now reach their installers, exact Node pins use official archives, and mixed-runtime or custom-base Python builds preserve the requested interpreter. Existing image caches rebuild for these installation changes. (#491)
  • Fix staging init files under an image-owned directory in Linux bind mode — previously, startup failed when the workspace UID tried to chmod a parent owned by moatuser. Foreign directory modes now stay unchanged while staged files remain private at 0600. (#491)
  • Fix E2E CI reporting success after failed tests — previously, wait … || true discarded the test exit status; the workflow now preserves it. Entrypoint privilege-drop scenarios now exercise root startup in volume mode, bind-mode identity has a separate check, and the Pi session test supplies a writable Moat home on Linux. (#491)
  • Fix a timing-sensitive audit collector test in CI — previously, it checked the entry count after a fixed 100 ms sleep; it now waits for asynchronous ingestion with a timeout. (#490)

v0.9.1 — 2026-11-05

Adds GitHub workspace access restrictions and the Supabase CLI grant, and fixes Datadog OAuth discovery, Vercel authentication, and interactive Codex joins. The proxy moves to gatekeeper v0.37; building from source now requires Go 1.27.3, and existing installations should run moat proxy restart after upgrading.

Added

  • GitHub workspace scope — github.scope: workspace in moat.yaml limits pushes and other GitHub writes made with the github grant to the repositories checked out in the workspace (nested clones, worktrees, and submodules included; dependency directories such as node_modules and vendor skipped). The proxy enforces it with a Keep policy covering git push, LFS uploads, the REST API, and GraphQL mutations (only comments and similar discussion are allowed without naming an approved repository); github.other_repos: none also blocks reads of other repositories over git and REST. The first run approves what it finds. A repository that appears later — a new clone, or a re-pointed remote — stays read-only until you approve it at a prompt or with moat github allow. Approvals live in ~/.moat/github-repos.json, outside the workspace, and a scoped project stays scoped after moat.yaml drops the setting until moat github forget --all. Runs that also have an ssh: grant, a github-granted MCP server, or Copilot fail before starting. See Scoping GitHub access to the workspace. (#488)
  • moat github commands — repos, allow, forget, and policy show and change the current project's approved repositories and print the Keep policy its runs use. (#488)
  • params.query in network.keep_policy rules — the raw query string of each HTTPS request. (#488)
  • Supabase CLI grant — moat grant supabase can import an existing host Supabase CLI login with confirmation, use SUPABASE_ACCESS_TOKEN, or prompt for a personal access token. Runs with this grant install the Supabase CLI automatically. The container receives a CLI-compatible placeholder while the proxy injects the real token for the Management API. (#487)

Changed

  • Registered Keep policies now persist across proxy restarts. After upgrading and running moat proxy restart, recreate legacy GitHub runs that have no saved policy snapshot; they are not restored with unrestricted credentials. (#488)
  • The proxy daemon is built on gatekeeper v0.37 (previously v0.23.2), and moat now requires Go 1.27.3 to build. Run moat proxy restart after upgrading so the daemon runs the new binary. Blocked responses keep moat's wording, and new installs keep the "Moat CA" certificate name. (#488)
  • A network.keep_policy body rule (one that reads params.body) with an operation now makes only matching requests JSON-only. Previously any body rule made every request in the http scope fail closed on a non-JSON body. Body rules without an operation behave as before. (#488)
  • The Vercel grant now installs the Vercel CLI automatically and injects credentials only for api.vercel.com, removing the previous *.vercel.com match. If you need injection for another Vercel host, open an issue with the hostname. (#487)

Security

  • The proxy no longer sends a credential over plain HTTP to a remote host. Previously, a claude.base_url such as http://gateway.example.com received the key unencrypted; the request is now refused with 403. localhost endpoints and host-local http://localhost MCP servers are unaffected because their traffic stays on the machine. If you use a remote http:// endpoint, switch it to https://. (#488)

Fixed

  • Fix OAuth discovery for authorization servers with issuer paths — previously, moat grant oauth datadog --url https://mcp.us5.datadoghq.com/v1/mcp failed with a metadata 404 because discovery appended the well-known path after /v1/mcp. Discovery now uses the RFC 8414 location first and retains legacy OAuth and OIDC fallbacks. Discovered metadata must declare the requested issuer exactly. Servers that omit issuer or differ from the protected resource authorization_servers value (including trailing slashes, host casing, or port spelling) must correct their metadata before discovery can succeed. (#489)
  • Fix interactive Codex joins being rejected by background-server feature mismatches — joined sessions now use an embedded server when the installed Codex supports it, without restarting the primary session's daemon. (#486)
  • Fix network.keep_policy files that use defs failing to load — previously, validation compiled each when expression without substituting defs and reported "undeclared reference". (#488)
  • Fix Vercel CLI token rejection — previously, the CLI rejected Moat's placeholder before making an API request; the grant now supplies a CLI-compatible value. (#487)

v0.9.0 — 2026-10-27

Adds credential profile inheritance and opt-in Pi transcript forwarding, and fixes Linux/WSL startup, Pi backend and model selection, credential revocation, and host clipboard syncing. Cached run images rebuild once.

Added

  • Pi transcript forwarding — enable pi.sync_logs: true or moat pi --sync-logs to retain conversation history under ~/.moat/pi/sessions/<workspace-slug>/ after container removal. Syncing defaults off and keeps each workspace separate. (#484)
  • Credential profile inheritance — create a profile with moat profile create NAME --inherit PARENT or --inherit-default, then override individual grants locally. Credentials, SSH host mappings, environment variables, and implicit agent grants follow the parent chain; revocations exclude grants without changing the parent, and OAuth refreshes update the owning profile. (#479)

Fixed

  • Fix copies from Codex and Pi reaching only the container clipboard — new text selections now update the host clipboard while attached, with image pasting preserved. Pi defaults to regular terminal mode so mouse selection also works on Moat's footer. (#483)
  • Fix Pi startup without an explicit model — previously, selecting or inferring a backend without pi.model passed --provider alone, which Pi rejects. Moat now lists models inside the container and selects the first model ordered by ID for the chosen backend; an empty or failed listing stops startup. Pin pi.model for a consistent choice. (#482)
  • Fix revoking unreadable credentials — previously, moat revoke tried to decrypt credentials before deleting them, so credentials encrypted with an old key or damaged on disk could not be revoked. Revocation now checks their source without decrypting them and preserves profile inheritance exclusions. (#481)
  • Fix Pi startup with an explicitly selected backend when another backend's credential is unreadable — previously, preflight decrypted every backend's credential before applying --provider or pi.provider. Explicit selection now reads only the selected backend's credential; automatic inference still checks all backends. (#480)
  • Fix agent staging on Linux when the workspace owner's UID has no account in the image — previously, HOME=/ caused permission errors, and files owned by moatuser could not be overwritten or chmodded. The entrypoint now falls back to /home/moatuser, replaces foreign-owned staged files, and preserves an existing account's home. Images pre-create ~/.codex and make home directories writable without changing file permissions, including SSH config and private keys. (#478)
  • Fix gVisor runs hanging without network access when no ports are published — previously, Docker host networking left a default runsc sandbox with no network interfaces. gVisor runs now use bridge networking and reach the proxy through the host gateway. (#478)

v0.8.2 — 2026-10-07

Restores Codex 0.160.1 subscription startup and inference by supporting workspace routing discovery with Moat's synthetic account identity. Adds process-inspection tools to run images and rejects development builds that still embed the placeholder container entrypoint; cached run images rebuild once, and an already-running proxy needs moat proxy restart after upgrading.

Fixed

  • Fix moat codex failing during workspace routing discovery — previously, the discovery endpoint received placeholder credentials, and allowing that endpoint alone still left the real response account ID inconsistent with the synthetic identity in the container. Moat now injects the credential pair on the ChatGPT discovery endpoint and maps the selected response identity back to its placeholder, preserving the server's routing constraints and error responses. (#477)
  • Fix agent process inspection failing with ps: command not found — previously, base run images and generated install scripts omitted procps. Both now install it, and base package changes invalidate cached run images. (#477)
  • Fix development builds attempting to start containers with the embedded moat-init stub — previously, building without generating the Linux entrypoint binaries could fail only after container startup. Moat now rejects the stub before building or reusing an image and directs developers to make build. (#477)

v0.8.1 — 2026-10-07

Fixes moat grant codex and Codex subscription runs failing on any Codex CLI newer than 0.154. Codex releases newer than the verified range now produce a warning instead of an error, and the default codex-cli image version moves to 0.160.1, so cached Codex images rebuild once.

Fixed

  • Fix moat grant codex failing on any Codex CLI newer than 0.154 — previously, the subscription-auth version check was a hard ceiling, so updating Codex (0.155.1 is what npm i -g @openai/codex installed days after v0.8.0) made moat grant codex fail with unsupported Codex CLI version, and runs failed the same check in the container. Moat has now verified 0.146 through 0.160, and a newer 0.x release is allowed with a warning instead of an error, because an incompatible Codex fails visibly (it reports it is not logged in) rather than exposing the credential. A version older than 0.146 or a 1.x release is still rejected. The default codex-cli image version moves from 0.154.0 to 0.160.1. (#476)

v0.8.0 — 2026-10-03

Adds serial device access (devices:), multi-agent containers (agents:), Codex on a ChatGPT subscription (moat grant codex), Anthropic-compatible gateway keys (moat grant anthropic --base-url), and LunaRoute as a Pi backend.

It also realigns the Codex integration with Codex CLI 0.146–0.154 and fixes claude.base_url, moat join, the routing proxy dropping running agents, and terminal handling under Codex. The container entrypoint is now a Go binary, so cached run images rebuild once.

Breaking: moat grant codex now runs a ChatGPT login (use moat grant openai for an API key), and agents: [codex] no longer implies the openai grant. See Breaking below for the full list and migration steps.

Added

  • Go container entrypoint — the moat-init container entrypoint has been rewritten from a 668-line shell script to a Go binary (internal/moatinit, embedded and shipped as /usr/local/bin/moat-init), with the shell behavior as the contract: same phase ordering, same fail-closed vs best-effort classification, verbatim error wording. The rewrite lifts the entrypoint's logic (env parsing, branch/mode selection, ordering, error classification, exclude computation, privilege-drop selection) into unit-testable Go while still delegating the mechanical, security-sensitive steps to the audited tools already in the image (gosu for the privilege drop, socat for the SSH bridge, tar for the workspace copy). It adds --plan, a side-effect-free dry-run that prints the ordered actions the entrypoint would take for the current environment (moat exec <run> -- /usr/local/bin/moat-init --plan). One user-visible addition to the shell's behavior: when an injected /etc/hosts entry resolves to an IPv6 or loopback address, the entrypoint warns on stderr that the moat proxy may be unreachable through it (the entry is still written). Image cache keys are re-salted, so cached run images rebuild once; workflows pinning a concrete moat/run:<hash> tag must re-tag/rebuild. See Sandboxing. (#441)
  • LunaRoute for Pi — moat grant lunaroute stores a LunaRoute key (lr_...), validated against gw.lunaroute.com, and pi.provider: lunaroute (or moat pi --provider lunaroute) selects it; with only that grant configured the backend is inferred. The proxy injects the key as Authorization: Bearer on gw.lunaroute.com and as LUNAROUTE-API-KEY on mcp.lunaroute.com, and on no other host; the container gets a placeholder login in ~/.pi/agent/auth.json. moat pi adds npm:@lunaroute/pi-extension to the image's Pi packages, omits PI_OFFLINE, and loads LunaRoute's model list before Pi starts — Pi picks its model before fetching any model list, so a new container would otherwise fail with Unknown provider "lunaroute". moat run does neither, and warns when a Pi run holds the lunaroute grant without the extension. See Running Pi. (#469)
  • Serial devices — devices: in moat.yaml gives an agent access to an approved USB serial device, such as an ESP32 dev board. A host-side broker owns the device and serves it over RFC2217, so nothing is passed into the container: no privileged mode, and the gVisor sandbox stays on. Approval is trust-on-first-use — match selects a device by USB vendor/product ID, and the first run pins that specific unit's serial number, so swapping in a different board of the same model fails before the container is created rather than flashing the wrong device; that first run prints a consent notice stating what is being pinned and what the run can do to the hardware. moat device list shows attached devices and their pin state, and lists non-serial USB hardware in a separate "Other USB devices" section so a plugged-in device that cannot go through devices: is visibly detected rather than appearing to be missed; moat device forget <name> clears a pin after a deliberate swap, and moat device rename <old> <new> moves a pin when a name: changes in moat.yaml. Devices are addressed by an rfc2217:// URL rather than a device path because DTR/RTS — and therefore ESP32 auto-reset — cannot be carried by a pseudo-terminal. RFC2217 has no authentication, so each listener binds only an address the run's container can reach, chosen per runtime — the default bridge gateway on Docker Linux, host loopback (reached via host.docker.internal) on Docker Desktop, the default network gateway on Apple containers — rather than every interface. That narrows reach but is not an off-host boundary: on Linux the kernel accepts packets for a local address arriving on any interface, so the guide tells operators to add a host INPUT rule on untrusted networks. The broker serves one connection at a time, and drops a connection that holds the port for 30 seconds without negotiating, commanding, or writing. A device is claimed exclusively per run, and the claim survives re-registration but is released by the daemon's liveness reaper if the run dies without unregistering. Works under network.policy: strict — the listener ports join the proxy port in the container's firewall allowlist. A bridge that exposes several UARTs over one USB device (FT2232H, CP2105) is split into independently-pinned devices with match.interface, whose number moat device list shows in an IFACE column, and an optional baud seeds the initial line rate. See Serial devices. (#463)
  • Codex ChatGPT subscription auth — moat grant codex now runs a Codex login of Moat's own in a private, temporary CODEX_HOME, rather than prompting for an API key. It never reads or modifies your ordinary ~/.codex/auth.json, so the host's Codex and Moat hold separate refresh credentials and neither invalidates the other. The resulting token is stored encrypted and never reaches the container: Codex is given a synthetic auth.json, and the proxy daemon swaps the synthetic bearer and account headers for the real pair as a single atomic replacement, only over TLS, only for the exact https://chatgpt.com origin, and only on the Codex backend paths. A mismatch on any of those injects nothing. The daemon owns refresh, so rotations reach running containers without a restart and a registration request never carries a token. The login uses Codex's device-code flow — a link and a one-time code rather than a localhost callback — so one command covers a laptop, an SSH session, and a headless host with no flag to choose between them. Supported on Codex CLI 0.146.x–0.154.x and the default ChatGPT origin only. See Codex. (#462)
  • Profile environment variables — a credential profile can now carry environment variables that apply to every run using it, configured under profiles in ~/.moat/config.yaml. A profile is an identity — credentials plus the configuration that goes with them — so settings that belong to the identity rather than to a project no longer have to be repeated in every moat.yaml. The motivating case is an LLM gateway: the models it serves go with its key, not with the checkout. moat.yaml env and -e both override profile env, and proxy variables moat owns are ignored with a warning exactly as they are elsewhere. Runs with no --profile are unaffected. See Profile environment variables. (#458)
  • Anthropic-compatible gateways — moat grant anthropic --base-url https://gateway.example.com stores a key that belongs to a gateway rather than to Anthropic. The sk-ant- prefix check is skipped (gateways issue keys in their own format), the key is validated against the gateway instead of api.anthropic.com, and the endpoint is recorded on the credential, so every run using it is pointed there — ANTHROPIC_BASE_URL is set from the credential and the key is injected for the gateway's host. The key never enters the container and is redacted in the run's network log. It is deliberately not injected for api.anthropic.com, which Claude Code contacts regardless of ANTHROPIC_BASE_URL, so a third-party key is never handed to Anthropic. Pair with --profile to keep it separate from a real Anthropic key, and moat grant list marks it api-key (gateway). See An Anthropic-compatible gateway. (#457)
  • MOAT_TTY_TRACE — an environment-variable equivalent of --tty-trace, recording a session's terminal I/O to a file for debugging TUI and input problems. The sessions worth tracing are the broken ones, where the in-session ctrl+/ d dump may itself be unreachable, and exporting a variable captures every subsequent run without editing each command line. See Environment variables. (#450)
  • Remote MCP servers for Codex — top-level mcp: entries are now wired into Codex, not just Claude Code. They are written to the [mcp_servers] table of the generated ~/.codex/config.toml as streamable HTTP servers whose url points at the proxy relay, so the proxy injects the real credential exactly as it does for Claude Code. Previously mcp: was silently ignored for Codex runs. See MCP servers. (#449)
  • Multi-agent containers — agents: [claude, codex] in moat.yaml provisions several agents into one container, each with its dependencies, credential grant, and network rules. moat join <run> codex then works in a container started by moat claude. See Multi-agent sessions. (#454)
  • moat join <agent> infers the run from the current workspace, offering a picker when several qualify. (#454)

Changed

  • codex and openai are now separate grants. moat grant codex acquires a ChatGPT subscription login; moat grant openai stores an API key, as it always did. They are stored separately and can coexist: moat codex prefers the subscription and falls back to the API key. When both are granted, the API-key placeholder is exported to shell commands via BASH_ENV rather than container-wide, so Codex is not silently moved onto API billing — the same treatment claude + anthropic already gets. agent: openai and agents: [openai] continue to mean the Codex agent. (#462)
  • The pinned codex-cli version moves to 0.154.0 — 0.146.0 was pinned in #449 and is two minors behind what npm i -g @openai/codex installs today. That gap matters now that moat grant codex drives the host Codex CLI to perform a login whose result the container's Codex has to read: leaving the default at 0.146.0 put the two halves of subscription auth on different versions of an auth schema that moves. Both versions were checked before the bump — codex --strict-config doctor loads Moat's generated config.toml on 0.154.0, and codex login status reports "Logged in using ChatGPT" from Moat's synthetic auth file on 0.146.0 and 0.154.0 alike, so the supported 0.146.x–0.154.x range is verified at both ends rather than assumed. Override per project with codex-cli@<version> in dependencies. (#462)
  • codex-cli is version-pinned (originally 0.146.0) instead of installing whatever npm resolves as latest at image-build time. Codex ships breaking CLI and config changes on a fast cadence, and Moat generates ~/.codex/config.toml against a known schema, so the version now moves deliberately. Override per project with codex-cli@<version> in dependencies. Registry npm dependencies now honor an explicit @version at all — previously the version was parsed and silently dropped for registry entries (dynamic npm:pkg@version deps were unaffected). (#449)

Fixed

  • Fix run metadata being silently lost to a truncated write — SaveMetadata used os.WriteFile, which truncates metadata.json before writing it, so a process interrupted mid-save (Ctrl-C, crash) could leave the file empty or partial. LoadMetadata then failed with unexpected end of JSON input, and the run was dropped from moat list with only a debug-level log. Metadata is now written to a unique temp file, fsync'd, and renamed into place, so a reader sees either the old or the new file, never a partial write. (#472)
  • Fix moat pi on an Anthropic gateway key — previously, a moat grant anthropic --base-url credential resolved to Pi's anthropic backend and every request failed authentication, because the gateway key is never sent to api.anthropic.com. moat pi now refuses to start on it and names the grant to use instead — moat grant lunaroute for a LunaRoute key. A gateway key held alongside another backend's grant no longer makes the backend choice ambiguous. (#469)
  • Fix a personal ~/.moat/config.yaml typo crashing every moat command — config.LoadGlobal() returned a nil config alongside its error on a validation failure, and three callers ignore that error and read a field immediately (the root command's debug settings, the routing proxy port, the MOAT_HOST port). One invalid global mount was enough to panic with a nil-pointer dereference before any command ran. LoadGlobal now always returns a usable config — defaults plus the error — and still reports the problem, so an unrelated project's run degrades to defaults with a warning naming the file and the offending key instead of a stack trace. (#458)
  • Fix claude.base_url never working — previously any run that set it failed with API Error: 407 Proxy authentication required, so no host-side LLM proxy or Anthropic-compatible gateway could be used at all. Three separate faults: ANTHROPIC_BASE_URL pointed at a /relay/anthropic endpoint on the proxy that nothing ever registered (the registering call lived on the in-process proxy and was dropped when the shared daemon landed in #193); the credential for the endpoint's host was registered after the run had already been registered with the daemon, so it never reached the proxy; and the whole block was skipped unless the run had a grant, a strict policy, or other proxy-requiring config. Moat now points ANTHROPIC_BASE_URL at the endpoint itself, rewriting a localhost URL to the container's host-gateway address and allowing that port (a container cannot reach a host service at its own loopback). The endpoint is configured before registration, and setting base_url starts the proxy on its own. With no grant the endpoint still applies — nothing is injected, so supply the key via env or secrets. See Using a custom LLM endpoint. (#456)
  • Fix the anthropic grant silently taking Claude Code off its subscription — previously, granting anthropic alongside claude exported ANTHROPIC_API_KEY into the container environment, where Claude Code prefers it over the OAuth login Moat had just staged. The session then billed API credits instead of the subscription and lost OAuth-only capabilities such as the 1M context window, reporting only a passing notice that "ANTHROPIC_API_KEY or another auth source is set and takes precedence over your claude.ai login". When both grants are active the key is now staged into a BASH_ENV file instead, so shell commands still receive it while Claude Code — a native binary, which ignores BASH_ENV — does not. Nested claude invocations are kept on OAuth by a guard function. Granting anthropic on its own is unchanged. (#453)
  • Fix long-lived agents vanishing from the routing proxy — previously a running, port-exposing agent could disappear from the discovery index at localhost:8080, from *.localhost:8080 hostname routing, and from moat open, with no warning and no way back for the life of its container, even though its published port stayed reachable. Two causes: ~/.moat/proxy/routes.json was deleted outright whenever the last route was removed, discarding the entries of every still-running agent along with it; and concurrent registrations from separate moat processes could lose each other's writes, because the read-modify-write cycle was serialized only within a process. The file is now kept as an empty table rather than deleted, every mutation holds a cross-process file lock, and a process that starts the routing proxy first rebuilds the table from the containers that are actually running — so an agent orphaned by an earlier version reappears the next time the proxy starts. Entries no endpoint answers on are pruned during that rebuild. (#452)
  • Fix ctrl+/ doing nothing under Codex — Moat's escape prefix matched a single byte, 0x1f, the legacy encoding of a chord that is ambiguous with ctrl+_. Codex enables the kitty keyboard protocol at startup (Claude Code does not), which asks the terminal to disambiguate, so the terminal reports ctrl+/ as CSI 47;5u and Moat never saw it. Every command behind the prefix was unreachable under Codex, including the ctrl+/ d TUI dump that exists to debug this class of problem. Moat now recognizes the CSI-u encoding alongside the raw byte, ignores the key-up and autorepeat events that accompany a real chord, and leaves every other kitty-encoded key — including ctrl+c — untouched for the agent. (#450)
  • Fix Codex's prompt area smearing, the cursor landing in unexpected places, and content shifting wholesale on every update — Moat replaced every scroll region the child requested with its own, so the footer row could not be scrolled away (#349). That assumes the child never needs a region of its own. Codex renders inline, never entering the alternate screen, and uses scroll regions as a drawing primitive: restrict to a band, reverse-index to open space inside it, reset, redraw. With the band replaced by the full content area, those reverse-indexes scrolled the entire screen. Moat now clamps the child's region instead of discarding it — the requested band is forwarded with its bottom margin held above the footer row, so Moat still owns that row while the agent keeps its band. (#450)
  • Fix the terminal being left in a broken state after an agent that enables the kitty keyboard protocol exits without restoring it — killing a run (ctrl+/ k), interrupting it, or a crash left the terminal encoding keys as CSI-u sequences, so typing at the shell afterwards produced fragments like s5;1:3u and command not found errors. Moat already undid the mouse modes it mirrored onto the host for the same reason; it now also pops any keyboard-protocol flags the child pushed and never popped. Only the child's own unbalanced pushes are undone, so a protocol enabled by your terminal or multiplexer outside Moat is untouched. (#450)
  • Fix the status footer disappearing until the agent stopped rendering — "erase from the cursor to the end of the display" (CSI J) reaches past the child's content area into the footer row, and Moat only repaired the footer on a redraw debounced behind 50ms of quiet. Under continuous rendering that quiet never came. The footer is now repainted immediately after the erase, with the cursor preserved. (#450)
  • Fix commands run by Codex having no network access — previously the generated ~/.codex/config.toml set shell_environment_policy.inherit = "core", and Codex's core set is a fixed allowlist (PATH, SHELL, TMPDIR, TEMP, TMP, HOME, LANG, LC_ALL, LC_CTYPE, LOGNAME, USER). Every command Codex ran therefore lost HTTP_PROXY, HTTPS_PROXY, NO_PROXY, SSL_CERT_FILE, and NODE_EXTRA_CA_CERTS — the variables that route a container command through the Moat proxy — so npm install, pip, git push, and gh all failed inside a Codex session. The policy is now inherit = "all"; Moat curates the container environment already. (#449)
  • Fix Codex nesting its own sandbox inside the container — previously Moat passed no approval or sandbox settings, so Codex applied its defaults: approval on every action, plus a sandbox that blocks the network and confines writes to the workspace. Inside a Moat container that adds prompts without adding protection, and its network block defeats the proxy. The generated config now sets approval_policy = "never" and sandbox_mode = "danger-full-access". Use moat codex --noyolo to keep Codex's own approvals and sandbox. (#449)
  • Fix codex.mcp sandbox-local servers never loading — previously they were written to /workspace/.mcp.json, which Codex does not read (verified against Codex CLI 0.146: a server declared there is not registered). They are now written to the [mcp_servers] table of ~/.codex/config.toml. (#449)
  • Fix moat codex -p emitting a deprecation warning — it passed codex exec --full-auto, which the Codex CLI now reports as deprecated (and which no longer exists at all on the interactive command). Approval policy and sandbox mode are configured in config.toml instead, so no such flag is passed. (#449)
  • Fix codex.sync_logs never syncing anything — the setting was documented as writing session logs to the host, and defaulted on whenever the openai grant was configured, but no mount was ever created: the flag only influenced whether the Codex staging directory was built. Codex session transcripts now appear on the host at ~/.moat/codex/sessions/<workspace>-<id>/YYYY/MM/DD/rollout-*.jsonl, in Codex's own format. (#449)
  • Fix Codex prompting to trust /workspace on first run — the generated config now marks the workspace trusted. (#449)
  • codex.mcp and gemini.mcp may now both declare local MCP servers in one moat.yaml. They previously collided on /workspace/.mcp.json and were rejected at config load; Codex no longer uses that file. (#449)
  • Fix moat join refusing to attach to containers that were running the agent — previously, join compared moat.yaml's agent: field against a fixed list, so any other value (including the project-shaped names the reference docs and moat init both produced) made every join fail. Join now uses the set of agents moat actually provisioned into the container. Runs created before this change must be recreated. (#454)
  • Fix moat join <name> failing when several runs share a name — previously, any project setting name: in moat.yaml gave every run the same name, and a second concurrent run made join error instead of offering a choice. (#454)
  • Fix moat join's extra positional arguments being silently ignored — moat join <run> <agent> <extra> used to accept and discard <extra>; it is now a usage error. moat join now takes one or two positional arguments ([run] agent), not a minimum of two. (#454)
  • Fix the agent: reference documentation, which described the field as a free-form identifier defaulting to name. It is a fixed set of agent names and defaults to the command you ran. (#454)
  • Fix agent: openai and agent: google being accepted and then ignored — the provider aliases passed validation but were never normalized to codex / gemini, so the agent-specific defaults (container memory, implied dependencies, language-server support) all silently switched off. agent: is now normalized to the provider name, including when it is backfilled from the first entry of agents:. (#454)
  • Fix --dry-run skipping agent: validation — a moat.yaml with an unrecognized agent: previewed cleanly and only warned once you started a real run, which is backwards for the flag people use to check their config. (#454)

Breaking

  • moat grant codex now performs a ChatGPT login instead of storing an API key. It previously resolved to the same provider as moat grant openai and read OPENAI_API_KEY from the environment or a prompt. It now launches codex login --device-auth on the host, which needs a Codex CLI in 0.146.x–0.154.x installed and a browser somewhere to complete the device-code flow (device-code login is in beta and can be disabled by a workspace administrator). Scripts and CI that ran moat grant codex to store a key must change to moat grant openai, which is unchanged and keeps reading OPENAI_API_KEY. Existing stored keys are untouched and keep working: they live under openai, and a codex grant with no subscription still falls back to them. (#462)
  • agents: [codex] now derives the codex grant, not openai. A local MCP server under codex.mcp that declares grant: openai and relied on agents: [codex] to provide it must now declare the openai grant explicitly in moat.yaml's top-level grants: list. The Codex subscription is deliberately not usable as an MCP credential — it is scoped to ChatGPT's Codex backend and nothing else — so grant: codex on any MCP server is rejected with an error pointing at openai. (#462)
  • moat codex --full-auto is deprecated — use --noyolo to require manual approval. --full-auto=false is still accepted and maps to --noyolo; --full-auto=true is a no-op, since auto-approval is the default. The flag is hidden from help and will be removed in a future release. The Codex CLI itself removed --full-auto from its interactive command and deprecated it on codex exec. (#449)
  • codex.sync_logs writes to a new location — the setting previously did nothing at all, so nothing moves for existing users, but the documented destination has changed. Codex session transcripts now sync to ~/.moat/codex/sessions/<workspace>-<id>/, a per-workspace directory, rather than the host's own ~/.codex/sessions. Codex partitions sessions by date rather than by workspace and offers no config key to relocate the directory, so mounting its real directory would expose this host user's transcripts from every project — including any carrying regulated or confidential data — to whatever agent is running. Set codex: { shared_sessions: true } to mount the host's directory anyway and keep one combined history. (#449)

v0.7.0 — 2026-08-01

Adds two agents: moat pi runs the Pi coding agent against your existing anthropic or openai grant, and moat copilot runs GitHub Copilot CLI on the github grant. Keep policies gain HTTP request-body inspection — file- and pack-based network.keep_policy rules can match on the parsed JSON request body, so policies can enforce content-based rules (e.g. block requests whose body carries a secret) instead of host/method/path alone. Workspaces and volumes can now be backed by Docker named volumes (workspace.mode: volume, type: volume) to bypass the host↔VM filesystem-sharing layer a bind mount crosses, and the routing proxy serves a discovery index at its bare hosts so you can browse an agent's endpoints with moat open instead of memorizing hostnames.

Added

  • Copilot CLI settings passthrough — moat copilot now carries over user preferences from the host's Copilot settings file ($COPILOT_HOME/settings.json when set, otherwise ~/.copilot/settings.json; contextTier, effortLevel, footer, includeCoAuthoredBy, model, mouse, subagents, tabs, theme). Legacy colorMode values are written as the current theme setting. An optional ~/.moat/copilot/settings.json provides moat-specific overrides that win over host settings. Settings that execute commands (statusLine) are only allowed from the moat override file. CLI flags and moat.yaml fields take precedence over settings.json values. (#438)
  • GitHub Copilot CLI agent — run GitHub Copilot CLI with moat copilot. Copilot uses the existing github grant: Moat injects that GitHub token for GitHub/Copilot API hosts plus HTTPS git, while the container receives only placeholders. moat copilot installs @github/copilot, stages Copilot config/context, passes --allow-all by default, and supports copilot.model, copilot.context, copilot.reasoning_effort, copilot.experimental, and copilot.autopilot in moat.yaml. See Running GitHub Copilot CLI. (#436)
  • Pi packages & safe defaults — declare Pi extensions/skills/themes in pi.packages (remote npm:/git:/https:/ssh: sources) and Moat installs them into the image at build time via pi install, baked into a reproducible cached layer. Every moat pi image also bakes a safe ~/.pi/agent/settings.json — defaultProjectTrust: never (a checked-out repo's own .pi/ extensions, which are arbitrary code, do not auto-load), telemetry off, quiet startup — that a workspace cannot override. Because Pi config can redirect model traffic to any host, moat pi now warns under a permissive network policy (only network.policy: strict truly constrains egress). See Running Pi. (#434)
  • Pi coding agent — run the Pi coding agent with moat pi. Pi has no credential of its own; it runs against your existing anthropic or openai grant. When exactly one is configured it is used automatically; when both are, choose one with --provider or pi.provider in moat.yaml. Only the anthropic and openai backends are supported today — any other backend, or a missing/ambiguous grant, fails before a container is created. Configure with the pi: block (provider, model). See Running Pi and examples/agent-pi. (#433)
  • opentofu and terragrunt dependencies — two new managed cloud tools. opentofu installs the OpenTofu CLI as the tofu command; terragrunt installs the Terragrunt orchestration wrapper. Both install as prebuilt release binaries with no image rebuild cost beyond their own layer. Terragrunt delegates to a Terraform or OpenTofu binary on PATH, so pair it with an engine — dependencies: [terraform, terragrunt], or dependencies: [opentofu, terragrunt] with env.TERRAGRUNT_TFPATH: tofu. See Dependencies. (#430)
  • Routing discovery index — the routing proxy now serves a browsable index at its bare hosts: http://localhost:<port> lists every running agent and its endpoints, and http://<agent>.localhost:<port> lists that agent's endpoints when it exposes more than one. Browsers get an HTML page; clients sending Accept: application/json get JSON. Previously the bare proxy root returned a not a .localhost host 400, and a bare multi-endpoint agent host routed to a nondeterministic first endpoint. Single-endpoint agents and fully-qualified endpoint hosts (web.demo.localhost) are unaffected. See examples/multi-endpoint. (#407)
  • moat open — open a running agent's endpoint in your browser: moat open for the discovery index, moat open <agent> for an agent, moat open <agent> <endpoint> for a specific endpoint. The agent defaults from the current directory's moat.yaml (or the sole running agent), and the URL is always printed so --print / headless / SSH use still works. moat run, moat list, and moat proxy status now advertise the endpoint index URL, and moat run prints the proxy's actual bound port (previously it always printed the configured default, which was wrong whenever the proxy fell back to another port). (#407)
  • Native volume backing for volumes: — a volume entry can set type: volume to use a Docker named volume (moat_<agent>_<name>) on the container engine's native filesystem instead of a host bind mount. This bypasses the host↔VM filesystem-sharing layer that bind mounts cross on VM-based runtimes (Docker Desktop, Rancher Desktop), which is faster for I/O- and metadata-heavy directories and avoids that layer's differing file-locking and memory-mapping semantics. The default is unchanged (bind), so existing configs are unaffected. Docker runtime only; the Apple container runtime rejects type: volume. See Volumes. (#402)
  • Volume-mode workspaces — opt into an isolated copy of the workspace in an ephemeral Docker named volume (workspace.mode: volume or --workspace-mode volume) for host protection and faster macOS I/O. Extract changes with moat snapshot / moat snapshot restore --to. Docker-only; git worktree and submodule checkouts are rejected with a clear error (use workspace.mode: bind for those). (#404)
  • HTTP request-body policies — file/pack network.keep_policy rules can match on the parsed JSON request body via params.body (e.g. hasSecrets(params.body) for a whole-body secret scan, or params.body.field == 'x' for an exact match). The proxy buffers and inspects the body only when a rule references it. Inspection applies to application/json over HTTPS; once any body rule exists, the http scope fail-closes on non-JSON, compressed, malformed, duplicate-key, or oversized bodies. A new keep-body-policy daemon capability gates the feature — an older proxy daemon fails fast with a moat proxy restart upgrade message rather than silently under-enforcing. Requires keep ≥ v0.6.0 and gatekeeper ≥ v0.13.0. See HTTP request-body rules and examples/policy-body. (#395)
  • MOAT_KEYRING_BACKEND environment variable — set to file to skip the system keychain entirely and use file-based credential sources instead. This covers both the credential-store encryption key and the macOS Keychain lookup for Claude Code OAuth credentials. Useful on headless or locked-down macOS where touching the keychain pops a blocking GUI authorization prompt (including the "allow this app to modify the keychain item" dialog an unsigned binary triggers). The default (keychain-first, file fallback) is unchanged. See Environment variables. (#406)

Fixed

  • Fix moat grant providers listing grants that do not exist — previously the table showed anthropic twice (the claude OAuth provider was displayed under an anthropic alias while the real anthropic API-key provider registered under the same name), listed pi even though Pi has no credential of its own and moat grant pi always errors, and left the description column blank for meta, oauth, and pi. Every listed name is now a name moat grant <name> accepts, claude and anthropic appear as the separate grants they are, and every row carries a description. (#447)
  • Fix pip: dependencies failing the image build with externally-managed-environment — previously, when Python was not the sole runtime (e.g. python alongside node, where the base image is debian:bookworm-slim rather than python:X-slim), Python came from Debian's python3 package, which ships the PEP 668 EXTERNALLY-MANAGED marker. Every pip install then failed, so a config with pip:numpy could not build. That marker is now removed when Moat installs Python via apt, which also unblocks pip install and uv pip install --system in build hooks and in the running container. (#445)
  • Fix all Claude sessions inside moat freezing at once on macOS during a package install — previously, the shared credential-injecting proxy daemon inherited the host's default RLIMIT_NOFILE soft limit (typically 256 on macOS), so a burst of concurrent connections through the single proxy (bun install opens up to 64 parallel connections) could exhaust its file descriptors and stall every run's claude.ai traffic until the burst cleared, then recover. The daemon now raises its file-descriptor soft limit toward 65536 (capped at the hard limit) at startup, before the proxy accepts connections. (#439)
  • Fix the injected agent context misrepresenting network access — previously, the "Moat Environment" instructions file (CLAUDE.md/AGENTS.md) listed grant/rule hosts under "Allowed hosts" regardless of policy, so under the default permissive policy (where all outbound traffic is allowed) it read as an egress allowlist restricting the agent to those few hosts. The Network Policy section is now policy-aware: permissive states that all outbound access is allowed (surfacing only explicit per-path rules, which still apply), and strict is described as the allowlist it actually is. The context also now reflects Docker/DIND availability, the resolved workspace mode (bind vs. ephemeral volume), and installed tool dependencies — all previously omitted, which could lead an agent to assume capabilities were absent. (#431)
  • Fix moat logs -f silently doing nothing — previously, follow mode printed a debug-log line ("not yet implemented", only visible with --verbose) and exited 0 as if it had streamed, so -f looked like it worked. moat now prints a visible notice that follow mode isn't supported yet and shows the current logs. (#413)
  • Fix non-deterministic Dockerfile generation causing spurious image rebuilds — previously, dependency ENV lines were emitted in random map order, so the generated Dockerfile changed between runs and missed Docker's layer cache. ENV keys are now sorted. (#413)
  • Fix a malformed ~/.moat/config.yaml being silently ignored — previously, a YAML typo in the global config was swallowed and moat ran on built-in defaults with no signal, so settings like proxy.port appeared not to take effect for no visible reason. moat now warns and falls back to defaults instead of failing silently. (#412)
  • Fix potential routes.json corruption on a crash — previously, the hostname-routing table was written non-atomically (truncate-then-write), so a crash mid-write could leave a truncated file that every routing proxy then failed to parse. It is now written atomically via a temp file and rename. (#412)
  • Fix a data race on a run's provider metadata — previously, provider stopped-hooks wrote ProviderMeta while metadata-save read it concurrently (from the container-exit monitor and moat stop) without synchronization, which could corrupt the saved metadata or crash under the race detector. Both paths now hold the run's state lock. (#412)
  • Fix an unhelpful error when the routing proxy's port is in use — previously, starting an agent that exposes ports: while something already held the routing port (default 8080) failed with a raw listen tcp 127.0.0.1:8080: bind: address already in use. The routing port is deterministic by design (it is not auto-reassigned, so advertised endpoint URLs stay stable), so moat now reports which port is taken and how to change it: MOAT_PROXY_PORT=<port> or proxy.port in ~/.moat/config.yaml. (#409)
  • Fix Apple container runs failing under the container CLI 1.0.0 — previously, moat parsed container inspect / container list output expecting status to be a string ("running") and network details in a top-level networks array. The 1.0.0 CLI nests these in a status object (status.state, status.networks), so every Apple container run failed with parsing container info: json: cannot unmarshal object into Go struct field .status of type string, and container IP lookup (host-traffic routing) found no address. moat now parses both the legacy and 1.0.0 schemas. Affects anyone on the Apple container runtime with container ≥ 1.0.0. (#406)
  • Fix moat system containers, moat clean, and moat status listing no Moat containers — the run-container filter expected an 8-character hex name, but run IDs have been run_<12 hex> (e.g. run_d2d975055e71) for some time, so the filter matched nothing and the commands reported "No moat containers found" even with containers present. The filter now matches the real run-ID format on both Docker and Apple runtimes. (#406)
  • Fix intermittent broken mouse-wheel scrolling in interactive sessions — previously, when a child agent (e.g. Claude Code) opened a fullscreen view (the alternate screen) and then closed it, moat's compositor swallowed the agent's mouse-disable sequence into its VT emulator instead of forwarding it to the terminal (the disable arrives just before the alt-screen-exit, while moat is still in compositor mode). The terminal was left reporting mouse events after the agent returned to its inline UI, so the scroll wheel sent mouse reports to the agent instead of scrolling the terminal's scrollback. moat now forwards mouse-tracking mode set/reset to the host while in compositor mode, and disables any it enabled on compositor exit, reset, or cleanup. The leak only triggered once a session opened a fullscreen view, which is why it was intermittent. (#394)
  • Fix bypass-permissions mode silently turning off in moat claude sessions — previously, moat enabled bypass mode only via the --dangerously-skip-permissions CLI flag. When Claude Code's "Try the new fullscreen renderer?" upsell appeared and was accepted (or when Claude silently auto-graduated a session to the fullscreen renderer), Claude re-exec'd its own process without the original CLI flags, so bypass mode reverted to default and tool calls started prompting again (e.g. a plain cat) mid-session. moat now (1) pins the renderer in the generated settings.json via tui — mirroring the host's choice and defaulting to the classic renderer — so the upsell and the flag-dropping re-exec never fire, and (2) persists permissions.defaultMode: "bypassPermissions" in settings.json when bypass is requested, so bypass survives any re-exec that does occur (e.g. a manual /tui switch). Use --noyolo to opt out of bypass as before. (#400)

Security

  • Upgrade dependencies to clear 15 vulnerabilities that govulncheck reports moat actually calls — containerd/v2 (→2.2.5), golang.org/x/crypto (→0.53.0), in-toto-golang (→0.11.0), go-git/v5 (→5.17.1), moby/buildkit (→0.28.1), and ulikunitz/xz (→0.5.15). No user action required. Remaining govulncheck findings are in docker/docker (no upstream fix available yet) and the Go standard library (cleared by building with a newer Go toolchain). (#416)
  • Build with the Go 1.25.11 toolchain to clear ~16 Go standard-library vulnerabilities govulncheck reports moat calls (crypto/x509, crypto/tls, html/template, net/*, archive/tar, …), pinned via a toolchain directive. No user action required. With this and the dependency upgrades above, govulncheck's reachable count drops from 36 to 5 — the rest being docker/docker, which has no upstream fix yet. (#417)

v0.6.1 — 2026-06-19

Security and ergonomics patch. Fixes a cross-profile credential leak in the shared proxy daemon — token refresh and the daemon-restart restore path now scope to the run's own credential profile instead of the daemon process's. Also adds inline grant prompting so moat run/moat claude/moat codex can grant missing credentials in place rather than failing and requiring a separate moat grant plus a re-run.

Added

  • Inline grant prompting — on an interactive terminal, moat run/moat claude/moat codex now detect missing credential grants before starting the container and offer to grant each one inline, instead of failing and requiring a separate moat grant plus a re-run. Non-interactive runs are unchanged; use --no-prompt (or MOAT_NO_PROMPT=1) to force the fail-fast behavior. (#389)

Security

  • Fix cross-profile credential leak in the shared proxy daemon — previously, background OAuth token refresh opened the credential store via the daemon process's global active profile, which the daemon freezes at spawn (usually the default) and which does not reflect the profile a served run was created under. A run started with --profile <name> could therefore pick up the default profile's credential for the same grant on the first refresh tick — the refresh replaced the run's live OAuth token and overwrote the stored one — e.g. a --profile vibrant run suddenly using the default profile's Linear auth. The CLI now sends the run's profile to the daemon, and token refresh (plus the daemon-restart restore path, which had the same flaw) scopes the credential store to it. Affects anyone using --profile/MOAT_PROFILE with refreshable OAuth grants. User action: upgrade the CLI, then run moat proxy restart so the running daemon picks up the fix (an older daemon ignores the new profile field and keeps leaking). (#392)

v0.6.0 — 2026-06-17

Feature release centered on MCP ergonomics: well-known servers can be listed in moat.yaml by name alone, resolving URL, auth, and grant from a built-in catalog (with Langfuse regional and PostHog OAuth shortcuts), and MCP API-key grants adopt the mcp:<name> naming convention. Also adds moat join to launch a second agent in a running container, moat proxy restart for version-aware daemon replacement, and the ministack local-cloud service, plus fixes for GitHub HTTPS git auth, Apple async container teardown, and a remote-MCP relay 404 regression.

Added

  • moat proxy restart — stop the running proxy daemon and start a fresh one from the current binary, holding the daemon spawn lock across the entire stop and start so an active run's health monitor can't resurrect the old daemon in the gap. EnsureRunning now also adopts the caller's version automatically: when a healthy daemon's recorded commit and the caller's build commit are both known and differ, it restarts to the caller's version (dev builds reporting none/empty are left alone to avoid thrashing). This lets a newer CLI replace a stale daemon — e.g. one with an outdated MCP relay — without waiting for the idle timeout. (#385)
  • Langfuse MCP shortcuts — langfuse-eu, langfuse-us, langfuse-jp, and langfuse-hipaa are now recognized shorthand names in mcp:. Each resolves to the regional Langfuse MCP endpoint (/api/public/mcp) with Basic auth via a shared mcp:langfuse grant. Grant once with moat grant mcp langfuse (credential: Basic <base64(pk:sk)>), then list the regional name in moat.yaml. Self-hosted instances still use the full url + auth form. (#384)
  • Declarative MCP shorthand — list a well-known MCP server in moat.yaml by name alone (a bare - linear under mcp:), and Moat resolves the URL, auth header, and required grant from its built-in catalog. The map form (- name: linear) still works for attaching a policy or overriding fields, and unknown servers still take an explicit url + auth. moat grant oauth now prints this shorthand. (#383)
  • moat join — launch a second agent inside an already-running container, reusing its workspace, grants, and credentials without a new container. v1 supports same-agent joins (e.g. joining claude into a moat claude run). The status footer shows the session role and joined-agent count. (#379)
  • PostHog OAuth shortcut — moat grant oauth posthog now auto-discovers OAuth endpoints from PostHog's MCP server (https://mcp.posthog.com/mcp) without needing --url or a config file, matching the other well-known services (asana, cloudflare, hubspot, linear, notion, stripe). (#382)
  • Ministack service — ministack is now available as a service dependency, running the LocalStack-compatible Ministack local cloud emulator as a sidecar container. Declare ministack under dependencies and configure it under services.ministack (e.g. env, wait). Readiness is probed against the container's /_ministack/health endpoint. (#366)

Changed

  • MCP API-key grants now use the mcp:<name> (colon) naming convention, mirroring oauth:<name>. moat grant mcp <name> stores the credential as mcp:<name> and prints grant: mcp:<name> in its moat.yaml snippet, and the well-known context7 catalog entry resolves to mcp:context7. The previous mcp-<name> (hyphen) form is still accepted everywhere — existing stored credentials and moat.yaml files keep working — but it is deprecated; prefer mcp:<name>. No migration is required. (#386)

Fixed

  • Fix remote MCP servers failing to connect with MOAT: MCP server '<token>' not configured (HTTP 404) — previously, the relay URL written into the container's .claude.json addressed the proxy by the raw host-gateway IP (GetHostAddress), which is not in NO_PROXY. The MCP client's request was therefore routed through the proxy's CONNECT tunnel, so the proxy saw a proxied request and dispatched it to the relay handler that expects /mcp/{name} rather than the one that strips the per-run token from /mcp/{token}/{name} — parsing the auth token as the server name and returning 404. The relay URL now uses the synthetic moat-proxy host (the only host in NO_PROXY), so the client connects directly and the token is stripped correctly. This regressed in #321 (v0.5.1), which moved the proxy to synthetic hostnames but left the MCP relay URL on GetHostAddress; the ANTHROPIC_BASE_URL relay was updated at the time but the MCP relay was missed. Affects all remote mcp: servers. (#387)
  • Fix the moat.yaml snippet printed by moat grant oauth being invalid — previously, the suggested mcp: block emitted auth.grant but omitted auth.header, so copying it verbatim into moat.yaml failed config validation with 'auth.header' is required when auth is specified. The snippet now includes header: Authorization. (#382)
  • Surface an actionable hint when an injected GitHub credential is rejected — previously, a stale/expired stored token failed HTTPS git with only git's opaque could not read Username for 'https://github.com' (the proxy's 401 was hidden in the network log). After a failed run, moat now scans the network log and, when a github-granted request to github.com/api.github.com was rejected (401/403) and did not recover, prints Run 'moat grant github' to refresh it. (#380)
  • Fix moat grant github not taking effect on a running proxy daemon for env-sourced tokens — previously, the daemon's background token-refresh re-derived the GitHub token from its own process environment (GITHUB_TOKEN/GH_TOKEN), which is frozen when the daemon starts. After re-granting a fresh token, the daemon kept injecting (and wrote back to the credential store) the stale env value until moat proxy stop. Env-sourced GitHub tokens are now treated as static and no longer proactively refreshed, so a re-grant takes effect on the next run; a stale token surfaces as a 401 with a re-grant hint instead. gh-CLI-sourced tokens (gh auth token) still refresh, since that keyring is shared with moat grant and never diverges from it. (#381)
  • Fix HTTPS git fetch/push to github.com failing with only the github grant — previously, the proxy injected Authorization: Bearer <token> for github.com, but GitHub's git smart-HTTP endpoints reject Bearer with a 401 and require Basic auth, and git also aborted on the proxy's 407 CONNECT challenge because it doesn't send proxy credentials preemptively. The provider now injects Basic x-access-token:<token> for github.com (Bearer is still used for api.github.com), and containers set git http.proxyAuthMethod=basic, so git clone/fetch/push over HTTPS work with just --grant github — no SSH grant required. When both github and ssh:github.com are granted, git still routes over SSH as before. (#376)
  • Fix Claude Code reporting Failed with non-blocking status code: /bin/sh: 1: python3: not found — previously, the generated image for the Claude agent had no Python interpreter, so Claude Code's security-guidance feature (which shells out to python3) failed. Running the Claude agent now implicitly adds python to the container dependencies. Specify an explicit python@<version> in dependencies to override the version. (#369)
  • Fix service dependencies declared without an explicit version failing to start with invalid reference format — previously, a service listed as name rather than name@version (e.g. ministack instead of ministack@latest) left the image tag empty, so the reference was built as repo: and the container runtime rejected it. The service version now falls back to the registry default, matching the runtime and Dockerfile resolution paths. (#366)
  • Fix orphaned Apple container networks exhausting the IP pool — previously, because Apple's container CLI removes containers asynchronously, the container network delete issued during run teardown often ran before the run's containers had detached and failed with "active containers" / "network has a pending operation". RemoveNetwork made a single attempt and ForceRemoveNetwork re-issued the same command, so the network leaked; accumulated moat-run_* networks eventually exhausted Apple's /24 IP pool and blocked new runs. Network deletion now retries with exponential backoff until the async detach completes. (#367)
  • Fix Apple service runs failing to start with "no network address found for container" on container CLI 0.12.x — previously, moat read the service container's ID from the combined stdout+stderr of container run --detach, but newer container versions write startup progress ([1/6] Fetching image, …) to stderr, so the captured "ID" was polluted with progress text and the follow-up inspect matched no container. moat now reads the ID from stdout only, and additionally polls for the address in case it is assigned shortly after start. (#367)
  • Fix a failing pre_run hook looking like the container failed to start — previously, a non-zero exit from the hooks.pre_run command aborted the entrypoint (under set -e) with a bare exit code and no indication the hook was the cause, so the real error was easy to miss in the container output. moat now reports pre_run hook failed (exit code N) with the offending command and how to fix it, and exits with the hook's status. (#377)

v0.5.4 — 2026-06-01

Patch release with three Claude Code fixes: an Ink-based TUI freeze on first paint, host/container session-directory divergence on workspaces with . or _ in the path, and marketplace plugin hook scripts losing the executable bit.

Fixed

  • Fix Claude Code (and other Ink-based TUIs) freezing on the first paint inside the moat container — previously, when the child emitted any terminal-capability query that required a reply (CSI c Primary Device Attributes, CSI 6n cursor position, in-band resize, color queries), moat's VT compositor blocked forever on the emulator's internal reply pipe with no drain, holding tui.Writer.mu and starving the render goroutine. Input still reached the child, but no further output reached the host terminal, so the session appeared frozen and Ctrl+C wasn't visibly acknowledged even though it terminated the child. Surfaced 100% of the time with Claude Code 2.1.150+, which queries Device Attributes at startup. Moat now drains the emulator's reply pipe and routes replies back into the child's input stream via the existing injectable-reader chain. (#362)
  • Fix Claude Code sessions inside the container writing to a different ~/.claude/projects/ directory than host sessions — previously, moat slugified the workspace path by replacing only / with -, while Claude Code replaces every non-alphanumeric character. For any workspace path containing a ., _, or space (e.g. a macOS username like user.name), moat and the host CLI computed different project-directory names, so container and host sessions silently forked the project's session history and memory store. The slug now matches Claude Code's rule exactly (verified against the claude binary). Note: already-forked directories are not migrated automatically. (#364)
  • Fix marketplace plugin hook scripts failing with Permission denied inside the container — previously, CollectMarketplaceTar wrote every tar header with a hardcoded mode of 0644, so executable scripts shipped by marketplace plugins (e.g. bin/aw-hook, scripts/on-prompt-submit.sh) extracted as non-executable and Claude Code's UserPromptSubmit hook failed at runtime. The tar header now derives Mode from the source file's permissions, preserving the executable bit. (#363)

v0.5.3 — 2026-05-25

Patch release centered on Claude Code authentication inside containers — subscription detection, setup-token capture, and version pinning — plus a non-root tmpfs permissions fix.

Fixed

  • Fix claude-code@<version> pinning being ignored — previously, specifying a version such as [email protected] in dependencies still installed the latest release, because the install command dropped the version argument. The version is now passed to the official installer. (#357)
  • Fix Claude Code showing "not logged in" / "API Usage Billing" inside containers — previously, the generated ~/.claude/.credentials.json had null scopes and no subscriptionType, which Claude Code treats as an unauthenticated session. Moat now writes the standard OAuth scopes and a subscriptionType (default max, overridable via claude.subscription_type; the new claude.rate_limit_tier is also supported). Grants created by importing existing credentials use the real plan. The real plan is still enforced server-side via the proxy-injected token. Surfaced by v0.5.2 dropping the CLAUDE_CODE_OAUTH_TOKEN placeholder env var that had masked the incomplete file. (#358)
  • Fix moat grant claude failing to capture a setup-token — recent Claude CLI versions render setup-token as a TUI, so moat's output scraping always failed ("could not find OAuth token") and fell back to a manual paste anyway. Moat now runs setup-token attached to the terminal (no scraping) and reads the pasted token, reassembling it when a narrow terminal soft-wrapped it across lines. (#353)
  • Fix EACCES writing to tmpfs mounts as the non-root container user — tmpfs (used by mounts.exclude paths) was created mode 755 owned by root, so moatuser could not write to it, and noexec blocked native binaries in excluded node_modules. tmpfs is now mounted mode 1777 with exec on Docker, and with an explicit mode=1777 on Apple containers. (#355)

v0.5.2 — 2026-05-18

Patch release with Claude Code credential fixes (OAuth placeholder shape and credential expiry) plus marketplace and TUI rendering fixes.

Fixed

  • Fix Claude Code skipping OAuth-only code paths in containers — the container credentials placeholder did not look like an OAuth token and was also set in CLAUDE_CODE_OAUTH_TOKEN, so Claude Code could skip paths that determine account capabilities (e.g. 1M-context access). Moat now writes an sk-ant-oat01-*-shaped placeholder to .credentials.json and no longer sets the env var; the real token is still injected by the proxy. (#351)
  • Fix Claude Code treating injected container credentials as expired — setup-token grants carry no expiry, so the zero-value timestamp serialized to year 0001 and showed the session as logged out. A far-future expiry is now written when the grant has none. (#352)
  • Fix claude.marketplaces entries written as {source: github, repo: ...} being normalized to a git/url shape that broke plugin allowlist matching in the container. The original source shape is now preserved end to end. (#345)
  • Fix the moat footer scrolling into scrollback with Ink-based TUIs (Claude Code) — the child emits ESC[r on startup, resetting moat's scroll region, so newlines on the bottom row pushed the footer into scrollback and left a trail of copies. Moat is now the sole authority over the scroll region and reserves the footer row at the TTY level. (#349)

v0.5.1 — 2026-04-28

Patch release with one security fix (IPv6 egress firewall) and a batch of run-lifecycle and proxy fixes. Adds MOAT_HOME for relocating moat state, a multi-runtime manager so Docker and Apple containers can coexist in one install, TUI debug shortcuts, and Python 3.13/3.14 support. Gatekeeper is extracted to its own repository.

Added

  • TUI debug shortcuts — Ctrl-/ d dumps a snapshot of recent terminal I/O to ~/.moat/runs/<id>/tui-debug-<unix-ts>.json for offline analysis or feeding into a Claude session; Ctrl-/ r issues a soft terminal reset and nudges the child to redraw, recovering wedged sessions. The dump uses the same JSON format as --tty-trace and works with moat tty-trace analyze. Ring buffer size is 8 MB by default, tunable via MOAT_TTY_RING_BYTES. (#343)
  • MOAT_HOME — single env var to relocate the moat configuration directory (default ~/.moat); when set, it replaces ~/.moat as the root for runs, credentials, daemon socket/lock, keyring key file, per-run SSH sockets, and routing proxy state. Third-party state (~/.claude, ~/.config/gh, etc.) still resolves against $HOME. (#323)
  • Multi-runtime manager — Docker and Apple containers can now coexist in a single install. New runs use the default runtime; operations on existing runs (status, clean, list, system images, system containers) resolve the correct runtime automatically. Adds a RUNTIME column to the relevant tables and a runtime field to --json output. (#311)
  • Python 3.13 and 3.14 added to supported versions; bundled uv updated from 0.5.14 to 0.11.6 to support modern pyproject.toml features (#316)

Changed

  • Gatekeeper extracted to standalone module — internal/proxy/ and cmd/gatekeeper/ have moved to github.com/majorcontext/gatekeeper. The ghcr.io/majorcontext/moat-gatekeeper image is no longer published from this repository. (#333)

Security

  • IPv6 egress firewall — containers on dual-stack hosts could bypass network.policy: strict by using IPv6 addresses (e.g. AAAA DNS records). The firewall now installs ip6tables rules mirroring the existing iptables rules. No user action required; the fix applies automatically on upgrade. If ip6tables is unavailable in the container image, a diagnostic warning is logged. (#324)

Fixed

  • Fix network.host bypass via raw loopback addresses — previously, containers running under Docker host-network mode could bypass network.host enforcement by connecting to localhost or 127.0.0.1 directly, since those addresses were in NO_PROXY and skipped the proxy entirely. Loopback addresses are no longer excluded from proxy routing. (#327)
  • Fix ip6tables hanging indefinitely on hosts without the ip6_tables kernel module — previously, ip6tables -w (wait forever) blocked the firewall setup, hanging the container start and E2E tests on CI. Now uses a 5-second timeout and treats ip6tables failure as non-fatal with partial-rule cleanup. (#325)
  • Fix moat status and moat list corrupting persisted run state — previously, reconciliation could overwrite metadata for active runs (e.g. mark them stopped) when a status check ran with the wrong runtime, causing active runs to disappear from moat status. Read-only commands no longer write metadata, and reconciliation skips cross-runtime container checks. (#309)
  • Fix host unreachable from custom networks on Docker Desktop — previously, runs on user-defined Docker networks could not reach the host, breaking proxy access and producing Unable to connect to API (ConnectionRefused) errors. (#337)
  • Fix MCP servers with auth.grant failing to load credentials — previously, grant names listed under mcp[].auth.grant were validated but never appended to the credential-loading list, so auth headers were never injected. The grant list is now merged before credential processing, and FileStore.Get() is hardened against path traversal via crafted provider names. (#338)
  • Fix multi-line YAML block scalars in post_build and post_build_root hooks producing invalid Dockerfiles — previously, raw newlines from | block scalars were interpolated directly into RUN commands. Lines are now joined with &&, with trailing shell operators (&&, ;, \) stripped before joining. (#339)
  • Fix E2E service tests intermittently hanging due to orphan moat-* Docker networks accumulating without cleanup. Close() is now bounded so a stuck monitor goroutine can't deadlock teardown, and orphan networks are reaped on startup. (#342)
  • Fix capability-mismatch error message pointing at a nonexistent command — error paths suggested moat proxy restart, but the proxy command only registers start, stop, and status. Messages now point at moat proxy stop followed by re-running moat run. (#336)

v0.5.0 — 2026-04-07

v0.5 hardens network isolation and introduces operation-level policy enforcement on MCP tool calls and HTTP traffic. Host traffic is now blocked by default in every network policy mode — including permissive — and must be opted into per-port with network.host. Keep policy integration adds allow/deny/redact rules for MCP tool calls and REST API requests, with starter packs for common services and an LLM response policy that evaluates tool_use blocks before forwarding to the container. The credential-injecting proxy is now also available as a standalone gatekeeper binary that runs without the moat runtime. Other additions include multi-credential per host, custom base images, OAuth grants for MCP servers, sandbox-local MCP servers, and global mounts in ~/.moat/config.yaml.

Breaking

  • Host traffic blocked by default — containers can no longer reach services on the host machine without explicit configuration. This affects all network policy modes, including permissive (#303). Add a network.host list to restore access:

    network:
      host:
        - 11434   # Ollama
        - 5432    # local Postgres

Added

  • Keep policy integration — enforce operation-level allow/deny/redact on MCP tool calls and REST API requests via mcp[].policy and network.keep_policy; includes an LLM response policy that evaluates tool_use blocks in Anthropic API responses through claude.llm-gateway before forwarding to the container, plus starter packs like linear-readonly for quick MCP server lockdown (#288)
  • gatekeeper standalone proxy — the credential-injecting proxy is now packaged as a standalone binary that runs without the moat runtime (#299)
  • network.host — list TCP ports on the host machine that the container may access; all host traffic is blocked by default even in permissive mode (#303)
  • MOAT_HOST_GATEWAY env var — set automatically in every container; resolves to the host gateway address across all runtimes (Docker, Apple containers, Rancher Desktop). Always use $MOAT_HOST_GATEWAY rather than hardcoding addresses (#303)
  • Multi-credential per host — multiple grants (e.g., claude and anthropic) can now target the same host with different headers; clients that send placeholder headers choose which credential to use, otherwise the proxy auto-injects with anthropic preferred over claude (#295)
  • moat grant show — inspect stored grants and the credentials they hold (#297)
  • Custom base image — declare a prebuilt image as the base for the generated Dockerfile instead of inferring one from dependencies (#292)
  • OAuth grant provider for MCP servers — authenticate to remote MCP servers via OAuth flows handled on the host (#278)
  • Sandbox-local MCP servers — run MCP servers as processes inside the container under claude.mcp / codex.mcp (#184)
  • Settings passthrough — ~/.moat/claude/settings.json on the host is forwarded into the container's Claude configuration (#281)
  • Global mounts in ~/.moat/config.yaml — declare mounts that apply to every run without editing per-project moat.yaml (#282)
  • Host-side marketplace cloning — clone private Claude plugin repos on the host (with SSH fallback) before injecting them into the container (#240)
  • Protobuf compiler and plugin dependencies — protoc and language plugins are declarable in dependencies (#276)
  • Managed settings cache for Claude — copy ~/.claude/remote-settings.json into the container so Claude Code does not prompt for managed settings approval on every startup (#306)
  • AWS_PROFILE propagation — the AWS profile selected at grant time is forwarded to the proxy daemon and used for credential resolution (#296)

Changed

  • Default Node.js version updated from 20 to 22 (current LTS) for all providers (Claude, Codex, Gemini) and the TypeScript language server (#304)
  • Homebrew tap moved to its new location (#279)

Fixed

  • Fix network.host bypass — previously, MOAT_HOST_GATEWAY was included in NO_PROXY, causing host traffic to bypass the proxy entirely and skip network policy enforcement. Host traffic now flows through the proxy using synthetic hostnames (moat-host for host services, moat-proxy for proxy access). MOAT_HOST_GATEWAY now contains the synthetic hostname moat-host instead of a runtime-specific IP; update any container scripts that passed it to ping, nslookup, or iptables expecting an address literal. HTTP(S) clients continue to work without changes. Run moat proxy restart after upgrading to pick up this fix. User-supplied HTTP_PROXY / HTTPS_PROXY / NO_PROXY / ALL_PROXY / CURL_ALL_PROXY / MOAT_HOST_GATEWAY / MOAT_EXTRA_HOSTS values in moat.yaml env: or -e flags are now filtered with a warning so they cannot re-open the bypass. On Apple containers with strict policy, moat-init.sh fails closed if it cannot write synthetic hostnames to /etc/hosts — rebuild non-root custom base images so moat-init runs as root, or grant CAP_DAC_OVERRIDE.
  • Install the Rust toolchain to a shared location (/usr/local/cargo) so non-root container users can use cargo and rustc — previously, rustup installed under /root and was unreadable to the default container user (#305)
  • Add Anthropic and Gemini token placeholders so clients sending placeholder Authorization headers select the correct credential (#293)
  • Skip plugin install when the claude CLI is absent — previously, image builds failed in containers that didn't include Claude Code (#291)
  • Surface actionable errors from the AWS provider and rename legacy agentops references (#290)
  • Use ConfigureProxy for token refresh propagation in the daemon — previously, refreshed tokens weren't always picked up by in-flight requests (#289)
  • SSH fallback for Claude marketplace clones with clearer error output — previously, HTTPS-only clones failed silently for private repos (#285)
  • Correct SSH known_hosts ordering and surface clone fallback visibility — previously, marketplace clones fell back to alternate transports without logging it, making failures hard to diagnose, and known_hosts entries were written in an order that could cause SSH host key verification to fail (#283)
  • Disable interactive git credential prompts during host-side marketplace clones — previously, missing credentials caused the host clone step to hang (#280)

v0.4.0 — 2026-03-19

v0.4 introduces HTTP-level request rules for the network firewall, an env:// resolver for forwarding host environment variables into containers, and moat exec for running commands in existing containers. New credential providers cover Meta Graph API and Graphite CLI, and Ollama is now a declarable service dependency. Rancher Desktop is now a supported runtime alongside Docker and Apple containers. The proxy daemon fixes a credential scoping race and now separates credential traffic from routing traffic on distinct ports.

Added

  • HTTP request rules for the network firewall — enforce path-level policies on outbound HTTP traffic (#230)
  • moat exec command — run commands in an existing container (#232)
  • env:// secret resolver — forward host environment variables into containers as secrets (#236)
  • Host clipboard bridging — copy/paste between host and container during interactive sessions (#219)
  • Rancher Desktop container runtime support (#239)
  • Ollama service dependency — declare Ollama as a service in moat.yaml with provisioning and cache support (#238)
  • Meta Graph API credential provider (#226)
  • Graphite CLI credential provider (#218)
  • Host-local MCP servers — run MCP servers as processes on the host and relay them into the container (#183)
  • moat init command — scaffold a moat.yaml and inject runtime context into the container (#207)
  • Expose per-path network rules to agents via the MOAT_CONTEXT runtime context (#266)
  • Include documentation URLs in the MOAT_CONTEXT runtime context (#228)
  • ulimits field in moat.yaml for container resource limits (#211)
  • tmpfs-backed excludable directories for filesystem mounts (#233)
  • Node 24 runtime support (#269)

Security

  • Separate credential proxy port from routing proxy — previously, credential injection and general traffic routing shared a port, which widened the proxy's attack surface. No action required; upgrading resolves this (#213)
  • Complete run setup before registry insertion — previously, a race window during run startup could cause the proxy to serve requests before credentials were fully configured, resulting in failed or unauthenticated requests. No action required; upgrading resolves this (#250)

Fixed

  • Auto-clean stale routes on agent name collision — previously, reusing a run name while a stale route existed caused traffic to route to the wrong container (#237)
  • Configure git to use SSH for GitHub when the SSH grant is active — previously, git defaulted to HTTPS even with an SSH grant (#252)
  • Generate legacy-compatible Dockerfiles when BuildKit is unavailable — previously, image builds failed on Docker installations without BuildKit (#235)
  • Rewrite proxy host for custom network gateways — previously, non-default Docker network configurations caused the container to fail to reach the proxy (#217)
  • Resolve default runtime versions to prevent broken tarball URLs — previously, omitting a version in dependencies could produce a 404 during image build (#227)
  • Suppress interactive prompts for corepack and Playwright — previously, these tools blocked image builds waiting for TTY input (#223)
  • Fail the Docker build on plugin and marketplace install errors — previously, install failures were silently ignored (#260)
  • Add Claude CLI path so plugins can be pre-installed into container images — previously, the missing path caused plugin installs to fail silently (#261)

v0.3.0 — 2026-03-04

v0.3 replaces the per-run proxy with a shared daemon process that outlives the CLI and scopes credentials by run. The configuration file is renamed from agent.yaml to moat.yaml, and the attach/detach execution model is removed in favor of a single run lifecycle.

Breaking

  • Rename agent.yaml to moat.yaml — rename the file in your project root; the old filename is no longer recognized (#204)
  • Remove attach/detach execution model — runs now have a single lifecycle; moat attach and moat detach no longer exist (#196)

Added

  • Shared proxy daemon with per-run credential scoping — a single daemon serves all active runs (#193)
  • Credential profiles via --profile and MOAT_PROFILE (#181)
  • Config-driven credential providers via YAML (#168)
  • claude --resume — resume a previous Claude Code run by ID (#187)
  • Prepackaged language servers in moat.yaml (#185)
  • Initial prompt passthrough via -- args (#156)
  • Manual snapshots during interactive sessions via Ctrl+/ then s (#198)
  • Import host git identity (name and email) into containers (#173)
  • Resolve runs by name or ID prefix (#162)
  • claude.base_url field for host-side LLM proxies (#191)
  • clean and list commands are now worktree-aware (#182)

Changed

  • Increase Apple container memory default to 8 GB (#203)
  • Decouple Anthropic OAuth tokens from API keys per updated Anthropic ToS — run moat grant claude again to re-authenticate (#190)

Fixed

  • Make proxy liveness checks resilient to transient failures — previously, a brief network hiccup during startup caused the CLI to report the proxy as down and abort the run (#199)
  • Add timeouts to container operations and parallelize run loading — previously, a hung container blocked all CLI commands (#192)
  • Improve Apple container runtime detection — previously, detection failed silently on some macOS configurations (#176)
  • Clean up stale routes for stopped containers on startup (#172)
  • Fail early when declared grants are unavailable — previously, runs started and failed mid-execution (#160)
  • Mount main .git directory for worktree workspaces — previously, git operations inside the container failed for worktree-based projects (#157)

v0.2.0 — 2026-02-10

v0.2 removes the sessions abstraction in favor of runs as the single organizational unit, and adds worktree and npm registry support.

Breaking

  • Remove sessions feature — runs are the single source of truth; use moat list to see runs (#151)

Added

  • Git worktree utilities for managing runs inside worktrees (#153)
  • npm registry credential provider (#152)

Fixed

  • Connect to Docker Desktop's embedded BuildKit — previously, builds failed on Docker Desktop when BuildKit was only available via DialHijack (#150)
  • Prevent Docker network leaks during cleanup — previously, orphaned Docker networks accumulated after failed runs (#149)

v0.1.0 — 2026-02-08

First public release. Supports Claude Code and Gemini agents on Docker (Linux, macOS) and Apple containers (macOS 26+ with Apple Silicon).

Added

  • Container isolation — each run executes in its own container with workspace mounting
  • Credential injection via TLS-intercepting proxy — tokens are injected at the network layer, never exposed in the container environment (#128)
  • GitHub device flow authentication and encrypted credential store (#125)
  • Observability — stdout/stderr logging with timestamps, network request tracing, and trace spans (#107)
  • agent.yaml configuration — declarative runtime, dependency, and grant definitions (renamed to moat.yaml in v0.3)
  • Automatic image selection based on declared runtime (Node, Python, Go) (#102)
  • Service dependencies — sidecar containers (e.g., Postgres) with readiness checks (#102)
  • Apple containers runtime on macOS 26+ with Apple Silicon (#102)
  • Gemini agent support (#118)
  • moat doctor diagnostic command (#124)
  • Lifecycle hooks in agent.yaml (#145)
  • TUI — interactive terminal with footer controls and trace overlay (#108)
  • Audit logging with cryptographic hash chaining (#114)
  • Homebrew tap and GoReleaser for automated releases (#142, #146)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.