gitwtfhub

wtf is agentenv?

kvcache-ai/agentenv — explained in plain English

Analysis updated 2026-08-13

3,182RustAudience · ops devopsComplexity · 5/5Setup · hard

TL;DR

A platform that runs huge numbers of fast, disposable sandbox environments for AI agents to safely execute code at scale.

Mindmap

mindmap
  root((AgentENV))
    What it does
      Runs agent sandboxes at scale
      Boots environments in milliseconds
      Snapshots and forks sandboxes
    How it works
      Firecracker microVMs
      On demand image loading
      Local disk as a cache
    Use cases
      Train AI agents at scale
      Isolate untrusted code execution
      Run many parallel agent workflows
    Tech stack
      Rust
      Firecracker
      Docker
    Audience
      Infrastructure engineers
      AI researchers
      Platform teams

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

Why would anyone build with this?

REASON 1

Run thousands of short lived AI agent sandboxes for reinforcement learning training.

REASON 2

Give an AI agent a safe, isolated place to execute shell commands or code.

REASON 3

Fork a running sandbox into many independent copies for parallel experiments.

REASON 4

Replace an existing E2B based sandbox setup without changing application code.

What's in the stack?

RustFirecrackerDockerKubernetesS3

How it stacks up

kvcache-ai/agentenvlakehq/saildenoland/celld
Stars3,1823,1713,294
LanguageRustRustRust
Setup difficultyhardmoderatehard
Complexity5/54/55/5
Audienceops devopsdatadeveloper

Figures from each repo's GitHub metadata at analysis time.

How do you spin it up?

Difficulty · hard Time to first run · 1h+

Requires a Linux kernel 6.8 or newer and direct KVM access on the host machine.

License terms are not stated in the explanation.

Wtf does this do

AgentENV, also called AENV, is a platform for running huge numbers of isolated sandbox environments at once, built to support AI agents that need somewhere safe to run code and commands. It was built to power training for another AI system, Kimi K3, where thousands of these environments needed to start and stop constantly. The core idea is speed and efficiency at scale. Each sandbox is a lightweight virtual machine that can boot or resume in under fifty milliseconds and pause in under one hundred milliseconds, so idle sandboxes can quickly give back their CPU and memory instead of sitting there wasting resources. A running sandbox can also be saved as a snapshot and split into several independent copies, useful when many agent workflows need to branch off from the same starting point. These snapshots are saved to cloud storage or a shared file system so nothing is lost if a machine goes down. AgentENV can load container images on demand across many machines rather than needing every server pre loaded ahead of time, using local disk as a cache that keeps frequently used data close and discards what is not needed. In production use, this design let a deployment scale to handle over a million images while keeping startup fast everywhere. Getting started involves installing a server, either through a script or Docker, and a matching command line tool called aenv. Once running, you authenticate against the server, pull a template image such as Ubuntu, and start a sandbox with an interactive shell. AgentENV also speaks the same API as E2B, an existing sandbox service, so tools already built for E2B can point at an AgentENV server without changes. The project currently has no built in authorization, so the README is explicit that it should never be exposed to the public internet and should only run on a trusted network or behind a protected proxy. It requires a recent Linux kernel and access to KVM virtualization on the host machine.

Yoink these prompts

Prompt 1
Walk me through installing the AgentENV server and the aenv command line tool.
Prompt 2
Show me how to pull a template image and start an interactive sandbox with aenv.
Prompt 3
Explain how AgentENV snapshots and forks sandboxes for parallel agent workflows.
Prompt 4
Help me point an existing E2B integration at a self hosted AgentENV server.

Frequently asked questions

wtf is agentenv?

A platform that runs huge numbers of fast, disposable sandbox environments for AI agents to safely execute code at scale.

What language is agentenv written in?

Mainly Rust. The stack also includes Rust, Firecracker, Docker.

What license does agentenv use?

License terms are not stated in the explanation.

How hard is agentenv to set up?

Setup difficulty is rated hard, with roughly 1h+ to a first successful run.

Who is agentenv for?

Mainly ops devops.

View the repo → Decode another repo

This repo across BitVibe Labs

Don't trust strangers blindly. Verify against the repo.