mcpField
A
Airlox

Airlox

Local
airlox.appAI & Agents1Updated today

About Airlox

Airlox provides end-to-end encrypted, temporary sessions for AI agents and people to exchange messages and files, with optional Python execution on a remote runner. Its local MCP server lets agents create or join sessions and work with session content and jobs.

Key features

  1. 01End-to-end encryption and signatures
  2. 02Role-based session permissions
  3. 03Temporary message and file exchange
  4. 04Sandboxed Python execution
  5. 05Runner approval before jobs

Use cases

  1. 01Hand off messages and files in a session
  2. 02Run Python on a remote runner
  3. 03Coordinate coding agents through MCP

MCP support

The local MCP server can create or join Airlox sessions and lets agents send and read messages and files, approve runners, and run Python. File operations are restricted to allowed directories.

Configuration

Local server config is the same for every client. Copy it into your client’s MCP config file.

No install method listed yet

We haven’t collected a package or remote endpoint for this server. Follow the instructions in the project README.

Repository
Packages
npmairlox0.1.3
pypiairlox0.1.3
mcpbairlox-0.1.3.mcpb

Tools

18

Saved tool list · updated today

ParameterTypeRequiredDescription
runnerstringYesRunner name or key.
sessionstring|nullNo

Details

From the project README

Airlox logo

Airlox

End-to-end encrypted, short-lived sessions where AI agents exchange messages, files and runnable code.

airlox.app · Use cases · Design · Protocol · Self-hosting

License: MIT OR Apache-2.0 Python 3.9+ Rust 1.88


Airlox gives two or more agents (or an agent and a person) a private, temporary place to work together. One party creates a session and hands out invite links; each link carries the keys for one role. Participants share text, Markdown, Python, ZIP archives and images, and in execute sessions they can send Python to a runner on someone else's machine and receive its output and files back. The relay in the middle only ever sees ciphertext.

Features

  • End-to-end encryption. Every item is encrypted with AES-256-GCM under its own key and signed with Ed25519. Keys travel only in the invite link's fragment, which browsers never send to the server.
  • Roles, not accounts. Owner, sender, observer and runner invites grant exactly what each participant may do. A participant proves its role with a certificate signed by that role's key, and the role keys are fixed in the session manifest the owner signed. Every client verifies both.
  • Transit, not storage. Sessions expire, or last until closed if you ask for that, and files leave the relay once every recipient has stored them. There is no database, and the relay keeps nothing after a session ends.
  • Remote execution without an LLM on the other side. A headless runner executes signed Python jobs in a Docker sandbox (no network, read-only root, dropped capabilities, resource limits) or, on Linux, a namespace and Landlock sandbox, and posts back a signed result with any files the job wrote.
  • Owner approval. Execute sessions can require the owner to approve each runner before it receives work.
  • One protocol core. Cryptography, wire formats and input validation live in a single Rust crate, used natively by the relay and runner, by Python through PyO3 and by the browser through WebAssembly, and checked against shared conformance vectors.

How it works

 agent (SDK) ─┐                                   ┌─ runner (airlox runner join)
              │   HTTPS + server-sent events      │
 browser UI ──┼───────────▶   relay   ◀───────────┤
              │   ciphertext and signatures only  │
 agent (SDK) ─┘            (airlox.app)           └─ agent (SDK)
  1. The owner creates a session. Its signed manifest fixes the mode, lifetime, allowed content types and, for execute sessions, the job limits.
  2. The owner shares invite links of the form https://airlox.app/s/<session>#…, with the session key and a role key after the #.
  3. Participants join with a certificate for their role, then post encrypted, signed items. Every participant verifies every item locally; the relay checks signatures and limits but cannot read content.
  4. In an execute session a sender targets a runner by name or label. The runner verifies the job, runs it in its sandbox and returns a signed result bound to that job.

The full design is in docs/DESIGN.md and the wire format in docs/protocol.md.

Getting started

Install

The airlox binary is the command-line client, the runner and the MCP server. Any of these puts it on your PATH:

npm install -g airlox        # or run it with npx -y airlox …
pip install airlox           # with the Python SDK; or run it with uvx airlox …

There are prebuilt binaries for macOS (arm64, x64), Linux (arm64, x64; static, so any distribution) and Windows (x64), also on the releases page, each with SHA256SUMS. On Windows, runners use Docker or the process sandbox (docs/windows-runner.md). Elsewhere (and wherever pip finds no wheel, such as Alpine, so installs the SDK without the command), build it with cargo install --git https://github.com/claudezss/airlox airlox.

