# AgentENV **Repository Path**: limoncc/AgentENV ## Basic Information - **Project Name**: AgentENV - **Description**: No description available - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2026-09-27 - **Last Updated**: 2026-09-27 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README
AgentENV (AENV) is a platform for running agent environments at scale, powering agentic RL training for **Kimi K3**. --- ## 🚀 Why AgentENV - **Scale across diverse environments**: AENV runs massive numbers of Firecracker environments across machines, loading diverse OCI-compatible images on demand via [overlaybd](https://containerd.github.io/overlaybd/#/) and scaling to [1.5 million images in production](https://github.com/MoonshotAI/Kimi-K3/blob/main/k3_tech_report.pdf). Local disk acts as a bounded cache, retaining hot data and evicting cold, so the aggregate image and snapshot footprint can exceed local disk capacity by several orders of magnitude while startup stays fast cluster-wide, without pre-warming every host. - **Make idle environments inexpensive**: Snapshot-backed environments boot or resume in under 50 ms and pause in under 100 ms. Idle environments can quickly release CPU and memory, then return when new work arrives. - **Native snapshot and fork support**: AENV snapshots memory and filesystem changes incrementally, completing in under 100 ms even under heavy disk modification. A running environment can fork into multiple independent sandboxes for parallel agent workflows. Snapshots persist to S3-compatible object storage or a shared distributed filesystem to prevent data loss. - **Preserve performance and density over time**: AENV delivers high-performance I/O via ublk while sharing the host page cache across storage and memory-snapshot data. Memory ballooning returns reclaimable guest memory to the host, achieving a 9.6x memory overcommit ratio in production as environments run longer and diverge. --- ## 📋 Prerequisites - **Linux kernel 6.8+** - `/dev/kvm` access for Firecracker microVM execution If your server does not support standard KVM, see the [PVM deployment guide](https://kvcache-ai.github.io/AgentENV/dev/deployment/pvm.html) before installing. --- ## ⚡ Quick Start (Single Node) > [!WARNING] > AgentENV authenticates API requests but does not encrypt traffic. Do not send > the API key over an untrusted plaintext network. Run AgentENV on a trusted > network or terminate HTTPS at a reverse proxy or load balancer. **1. Install and start the server** *Option A — install script* Install both the server and the `aenv` CLI, then start the server as a systemd service: ```bash curl -fsSL https://raw.githubusercontent.com/kvcache-ai/AgentENV/main/scripts/install.sh | sudo bash sudo systemctl start aenv ``` *Option B — Docker* Set up the server: ```bash curl -fsSL https://raw.githubusercontent.com/kvcache-ai/AgentENV/main/scripts/docker-setup.sh | sudo bash docker pull ghcr.io/kvcache-ai/aenv-server:latest docker run -d --name aenv-server --privileged -v /dev:/dev -p 8000:8000 ghcr.io/kvcache-ai/aenv-server:latest ``` The server is accessible at `http://127.0.0.1:8000` by default. **2. Install the aenv CLI** *(skip if you used Option A in step 1)* Install separately if you used the Docker method above, or if you are running the CLI on a different machine from the server. Supports Linux and macOS on x86_64 and arm64: ```bash curl -fsSL https://raw.githubusercontent.com/kvcache-ai/AgentENV/main/scripts/install-cli.sh | bash ``` **3. Authenticate** The server generates an API key on its first startup. Retrieve it for the installation method used in step 1: ```bash # Native install sudo cat /var/lib/aenv/secrets/api-key # Docker docker exec aenv-server cat /workspace/env/secrets/api-key ``` Then run `aenv auth` and paste that key: ```bash aenv auth # AENV server URL [http://localhost:8000]: http://127.0.0.1:8000 # API key: