Ailoy Agent SDK

An open-source SDK that gives every agent its own Linux microVM, so it can install software, run code and use the GPU.

Source repo
brekkylab/ailoy
Stars
★ 160
Last updated
2d ago
FARS reviewed
Sep 29, 2026
License
Apache-2.0
Primary language
Rust

At a glance

How it runs
Library / SDKFrameworkAgent plugin / skill
Works with
Universal · cross-platformCodex · Claude Code · OpenAI API · Claude API
Cost
Free software; you pay for model usage
Setup effort
Medium · a few setup steps
You'll need
Claude Code, Codex, or Gemini CLI account, or an Anthropic/OpenAI/Gemini API keyVulkan-capable GPU or Apple Metal (for GPU examples)Windows Hypervisor Platform (Windows only)Shell / CLINetwork accessLocal filesystem
Typical use
Developers embedding a coding-capable agent in their own product who do not want it touching local files: each session gets a microVM and artifacts are pulled back explicitly.
Not a fit if
  • Teams on Windows that cannot enable the Hypervisor Platform or hardware virtualization
  • Production projects that need a stable API contract and cannot absorb breaking changes
  • Users who want a turnkey product and will not configure a model CLI login or API key
Website
ailoy.co ↗ set on GitHub
Maintenance
Commits in the last 30 dayslast commit 2026-11-23

What does this agent do, and when should you use it?

Ailoy is an open-source agent SDK that ships the agent loop and the sandbox in one library. The SDK runs on your host: it sends the prompt to the model, executes the tool calls the model asks for, feeds results back and decides when the agent is done. virtx gives each agent a Linux microVM of its own, built on krun, with no separate VM daemon to install and no hosted sandbox service to wire in. The VM is the sandbox — commands and file tools run inside it, and files move in and out through virtx rather than through your machine's folders. The same API is published for Python (ailoy-py), Node.js (@brekkylab/ailoy) and Rust (the ailoy crate): build with AgentBuilder(...).instruction(...).sandbox(...).build(), then consume output with agent.run or the streaming agent.runStream. Models can run through the Claude Code, Codex or Gemini CLI backends, or through API keys and other endpoints such as Amazon Bedrock, OpenRouter, vLLM, llama-server, Ollama and LM Studio. The guest VM supports the GPU (Vulkan, Metal on Macs), and the repository doubles as a plugin marketplace so the bundled agent skill installs into Claude Code or Codex with one command.

Ailoy runs the agent's tool loop on the host and gives it a private Linux VM to act in. You spawn virtx's local server with Client.spawn(), pull an image with pull_image("python:3.12-slim-trixie"), create a sandbox with create_sandbox, then build the agent via AgentBuilder("anthropic/claude-haiku-5-5").instruction("Write what you are asked for into /artifacts.").sandbox(sandbox).build(). agent.run(query) yields one complete message per step of the tool loop, while agent.run_stream streams tokens as the model writes them; you read message.contents parts, for example those with type == "text". Inside the VM the agent installs packages, writes and executes its own scripts and leaves artifacts at paths such as /artifacts, which the host copies back with sandbox.read_file("artifacts/population.png"). Model traffic goes to the configured language-model provider; calling set_lang_model_provider("anthropic", "api") (setLangModelProvider in Node.js, ailoy::model::set_lang_model_provider in Rust) before building the agent switches an org from its CLI backend to its HTTP API. The flow is the same in Python, Node.js and Rust.

  1. Developers embedding a coding-capable agent in their own product who do not want it touching local files: each session gets a microVM and artifacts are pulled back explicitly.
  2. Data-analysis agents that must install their own dependencies, write SQL and Python against a database such as the ICIJ Offshore Leaks data, and emit charts as files.
  3. Teams with vision workloads: run SAM3 segmentation on the guest GPU (ncnn + Vulkan) or synthesize speech with Qwen3-TTS, then copy results to the host.
  4. Engineering and CAD agents: the agent writes CadQuery, renders the model from four sides, looks at the renders and iterates.
  5. People already working in Claude Code or Codex who want the coding assistant to scaffold a new agent straight from the README via the plugin marketplace.
  6. Teams that must point the agent at their own inference server (vLLM, llama-server, Ollama, LM Studio) instead of a hosted model API.

Key setup facts

Pulled from the install and usage notes below. The project README has the current values.

Install / run
  • pip install ailoy-py
  • npm install @brekkylab/ailoy @brekkylab/virtx
Environment variables
OPENAI_API_KEY GEMINI_API_KEY ANTHROPIC_API_KEY
Config files
Cargo.toml
Install notes cover
Windows

How do you install or deploy this agent?