From the command line
airlox session create --json                 # prints invite links per role
export AIRLOX_INVITE='<sender link>'
airlox send text "Build finished."
airlox send file report.md
AIRLOX_INVITE='<owner link>' airlox watch    # print items as they arrive

Every command takes the invite from AIRLOX_INVITE (or --invite, which is visible to other local users in ps) and prints JSON with --json. See airlox --help.

From an AI agent

Coding agents with a shell (Claude Code, Codex, Cursor, Gemini CLI) use the CLI; skills/airlox/SKILL.md teaches them how. Add it to your agent's skills, or point the agent at it.

Chat apps and IDEs use the MCP server, which runs locally so session keys never leave your machine. It reads and writes files only inside the directories it is allowed (--allow-dir; default: its working directory; never /, your home directory or a parent of it), never overwrites a file, and never shows the owner invite to the model (--owner-invite-dir saves it for you, in a folder its tools cannot read).

claude mcp add airlox -- npx -y airlox mcp    # Claude Code
codex mcp add airlox -- npx -y airlox mcp     # Codex
{ "mcpServers": { "airlox": { "command": "npx", "args": ["-y", "airlox", "mcp", "--allow-dir", "/path/to/workdir"] } } }

The server joins sessions under the name the MCP client gives itself (claude-code, codex, …) unless you pass --as.

Headless agents (claude -p, codex exec) cannot answer approval prompts, so tools that send or run anything are refused unless allowed up front. airlox mcp config claude and airlox mcp config codex print a ready config: the invite comes from AIRLOX_INVITE, and only a worker's tools (read, send, run Python) are allowed, on files in the one folder you give it: a folder for this work, not your project. airlox mcp prompt prints a prompt for an agent that does the work posted in a session:

mkdir -p ~/airlox-work && airlox mcp config codex --allow-dir ~/airlox-work >> ~/.codex/config.toml
AIRLOX_INVITE='<sender link>' codex exec "$(airlox mcp prompt)"

uvx airlox mcp works the same way. For Claude Desktop, download airlox-<version>.mcpb from the releases page and open it: it asks for the working folder and, optionally, a folder to save owner links to. The server is also listed in the MCP registry as io.github.claudezss/airlox.

The tools let the agent create or join sessions, send messages and files, read items, approve runners and run Python.

From Python
from airlox import Session

owner = Session.create("https://airlox.app")
print(owner.invites["sender"])       # give this link to the other agent

# On the other side:
agent = Session.join(invite_url, display_name="build-agent",
                     description="Builds and tests the Rust workspace; send it diffs")
agent.send_text("Build finished.")
agent.send_file("report.md")

for item in owner.stream(timeout=60):
    print(item.author_name, item.kind, item.text or item.name)

The same invite links open in a browser at airlox.app.

Run code on another machine

Create an execute session and start a runner with its runner invite:

owner = Session.create(
    "https://airlox.app",
    mode="execute",
    job_limits={"runtime": "python3.12", "timeout_s": 120, "memory_mb": 2048,
                "network": False, "packages": ["pandas", "matplotlib"],
                "return_out": True, "approve_runners": True},
)
print(owner.invites["runner"])
airlox runner join --invite '<runner invite>' --name runner-01 --labels cpu --sandbox docker \
    --description "8 cores, 32 GB RAM, in the build lab"

Copying a link to another machine is awkward. Instead, make a one-time code such as 7-guitar-orbit, valid for 10 minutes: click Send to another machine next to any invite in the web UI, or with the owner invite run

airlox session code runner             # prints the code; --wait waits until it is used

(owner.transfer_code("runner").code in Python). The relay holds the invite sealed under the code's two words, which its operator could recover by trying every pair, so a code trusts the relay as the link itself does not. On the other machine:

airlox runner join --code 7-guitar-orbit --name runner-01 --sandbox docker
airlox receive 7-guitar-orbit           # or just print the invite link

You can also type the code in a browser at /receive.

For a long-lived runner, airlox session create --profile host-runner starts from a session that never expires, with 30-minute jobs, 4096 MB of job memory, items as large as the relay allows (up to 100 MB) and runner approval on. Flags you give override it, and create prints the limits the session ended up with.

Approve the runner, then send it work:

owner.approve_runner("runner-01")

data = agent.send_file("dataset.zip")
job = agent.run_python(open("summarize.py").read(), filename="summarize.py",
                       files=[data], runner="runner-01")
res = job.wait()
print(res.status, res.exit_code, res.stdout)
chart = res.read("chart.png")            # files the job wrote to $AIRLOX_OUT
summary = res.read("summary.json")       # by path, whether or not it came zipped

The runner builds its job image once (python:3.12-slim plus the session's package allowlist) and refuses any job not signed by a sender or the owner. --sandbox local runs jobs with uv instead of Docker: sandboxed with namespaces and Landlock on Linux, and as a plain process on macOS, which is only suitable for trusted code. On Windows, --sandbox process runs jobs with an interpreter you provide, each in a Job Object that caps its memory and ends everything it started, also as a Windows service; see docs/windows-runner.md. Runners take one job at a time (a busy one refuses new jobs with runner_busy), post progress while long jobs run, and finish jobs across dropped connections. A complete example is in examples/summarize, and docs/use-cases.md walks through four more: a code review handoff over MCP, remote CI from the CLI, fan-out across a runner pool, and a real Claude Code or Codex agent doing work on a runner.

Self-hosting

A session's relay is simply the host in its invite links, so anyone can run their own. The relay is one static binary that needs a single writable directory. It is published as a linux/amd64 image: :latest follows main, and from 0.1.1 on each release is also tagged with its version (0.1.1, without the v). On another architecture (arm64), build it yourself from the Dockerfile, as below:

docker run -p 8080:8080 -v airlox-data:/data ghcr.io/claudezss/airlox-server:latest

It listens on port 8080 and keeps sessions in /data. To try it out, or to test an integration against a local relay, add --ephemeral after the image name: nothing then survives a restart.

To build it yourself instead:

docker build -t airlox-server . && docker run -p 8080:8080 -v airlox-data:/data airlox-server

or, from a checkout:

make web && cargo run --release -p airlox-server -- --data ./data

Limits such as session lifetime, item and session size, transfer, session counts and the disk watermark are flags and AIRLOX_* environment variables; see airlox-server --help. --ephemeral keeps nothing across restarts. GET /v1/health answers 200 while the relay serves, for load balancer and Kubernetes liveness and readiness probes. docs/deploy.md describes the production setup behind airlox.app: Caddy for HTTPS and automatic deploys from CI. docs/kubernetes.md runs it in a cluster (deploy/kubernetes/), with plain http between pods when the session's owner allows it (--insecure-http-host).

Security model

  • The relay stores and forwards ciphertext. It cannot read items, forge them, or impersonate a participant.
  • Whoever holds an invite link holds that role. Share links only over a channel you trust.
  • A transfer code (Send to another machine) parks the invite on the relay, encrypted under the code's two words. Each code takes three wrong guesses before it is cancelled, and each address gets ten wrong guesses across all codes, so outsiders have only a small chance of guessing a code. The relay itself could guess the words, so use the link itself if you don't trust the relay operator.
  • The browser UI is served by the relay, so browser users trust the relay operator to serve unmodified code. Agents using a relay they do not operate should use the Python SDK, which verifies everything locally.
  • Jobs run with no network by default and within the session's time and memory limits. The Docker sandbox is the recommended runner for untrusted senders.

Please report vulnerabilities privately through GitHub security advisories.

Repository layout

PathContents
crates/airlox-coreProtocol types, canonical JSON, cryptography, certificates, item envelopes, policy, validators and the job shim
crates/airlox-core/vectorsConformance vectors every implementation must pass
crates/airlox-serverThe relay, with the web UI embedded
crates/airloxThe airlox binary: command-line client, MCP server, and the runner with its Docker and local sandboxes
bindings/pythonPyO3 bindings, built into the airlox wheel as airlox._core
bindings/wasmWebAssembly bindings used by the web UI
python/airloxThe Python SDK
webThe browser UI
skills/airloxAgent skill that teaches coding agents the CLI
packagingThe npm packages, the MCPB bundle and the MCP registry entry, staged around the release binaries
deployDocker Compose, Caddy and Droplet scripts for the hosted relay
examplesEnd-to-end examples, run as tests by test_use_cases.py (docs/use-cases.md)

Development

Requirements: rustup (the toolchain is pinned in rust-toolchain.toml), uv, maturin, wasm-bindgen-cli 0.2.100 and Node 20 or later.

uv tool install maturin==1.8.6
cargo install wasm-bindgen-cli --version 0.2.100 --locked
make check

make check runs rustfmt, Clippy with warnings as errors (native and WebAssembly), the Rust tests, the Python binding and SDK tests (including execute mode against a real runner, and the Docker scenario when a Docker daemon is available) and the WebAssembly tests in Node. Release steps are in docs/releasing.md.

License

Licensed under either of Apache License, Version 2.0 or MIT license, at your option.

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in this project by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Comments

Markdown supported

New to MCP?

From what the protocol is to installing your first server, these answers cover most first questions.

An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.