Manual Compile (Single Node)
Run AgentENV directly from source on a single Linux host, useful for development and testing.
If you want to skip building from source, see Quick Start.
Prerequisites
- Linux kernel 6.8+
/dev/kvmaccess for Firecracker microVM execution- Rust toolchain (stable) — install via rustup
sudoaccess
If the server does not support standard KVM, follow PVM Deployment instead of this guide.
Clone the Repository
git clone https://github.com/kvcache-ai/AgentENV.git
cd AgentENV
Build
# Debug build
make
# Release build (recommended for production)
make release
Start the Server
Start the server. On first normal startup it generates an API key under
$AENV_HOME/secrets/api-key and reuses it on later starts:
# Debug build
API_ADDR=0.0.0.0:8000 make start-server
# Release build
API_ADDR=0.0.0.0:8000 make start-server-release
The server auto-downloads runtime assets (Firecracker binary, kernel, rootfs) on first start. Once ready, it listens at http://127.0.0.1:8000. Read the generated key before making authenticated requests:
export AENV_API_KEY="$(cat "${AENV_HOME_PATH:-/var/lib/aenv}/secrets/api-key")"
Verify
curl http://127.0.0.1:8000/health
curl -H "X-API-Key: ${AENV_API_KEY}" http://127.0.0.1:8000/sandboxes
HTTP does not protect the key in transit. Use a trusted network, VPN, or TLS-terminating reverse proxy for remote clients.
Configuration
The server reads config/default.toml by default. Override with:
AENV_CONFIG_PATH=/path/to/config.toml make start-server
See Configuration Reference for all settings.