Install the binding for your language, then give the agent's model a way to run.

Python:

pip install ailoy-py

Node.js:

npm install @brekkylab/ailoy @brekkylab/virtx

Rust declares the dependencies in Cargo.toml:

[dependencies]
ailoy = "0.3"
virtx = "0.2"

By default Claude, GPT and Gemini run through their CLIs, so install and log in to one of claude, codex or gemini. To call the provider API instead, set the key and switch the org to the api backend before building the agent:

# or OPENAI_API_KEY, GEMINI_API_KEY
export ANTHROPIC_API_KEY=...
import ailoy
ailoy.set_lang_model_provider("anthropic", "api")

On Windows the microVM needs the Windows Hypervisor Platform, which is off by default; enable it from an administrator PowerShell, restart, and have virtualization enabled in the firmware:

Enable-WindowsOptionalFeature -Online -FeatureName HypervisorPlatform

Building from source:

git clone https://github.com/brekkylab/ailoy
cd ailoy
cargo build
cd bindings/python && uv run maturin develop
cd bindings/node && npm install && npm run build

How do you use this agent?

The shortest working call in Python — spawn the virtx server, pull an image, create the sandbox, build the agent, run one turn and copy the artifact back:

import asyncio
from pathlib import Path

from ailoy import AgentBuilder
from virtx import Client


async def main() -> None:
    # Starts virtx's server, fetched into its cache the first time.
    client = Client.spawn()
    await client.pull_image("python:3.12-slim-trixie").complete()
    sandbox = await client.create_sandbox("python:3.12-slim-trixie")

    agent = await (
        # For openai, use "openai/gpt-6-luna"
        AgentBuilder("anthropic/claude-haiku-5-5")
        .instruction("Write what you are asked for into /artifacts.")
        .sandbox(sandbox)
        .build()
    )

    async for output in agent.run("Create a bar chart comparing the populations of European countries and save it to /artifacts/population.png."):
        for part in output["message"]["contents"]:
            if part["type"] == "text":
                print(part["text"])

    Path("population.png").write_bytes(await sandbox.read_file("artifacts/population.png"))

asyncio.run(main())

agent.run yields one complete message per step; agent.run_stream streams each message token by token. Equivalent Node.js and Rust snippets live in the README, using agent.run / agent.runStream and agent.run / agent.run_stream.

Or let a coding agent write the code for you — the repo is its own plugin marketplace:

claude plugin marketplace add brekkylab/ailoy && claude plugin install ailoy@brekkylab
codex plugin marketplace add brekkylab/ailoy && codex plugin add ailoy@brekkylab

Safety boundaries, hardening & integrations

Operational blast radius, source-verified safety controls, and first-run hardening steps before connecting this agent to real workspaces.

Declared capability surface (blast radius)

Local shell command execution

Can run terminal commands; pair with approval gates or container/OS sandboxing.

Local filesystem read/write

Modifies local files; work on a clean Git branch or dedicated worktree.

Outbound network access

Makes outbound requests; verify telemetry settings and model data routing on private repos.

FARS trust-control audit

Not found in source — apply before daily use
  • confirmation before acting — Turn on (or add) a confirmation step before it acts, and try it in a sandbox or test environment before real data.
  • rollback or recovery path — Back up first, or work on a git branch or snapshot, so its changes can be undone.

What are this agent's strengths and limitations?

Pros
  • Sandbox and agent loop ship in one SDK: virtx starts the microVM itself, so there is no separate sandbox daemon, container runtime or hosted sandbox service to deploy and glue together.
  • One consistent API across Python, Node.js and Rust, published as ailoy-py, @brekkylab/ailoy and the ailoy crate.
  • No provider lock-in: CLI backends (Claude Code, Codex, Gemini CLI) or API keys, plus Amazon Bedrock, OpenRouter and self-hosted vLLM / llama-server / Ollama / LM Studio.
  • Guest GPU support (Vulkan, Metal on Macs) lets the agent run ML models and even games inside its VM, not just call predefined tools.
  • The repository is its own plugin marketplace, so the ailoy skill installs into Claude Code or Codex in one command.
Limitations
  • The README warns that Ailoy is under active development and its API may change between versions, which is a real upgrade cost.
  • On Windows the microVM only runs after enabling the Windows Hypervisor Platform optional feature, turning on firmware virtualization and rebooting.
  • You must supply a model path yourself — a logged-in provider CLI or an API key — and pay that provider for usage; nothing runs without it.
  • GPU examples need a Vulkan-capable GPU or Apple Metal, and building the Python/Node bindings from source requires maturin and an npm build step.

How does this agent compare with similar options?

The README frames the usual alternative as a split stack: a library that runs the loop around the model, a hosted service that provides the sandbox, and glue code between the two. Ailoy's difference is that the loop and the sandbox are one SDK — virtx starts a local krun-based microVM per agent instead of calling an external sandbox provider, so the agent's commands and files stay inside the VM rather than in your machine's folders.

Key facts side by side with the most closely related agents.

Agent Source review Form / cost Stars Updated Language Full support on
Ailoy Agent SDK This agent 43 · Major gaps Library / SDKFree + model costs ★ 160 2d ago Rust Codex · Claude Code · OpenAI API · Claude API
E2B Sandbox 49 · Major gaps Library / SDKFreemium ★ 15k today Python —
Sandbox SDK 63 · Some gaps Library / SDKFree + model costs ★ 119 today TypeScript —
Capsule Sandbox Runtime 54 · Major gaps CLIFree ★ 303 1mo ago Rust —

How does FollowAgents rate this agent?

FollowAgents source review · FARS-2.1
Major gaps
43/ 100 5-point scale 2.2 / 5
Trust 8/29
Reliability 6/14
Adaptability 9/18
Convention 10/18
Effectiveness 7/13
Verifiability 3/8
Why each dimension lost points
Trust8 / 29 · 1.4/5

README and tests show the Agent can load builtin tools such as terminal, web_search, and web_fetch, and can spawn MCP subprocesses (uvx mcp-server-time), but the repository provides no tool permission declarations, user confirmation flow, or sandbox restrictions, so least_privilege and user_confirmation score very low. On data flow, README states support for local models and cloud APIs but does not explain how API keys are stored, whether logs are redacted, or whether data leaves the environment, so data_flow_transparency and sensitive_data_handling receive 1. external_effects is deducted for network fetching, search, and subprocess invocation; rollback receives 0 because no rollback or recovery mechanism is visible. source_attribution receives 2 because LICENSE.md clearly states Copyright 2025 Brekkylab Inc. and README links documentation and community channels. dependency_security receives 1 because Cargo.toml relies heavily on git branch/pinned-rev dependencies (chromadb-rs, tvm-runtime-rs) with no audit or vulnerability notes.

Reliability6 / 14 · 2.1/5

self_consistency receives 2: README Python/JS/WASM examples and test API names (Agent, LangModel, VectorStore, MCPClient) are broadly consistent. dependency_availability receives 1: dependencies include git repositories, optional AWS SDK, local model downloads, and an external Chroma service, which may be unavailable offline or in restricted environments, with no lockfile or mirror guidance. failure_messages receives 1: tests only console.log errors and README shows no error taxonomy or recovery guidance, so failure handling is thin.

Adaptability9 / 18 · 2.5/5

audience_and_scenarios receives 2: README targets Python, Node.js, and browser WASM developers and lists Gradio, Electron, and MCP example scenarios. capability_boundaries receives 1: README lists supported models and platforms but does not state what the Agent cannot do, tool-call safety boundaries, or model capability limits. trigger_precision receives 1: Agent.run triggering is visible in examples, but tool selection, MCP trigger conditions, and multimodal input rules lack precise specification. environment_fit receives 2: README clearly states Windows/Linux/macOS and WebGPU requirements plus Python 3.10+ and Node.js 20+, giving solid environment fit information.

Convention10 / 18 · 2.8/5

information_architecture receives 2: README is well structured with Quick Start, Key Features, installation, support specifications, and example projects. install_notes receives 2: pip and npm install commands and platform requirements are provided, but local model download, GPU driver, and Chroma service dependencies are not explained. naming_stability receives 1: README warns APIs may change with version updates and the version is 0.2.5, indicating instability. examples_and_faq receives 2: multiple example projects and test cases exist, but there is no FAQ. known_limitations receives 1: only an 'under active development' warning is given, with no concrete limitations. license receives 3: LICENSE.md is the full Apache-2.0 text with a copyright notice. versioning_changelog receives 1: Cargo.toml has a version number but there is no CHANGELOG or versioning policy. maintenance_responsibility receives 1: the publisher is unverified brekkylab; README links Discord/X and docs but provides no maintainer, security contact, or support commitment.

Effectiveness7 / 13 · 2.7/5

output_usability receives 2: examples show text, streaming, multimodal, and tool-call outputs, but output format stability and error output handling are not described. marginal_value receives 2: it offers cross-language APIs, local/cloud models, WASM, RAG, and MCP integration, adding value over a plain wrapper, but no comparison with similar frameworks is provided. cost_benefit receives 1: local models and WASM can reduce cloud cost, but the dependency and build chain is heavy (Rust, TVM, FAISS, CMake) and no resource consumption or cost guidance is given.

