Skip to content
HI

hisn

BetaOpen SourceApache-2.05 stars

Apache-2.0 single-binary, daemonless, rootless Linux sandbox for coding agents: each workload runs as a named session in unprivileged user, mount, pid, ipc and uts namespaces with pivot_root into an empty tmpfs, seccomp and Landlock, a private view of the filesystem, session-scoped grants, a workspace journal and an audit log.

Visit website
CategoriesAI Agent SandboxSelf-hostedCode ExecutionTypeOpen-source toolContainmentKernel sandboxRating3.2 / 5
Built onLandlockseccompLinux namespaces
DocsGitHub
Metered unit
your own Linux host
Free Tier · Open Source
Idle billing
Zero cost while idle
347 listings stay free while idle
State kept on pause
Disk only
Resume: No pause or resume: sessions stay running until stopped or until an idle_timeout expires, and a detached exec counts as use

Overview

hisn is the leanest possible answer to containing a coding agent on Linux: one Rust binary, no daemon, no root. A session is a set of unprivileged namespaces entered through pivot_root into an empty tmpfs, with only an allowlist of bind mounts visible, seccomp denying the calls that would let a workload escape the boundary, and Landlock limiting writes on top. The command sees its working directory at the same path as the host, a read-only toolchain, and private $HOME, /tmp and /run, so an agent's usual tooling works without being handed the rest of the machine. What makes it more than a wrapper are the collaboration features around the boundary. Grants attach a host path into a running session read-only or read-write and vanish with it; seats give named clients owner, member and observer roles with one-time credentials; a workspace journal records every exec with its command line, exit code and duration, plus grants, revokes and notes; and a git change report flags hooks or config changes when a session stops. Two documented contracts, the control-socket protocol and hisn ls --json, make it drivable by other tools. The limits are stated as plainly. It shares the host kernel, memory and CPU are bounded only by setrlimit, the open network mode has no allowlist and records at most 50 decisions per second individually, and the project is days old with two stars and release 0.6.x. It targets hosts with kernel 5.12+ and unprivileged user namespaces, which rules out many hardened CI runners. Treat it as a well-documented local boundary and audit trail for coding agents, not as isolation for genuinely hostile multi-tenant code.

Key capabilities

  • Single binary, no daemon and no root
  • Named sessions in user, mount, pid, ipc and uts namespaces
  • pivot_root into an empty tmpfs with allowlisted mounts
  • seccomp deny-list plus Landlock write limits
  • Private $HOME, /tmp and /run; working directory at the same host path
  • Session-scoped grants, revoked or expired with the session
  • Seats with owner, member and observer roles
  • Workspace journal with exec command lines, exits and durations
  • Git change report on session stop
  • Documented control-socket protocol and hisn ls --json
  • Known limits: shared kernel, no cgroup limits yet, no egress allowlist

hisn-quickstart.sh

# Install a release binary, then check that the host can run hisn
curl -fsSLO https://github.com/treeol/hisn/releases/latest/download/hisn-x86_64-linux-gnu
install -m 0755 hisn-x86_64-linux-gnu ~/.local/bin/hisn
hisn check

# One session per agent, with the host toolchain read-only and a private home
hisn run --name demo --detach
hisn exec --session demo -- claude
hisn journal --session demo --last 10
hisn stop --session demo

Similar alternatives

Technical specifications

Runtime architecture
Unprivileged user, mount, pid, ipc and uts namespaces per session
Runtime notes
  • pivot_root into an empty tmpfs, with an allowlist of bind mounts only
  • seccomp denies mount, unshare, setns, ptrace, bpf, io_uring and related calls
  • Landlock restricts writes as a second layer; capabilities are dropped and no_new_privs is set
  • Network is none (loopback only) by default; host needs Landlock abstract-socket scoping, open routes every connect() through a seccomp user-notification supervisor
  • Optional imported read-only rootfs (deb 12 example) or the host toolchain mounted read-only
Cold-start boot time
No VM boot: a session starts by entering namespaces and pivoting into an empty tmpfs, so start cost is process setup rather than a kernel boot
Max vCPU
Not limited beyond setrlimit; cgroup v2 limits are planned but not yet scheduled, per the README
Max memory
Not limited beyond setrlimit; cgroup v2 limits are planned but not yet scheduled, per the README
Storage model
The session sees its working directory at the same host path, a read-only toolchain, and private $HOME, /tmp and /run; grants attach host paths read-only or read-write and never outlive the session
Network isolation
The sandbox root is an empty tmpfs entered with pivot_root, only allowlisted bind mounts exist, capabilities are dropped and no_new_privs is set. seccomp denies mount, unshare, setns, ptrace, bpf, io_uring and related calls, and Landlock restricts writes as a second layer. The network is loopback-only by default; host mode needs Landlock abstract-socket scoping or an explicit flag; open mode intercepts every connect() with seccomp user notification and the supervisor makes outbound TCP connections to public addresses, refusing private and link-local targets, non-DNS UDP and other address families, with a DNS responder in the supervisor. There is no egress allowlist yet. This is a shared-kernel boundary, not a VM, and the README says a kernel vulnerability is outside the model.

Lifecycle & capabilities

Filesystem persistence
Supported
Memory / disk snapshot
Not supported
Instant forking
Not supported
GPU acceleration
Not supported
GUI desktop / VNC
Not supported
Mobile / cloud phone
Not supported
Browser automation
Not supported
Network egress control
Not supported
Pause / auto-sleep
Supported
MCP protocol server
Not supported
REST API & SDKs
Not supported
Idle billing
Zero cost while idle
State kept on pause
Disk only
Resume latency
No pause or resume: sessions stay running until stopped or until an idle_timeout expires, and a detached exec counts as use
Session limit
Sessions run until `hisn stop` or an idle timeout; stopped sessions keep their directory until pruned with `hisn ls --prune`

Pricing model

Pending Audit

Rate read 1 Dec 2026.

Pricing tiers
Free TierOpen Source
Summary

Apache-2.0 with no account, subscription or hosted tier: release binaries download from GitHub and the binary runs on a Linux machine you own, so a session costs the hardware it uses. No plan, rate card or paid edition is published, so the absence of a vendor charge is Pending audit rather than a published commitment.

Billing unityour own Linux host
View official pricing page

Related architecture guides