The open-source agent SDK that gives every agent its own VM.
Ailoy is an open-source SDK for building AI agents right in your own code. Every agent gets a Linux VM of its own as its sandbox, so it can install software, write and run code and keep files without touching your machine. The sandbox is part of how you build the agent, not a separate service you wire in.
CAD modeling
Image editing
Gameplay
Laya(JEV)
It supports Python, JavaScript ( TypeScript), and Rust APIs, and works on Linux, Windows, and macOS.
[!WARNING]
Ailoy is under active development, and its API may change between versions.
Requirements
No system dependencies are required, but your agent's model needs a way to run: by default its provider's CLI (Claude Code, Codex or Gemini CLI), or its API with a key.
On Windows, the sandbox's microVM runs on the Windows Hypervisor Platform, which is off by default.
Turn the optional feature on from an administrator PowerShell and restart, with virtualization enabled in the firmware:
By default, Claude, GPT and Gemini run through their CLIs, so install and log in to the one for your model: Claude Code (claude), Codex (codex) or Gemini CLI (gemini).
To call the provider's API instead, set its key and switch the org to the api backend before building the agent, e.g. ailoy.set_lang_model_provider("anthropic", "api") in Python (setLangModelProvider in Node.js, ailoy::model::set_lang_model_provider in Rust):
export ANTHROPIC_API_KEY=... # or OPENAI_API_KEY, GEMINI_API_KEY
Amazon Bedrock, OpenRouter and a server you run yourself (vLLM, llama-server, Ollama, LM Studio) are backends too; see the model providers guide.
Then build your agent with this simple API in your preferred language:
Python
pip install ailoy-py
import asyncio
from pathlib import Path
from ailoy import AgentBuilder
from virtx import Client