Verifiability3 / 8 · 1.9/5

claim_traceability receives 1: README feature claims can be partially matched to test files, but there is no per-claim mapping to code or tests. cross_source_corroboration receives 1: README, Cargo.toml, and tests partially agree on API names, but there is no independent documentation or third-party verification. fact_inference_separation receives 1: README mixes marketing language with verifiable facts and does not clearly separate implemented features from planned ones.

Risks and how to mitigate them
  • Not found in source: confirmation before actingTurn on (or add) a confirmation step before it acts, and try it in a sandbox or test environment before real data.
  • Not found in source: rollback or recovery pathBack up first, or work on a git branch or snapshot, so its changes can be undone.
  • Builtin terminal, web_fetch, web_search, and MCP subprocess tools can cause command execution, network access, and external side effects; the repository provides no permission declarations, user confirmation, or sandboxing, so restrict tool scope before deployment.
  • Cloud API keys are passed as plaintext parameters in examples, and the repository does not explain key storage, log redaction, or data egress policy; add security design before handling sensitive data.
  • Dependencies include multiple git branch/pinned-rev third-party repositories (chromadb-rs, tvm-runtime-rs) and an optional AWS SDK, so supply-chain risk and offline availability must be assessed independently.
  • README explicitly warns APIs may change with version updates and there is no CHANGELOG or versioning policy; pin versions and budget for migration in production integrations.
  • The publisher brekkylab is unverified, and maintenance responsibility, security contact, and support commitments are unclear; do not infer reliability from brand alone.
Evidence confidence: Low Reviewed Sep 29, 2026 Reviewed revision 5da4bac9fc87
See the full review method →
Maintain this project? Add the FARS badge to your README

The badge shows the current review score and verdict and links back to this page. It refreshes about once an hour after a re-review.

FARS

[![FARS review](https://followagents.com/badge/ailoy.svg)](https://followagents.com/en/agents/ailoy)
<a href="https://followagents.com/en/agents/ailoy"><img src="https://followagents.com/badge/ailoy.svg" alt="FARS review"></a>

FAQ

Do I need a paid model subscription or API key?
The software itself is Apache-2.0. The model side still needs a path: by default a logged-in Claude Code, Codex or Gemini CLI, or ANTHROPIC_API_KEY / OPENAI_API_KEY / GEMINI_API_KEY with the api backend selected. Amazon Bedrock, OpenRouter and self-hosted vLLM, llama-server, Ollama or LM Studio also work. Cost depends on the provider you choose.
Does the agent's code run on my own machine?
No. Commands and file tools execute inside the Linux microVM that virtx provides, and files cross the boundary through virtx rather than through your host directories, so the agent cannot read or write your local files directly.
Which operating systems and hardware are supported?
The README lists Linux, Windows and macOS. Windows additionally requires the Hypervisor Platform feature and firmware virtualization. Scenarios using the README's GPU examples need a Vulkan-capable GPU, or Metal on a Mac.
Is it a library or a service I have to deploy?
Primarily a library: install ailoy-py, @brekkylab/ailoy, or add ailoy/virtx to Cargo.toml, then build the agent in your own code. virtx's local server is fetched and started by Client.spawn() on first use, so there is no daemon for you to deploy.
What are the risks of adopting it now?
The README states the API may change between versions, so budget for upgrades; you also have to supply your own model backend, meet the Windows virtualization prerequisite, and have a suitable GPU for the GPU-backed examples.
Is Ailoy Agent SDK open source?
Yes. The source code is on GitHub (brekkylab/ailoy) under the Apache-2.0 licence.
Is Ailoy Agent SDK safe to use?
FollowAgents' FARS review (Sep 29, 2026) scored Ailoy Agent SDK 8/29 on trust and safety. The review did not find these safety controls in the source: confirmation before acting, rollback or recovery path. Before giving it real accounts or data: Turn on (or add) a confirmation step before it acts, and try it in a sandbox or test environment before real data.
Is Ailoy Agent SDK still maintained?
Yes. The latest commit on GitHub is from 2026-11-23, within the last 30 days.
Who makes Ailoy Agent SDK?
Ailoy Agent SDK is published on GitHub by the account brekkylab. FollowAgents has not verified which person or company is behind that account.
What is Ailoy Agent SDK's official website?
The project's GitHub repository lists https://ailoy.co as its website. That link is set by the repository owner; the source code itself is on GitHub (brekkylab/ailoy).
Was this page helpful?
View on GitHub ↗ Install ↓

Compare agents like this one

The same FARS review applied across the shortlist this agent qualifies for.

Related concepts