Sandboxed Claude Code over email and Slack
Project description
Airut
Sandboxed Claude Code over email and Slack. Named "Airut" (Finnish: herald/messenger).
Send a message — email or Slack — with instructions, and get results back in the same thread. Starting a new task is as simple as starting a new conversation. Airut handles everything behind the scenes: workspace creation, container isolation, network sandboxing, session persistence, and cleanup.
Self-hosted: your code and conversations never leave your infrastructure.
You → Email/Slack → Airut → Claude Code (container) → PR → Reply → You
Key Features
- Zero-friction tasking — send a message to start a task. No workspace setup, no session management, no cleanup.
- Defense-in-depth sandboxing — container isolation, network allowlist via proxy, and credential masking limit blast radius when agents run with full autonomy.
- Conversation persistence — reply to continue where you left off. Claude Code session context is maintained across messages.
- Task-to-PR foundation — combined with proper repo configuration
(
CLAUDE.md, CI tooling, branch protection), enables end-to-end autonomous workflows where agents push PRs for human review. - Email and Slack channels — authenticate via DMARC (email) or workspace membership (Slack), with sender authorization per repo.
- Web dashboard — monitor running tasks, view network activity logs, and configure the server.
Quick Start
Prerequisites
- Linux (dedicated VM recommended, Debian 13 tested)
- uv, Git, and Podman (rootless)
- At least one channel per repository:
- Email: Dedicated email account with IMAP/SMTP access
- Slack: Slack workspace with app installation permissions
Install
# Install uv (if not already installed)
curl -LsSf https://astral.sh/uv/install.sh | sh
# Install Airut from PyPI
uv tool install airut
Or install the latest development version from main:
uv tool install airut --from git+https://github.com/airutorg/airut.git
Deploy
# Validate system dependencies
airut check
# Install and start the systemd service
airut install-service
Configure
Open http://localhost:5200 in your browser. Click Configure to open the
config editor. Add repositories, set up channels, configure credentials, and
adjust resource limits.
You can also edit
~/.config/airut/airut.yamldirectly. See the documented example for the full schema.
Update
airut update
How It Works
Each conversation runs in an isolated container with its own git workspace, Claude Code session, and sandboxed network. The recommended workflow has agents push PRs for your review — you review, leave comments, and reply to iterate.
You: "Add user authentication"
↓
Agent: works → pushes PR → replies with PR link
↓
You: review PR, leave comments
↓
You: reply "Address the review comments"
↓
Agent: reads comments → fixes → updates PR → replies
↓
You: approve and merge
Sandbox Library
The airut.sandbox module is a standalone library for safe containerized
execution of headless Claude Code. It can be used independently of the gateway
to run Claude Code in isolated containers from any Python application — CI
pipelines, automation scripts, custom integrations, or your own agent
orchestrator.
Core capabilities:
- Container lifecycle — two-layer image build, execution, and cleanup via Podman or Docker
- Network isolation — transparent DNS-spoofing proxy enforcing a domain
allowlist, with no
HTTP_PROXYenv vars oriptablesrules needed - Secret masking — surrogate credential injection so real secrets never reach the container, with proxy-side replacement on egress
- Event streaming — append-only log of Claude's streaming JSON output, safe for concurrent reads during execution
- Outcome classification — typed
Outcomeenum (success, timeout, prompt-too-long, session-corrupted, container-failed) so callers match on outcomes instead of parsing strings
Quick example:
from airut.sandbox import Sandbox, SandboxConfig, Mount, ContainerEnv, Outcome
sandbox = Sandbox(SandboxConfig())
sandbox.startup()
image = sandbox.ensure_image(dockerfile, context_files)
task = sandbox.create_task(
execution_context_id="my-run-1",
execution_context_dir=run_dir,
image_tag=image,
mounts=[Mount(host_path=repo, container_path="/workspace")],
env=ContainerEnv(variables={"ANTHROPIC_API_KEY": key}),
timeout_seconds=600,
)
result = task.execute("Fix the failing tests")
if result.outcome == Outcome.SUCCESS:
print(result.response_text)
sandbox.shutdown()
See the sandbox spec for full architecture details and API reference.
Documentation
Full documentation is available on GitHub:
- Deployment Guide — installation, configuration, and service management
- Architecture — system architecture and data flow
- Security Model — channel auth, container isolation, credential handling
- Repo Onboarding — how to onboard a new repository
- Agentic Operation — message-to-PR workflow patterns
Links
License
MIT License. See LICENSE for details.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file airut-0.24.1.tar.gz.
File metadata
- Download URL: airut-0.24.1.tar.gz
- Upload date:
- Size: 1.5 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
20b7c5ea1c6a58fa2059c1383e2010b220dfa7d39eb7e5cda0fb04f47ce42cc6
|
|
| MD5 |
84769ec4e0a2c5b11f834bc9604ab319
|
|
| BLAKE2b-256 |
4ca72f1a204aa2b0d5a4ca096dcf7220488c0abc3999aae99d5d4662dc04dd0a
|
Provenance
The following attestation bundles were made for airut-0.24.1.tar.gz:
Publisher:
publish.yml on airutorg/airut
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
airut-0.24.1.tar.gz -
Subject digest:
20b7c5ea1c6a58fa2059c1383e2010b220dfa7d39eb7e5cda0fb04f47ce42cc6 - Sigstore transparency entry: 1335814155
- Sigstore integration time:
-
Permalink:
airutorg/airut@a12d79a166f26e350270d002a93211a294bf3983 -
Branch / Tag:
refs/tags/v0.24.1 - Owner: https://github.com/airutorg
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@a12d79a166f26e350270d002a93211a294bf3983 -
Trigger Event:
release
-
Statement type:
File details
Details for the file airut-0.24.1-py3-none-any.whl.
File metadata
- Download URL: airut-0.24.1-py3-none-any.whl
- Upload date:
- Size: 495.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d39e937cb8da994717bf1fc71178d15fd07c13ad3f0406b0209af64f9bf2fd3a
|
|
| MD5 |
5456e13a6b8f262b354b2c58c336c4bd
|
|
| BLAKE2b-256 |
6810fdd12834c7d0cfd84faee53eebcdf5d158e1a33c4be63ef6e7b80c2e9590
|
Provenance
The following attestation bundles were made for airut-0.24.1-py3-none-any.whl:
Publisher:
publish.yml on airutorg/airut
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
airut-0.24.1-py3-none-any.whl -
Subject digest:
d39e937cb8da994717bf1fc71178d15fd07c13ad3f0406b0209af64f9bf2fd3a - Sigstore transparency entry: 1335814229
- Sigstore integration time:
-
Permalink:
airutorg/airut@a12d79a166f26e350270d002a93211a294bf3983 -
Branch / Tag:
refs/tags/v0.24.1 - Owner: https://github.com/airutorg
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@a12d79a166f26e350270d002a93211a294bf3983 -
Trigger Event:
release
-
Statement type: