Close Menu
NCIJ Network NCIJ Network
    What's Hot

    DHS Official Resigns, Citing ‘War on Immigrants’

    July 27, 2026

    Confused Deputy Flaws Persist in Google Cloud, Microsoft Azure

    July 27, 2026

    Lawsuit claims BitMEX used server freezes and internal trading to seize 622 Bitcoin ahead of its September closure

    July 27, 2026
    Facebook X (Twitter) Instagram
    Trending
    • DHS Official Resigns, Citing ‘War on Immigrants’
    • Confused Deputy Flaws Persist in Google Cloud, Microsoft Azure
    • Lawsuit claims BitMEX used server freezes and internal trading to seize 622 Bitcoin ahead of its September closure
    • Wildfires ‘stark reminder’ of extreme climate challenge – William
    • How Andy Burnham can make his devolution agenda work | Devolution
    • Do images of Trump show White House edited Getty photo? We investigated
    • Trump says Iran war talks taking place during lull in strikes
    • Burnham to tell schools in England to adapt teaching to local business needs | Education policy
    • About
      • Our Team
      • Editorial Policy
      • Editorial Independence
      • International Support
    • Trust & Standards
      • AI Usage Policy
      • Conflict of Interest Policy
      • Corrections Policy
      • Ethics Policy
      • Fact-Checking Policy
      • Source Protection
    • Get Involved
      • Guide for Sources
      • Support Independent Journalism
    • Legal
      • Cookie Policy
      • Privacy Policy
      • Terms of Use
    Facebook X (Twitter) Instagram
    NCIJ Network NCIJ Network
    Monday, July 27
    • Home
    • World
    • Ai
    • Business
    • Politics
    • Health
    • Crypto
    • Science
    • Technology
    • Cybersecurity
    • Defense & Security
    • Economy
    • Energy
    • Europe
    • More
      • Fact Check
      • Investigations
      • Opinion & Analysis
      • Environment
    NCIJ Network NCIJ Network
    Home»Artificial Intelligence

    Kimi AI and kvcache-ai Open Sources ‘AgentENV’: A Distributed System that Powers Agentic Reinforcement Learning (RL) Training for Kimi K3

    NCIJ NETWNCIJ NETWORKBy NCIJ NETWNCIJ NETWORKJuly 27, 2026 Artificial Intelligence No Comments5 Mins Read
    Share
    Facebook Twitter LinkedIn Pinterest Email

    Moonshot AI’s Kimi team and kvcache-ai have open-sourced AgentENV (AENV), a distributed platform for running agent environments at scale. AgentENV powers agentic reinforcement learning (RL) training for Kimi K3, Moonshot’s 2.8-trillion-parameter Mixture-of-Experts model. The code ships under an MIT license.

    Why Environment Infra Holds Back Agentic RL

    Agentic RL does not just sample text. It requires the model to act inside a real computer. Every rollout needs an isolated Linux environment with a filesystem, a network stack, and live processes.

    That requirement creates a hard trade-off. Containers start fast but share the host kernel, which weakens isolation for model-generated code. Full virtual machines isolate properly but boot slowly and hold memory while idle.

    AgentENV targets exactly that gap. It runs Firecracker microVMs, then makes idle, restart, and branching cheap enough to run at training scale.

    Inside AgentENV’s Firecracker Architecture

    Each sandbox is a Firecracker microVM with its own Linux kernel, filesystem, and network namespace. Requests hit an Axum HTTP API, which forwards to an orchestrator that manages the sandbox lifecycle.

    Storage is where the design gets interesting. The rootfs is served through a ublk userspace block device backed by overlaybd layered images. Read-only base layers are shared across sandboxes, and each sandbox writes into its own upper layer.

    Inside every guest, a daemon called envd handles command execution, file operations, and health reporting on port 49983. A reverse proxy routes HTTP and WebSocket traffic from clients to services running inside the VM.

    The project also lists two density mechanisms. The host page cache is shared across storage and memory-snapshot data. Memory ballooning returns reclaimable guest memory to the host, which sustains overcommit as environments diverge over time.

    Snapshot, pause, resume, fork

    These four features are the reason the project exists. AgentENV snapshots memory and filesystem changes incrementally rather than writing a full image each time.

    The reported figures are as follows. Snapshot-backed environments boot or resume in under 50 ms and pause in under 100 ms. Incremental snapshot capture completes in under 100 ms, even under heavy disk modification.

    Fork is the feature most specific to RL. A running sandbox can clone into up to 16 independent child sandboxes on the same node. The source pauses briefly during capture, then resumes. Every child inherits the source filesystem, memory, and resource configuration.

    The practical effect is that expensive setup runs once. A team can install dependencies, clone a repository, and reach a task state. That exact state then branches into parallel rollouts. Snapshots persist to S3-compatible object storage or a shared distributed filesystem.

    One default is worth noting. Every sandbox carries a TTL, and expiry triggers a pause, not a delete. Deletion requires passing autoPause: false on the create API.

    On-demand loading and the snapshot repository

    Images load on demand through overlaybd. Local disk acts as a bounded cache that retains hot data and evicts cold data.

    This is what makes the fleet-level story work. Nodes do not need to pre-warm every image or hold a complete copy of every snapshot. The addressable image set can therefore exceed local disk capacity while startup stays fast cluster-wide.

    Snapshot state is organized in three layers. A builder staging workspace holds artifacts during a build. A committed snapshot repository is the durable source of truth. A node-local runtime cache holds launch-time derived configs.

    Two repository backends are supported: posix_fs (default) and oss. The oss path runs through a shared S3-compatible client, so an explicit region is required.

    An optional peer-to-peer transport based on iroh can advertise committed artifacts to peer nodes. It is disabled by default. The documentation is explicit that P2P does not change the committed snapshot model. For shared storage, the docs ask for at least 1 Gbps and strongly recommend 10 Gbps or faster.

    E2B compatibility is the adoption lever

    AgentENV exposes an E2B-compatible HTTP API. Point E2B_API_URL at your server and the official E2B Python or TypeScript SDK works without code changes.

    This is a deliberate distribution choice. Teams already running agents on E2B can self-host the runtime without rewriting their agent code. A native aenv CLI is also provided, and the docs recommend it for AgentENV-specific workflows.

    Deployment paths

    Prerequisites are Linux kernel 6.8+ and /dev/kvm access; the install script additionally requires Ubuntu 24.04. The aenv CLI supports Linux and macOS on x86_64 and arm64. The server itself is Linux-only, because it needs KVM.

    Five paths are documented:

    • An install script that runs the server as a systemd service
    • A Docker image published at ghcr.io/kvcache-ai/aenv-server
    • A Docker Compose stack that simulates a multi-node cluster
    • Kubernetes manifests with a gateway, scheduler, and node DaemonSet
    • A build-from-source route using the Rust toolchain

    Multi-node deployments add a gateway on :8080 and a scheduler on :9090.

    Key Takeaways

    • Deployment covers install script, Docker, Docker Compose, and Kubernetes; the multi-node control plane is documented as a prototype.
    • AgentENV runs each agent environment as a Firecracker microVM, not a container, so isolation is kernel-level.
    • The project reports boot or resume under 50 ms, and pause under 100 ms, from snapshots.
    • A running sandbox can fork into up to 16 independent children on the same node.
    • The HTTP API is E2B-compatible, so existing E2B Python and TypeScript SDK code runs unchanged.

    Check out the GitHub repository and documentation. All credit for this research goes to the researchers of this project.


    Asif Razzaq is the CEO of Marktechpost Media Inc.. As a visionary entrepreneur and engineer, Asif is committed to harnessing the potential of Artificial Intelligence for social good. His most recent endeavor is the launch of an Artificial Intelligence Media Platform, Marktechpost, which stands out for its in-depth coverage of machine learning and deep learning news that is both technically sound and easily understandable by a wide audience. The platform boasts of over 2 million monthly views, illustrating its popularity among audiences.

    AgentENV agentic Distributed Kimi kvcacheai Learning open Powers Reinforcement Sources System Training
    NCIJ NETWNCIJ NETWORK
    • Website

    Keep Reading

    Social care in England: how could we pay to fix a ‘broken system’? | Social care

    Designing Skill-Driven Financial Analysis Agents with Claude, Python, MCP Connectors, and Automated Deliverables

    Perplexity Releases pplx, a Single-Binary CLI That Puts Its Search API in the Terminal for Coding Agents

    America’s AI Investment Boom Is Reshaping the Economy

    How AI is shortening drug discovery timelines in China

    Andy Burnham vows to use his ‘political capital’ to fix social care system | Social care

    Add A Comment
    Leave A Reply Cancel Reply

    Editors Picks

    DHS Official Resigns, Citing ‘War on Immigrants’

    July 27, 2026

    Confused Deputy Flaws Persist in Google Cloud, Microsoft Azure

    July 27, 2026

    Lawsuit claims BitMEX used server freezes and internal trading to seize 622 Bitcoin ahead of its September closure

    July 27, 2026

    Wildfires ‘stark reminder’ of extreme climate challenge – William

    July 27, 2026
    Latest Posts

    The Western Myth of Russian Greatness – Foreign Policy

    July 21, 2026

    Defence stocks rally as John Healey appointed chancellor; UK borrows less than expected in June – business live | Business

    July 21, 2026

    You Pay for Internet Service in Empty Buildings on Alaska’s Adak Island — ProPublica

    July 21, 2026

    Subscribe to News

    Get the latest sports news from NewsSite about world, sports and politics.

    NCIJ Network is an independent digital news platform delivering trusted investigative journalism, European and global news, in-depth analysis, and fact-based reporting with accuracy, transparency, and integrity.

    Facebook X (Twitter) Instagram Pinterest YouTube

    DHS Official Resigns, Citing ‘War on Immigrants’

    July 27, 2026

    Confused Deputy Flaws Persist in Google Cloud, Microsoft Azure

    July 27, 2026

    Lawsuit claims BitMEX used server freezes and internal trading to seize 622 Bitcoin ahead of its September closure

    July 27, 2026

    Subscribe to Updates

    Get the latest creative news from FooBar about art, design and business.

    Type above and press Enter to search. Press Esc to cancel.