mirrord
$ mirrord Official Med Riskmirrord injects a dynamic preload layer (LD_PRELOAD / DYLD_INSERT_LIBRARIES) into a local process so it inherits a remote Kubernetes pod's env vars, filesystem, and network traffic without building container images.
brew install mirrord mirrord wraps local binaries at the libc/syscall layer to mirror cluster traffic and env vars, which an MCP server cannot replicate.
Agent-Readiness Checklist
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
Works non-interactively when --target and -f mirrord.json are passed, but mirrord ls lacks --json output and missing target flags trigger interactive prompts.
- Supports
-f <config>JSON/YAML configuration mirrord lslacks--jsonoutput flag
Supports mirror-only traffic and read-only FS modes in mirrord.json, though it launches privileged agent pods on the cluster and can steal traffic or write remote files if misconfigured.
- Configurable read-only FS and mirror network modes
- Deploys remote agent pods and can intercept/steal pod traffic
Native binaries on macOS, Linux, and Windows via Homebrew or install scripts, though macOS SIP restrictions can affect Apple-signed binaries.
- macOS, Linux, and native Windows support
Eliminates slow Docker build-push-deploy cycles when running local tests against cluster dependencies.
- Zero-container-build local execution in pod context
Official MetalBear (metalbear-co/mirrord) OSS CLI under MIT license with active commercial backing.
- Official
metalbear-co/mirrordrepository (MIT)
Good docs at mirrord.dev covering config schema, though dynamic library injection edge cases require reading troubleshooting guides.
- Config reference at mirrord.dev
Security, Auth & Guardrails
Uses active ~/.kube/config (KUBECONFIG) to launch ephemeral agent pods; optional MetalBear Teams licenses use API keys or license.pem.
OSS CLI is MIT-licensed and free; mirrord for Teams operator features require a commercial license.
# mirrord Agent Rules - Always specify `-t <target>` and `-f <mirrord.json>` explicitly to avoid interactive target prompts. - Set `fs.mode: read` and `network.incoming.mode: mirror` in `mirrord.json` when testing against shared clusters. - Never steal live production traffic (`steal` mode) without explicit human confirmation.
Agent-Ready Command Recipes
Safe Read-Only Queries
mirrord ls -n staging
Prints targetable Kubernetes workloads in the namespace without launching an agent pod.
Controlled Writes & Previews
mirrord exec --target deployment/api -f .mirrord/mirrord.json -- pytest tests/integration
Executes the local command using an explicit .mirrord/mirrord.json config (mirror-only / read-only fs) instead of interactive prompts.
Strengths for Agents
- + Runs local test suites or scripts directly inside a remote pod's network and env context.
- + Declarative
mirrord.jsonsupports strict read-only filesystem and traffic-mirroring safeguards. - + Fast Rust-based CLI across macOS, Linux, and Windows.
Caveats & Pitfalls
- !
mirrord lshas no--jsonoutput mode. - ! Omitting
--targetor running withoutmirrord.jsoncan fall into interactive prompts or overly permissive traffic stealing. - ! macOS System Integrity Protection (SIP) blocks preload injection on
/usr/binbinaries.