# Capabilities

Each row links to the code or the document that implements it, and every implementation is
exercised by the existing unit, Docker or end-to-end CI suites; measurements are in
[speed](https://docs.hermitbox.dev/v0.2.0/speed.md). hermitbox's local tools require the prepared images and the host policy in
[native tools](https://docs.hermitbox.dev/v0.2.0/native-tools.md); [tiers](https://docs.hermitbox.dev/v0.2.0/tiers.md) states their limits.

hermitbox is **open source under AGPL-3.0-only**. What you embed or copy into your own project (the
SDKs, the integrations, the GitHub Action and the stack templates) is Apache-2.0.

| Capability | hermitbox |
| --- | --- |
| Create from image | [yes, container and vm tiers](https://github.com/hermitbox/hermitbox/blob/f9b5d4aa3cc4636cd916d6b84e56d6ba38b271a7/control/src/public-model.ts) |
| Create from snapshot | [yes](https://github.com/hermitbox/hermitbox/blob/f9b5d4aa3cc4636cd916d6b84e56d6ba38b271a7/control/src/public-model.ts) |
| Create from warm template | [yes](https://docs.hermitbox.dev/v0.2.0/templates.md) |
| Templates from code | [yes, builder](https://github.com/hermitbox/hermitbox/blob/f9b5d4aa3cc4636cd916d6b84e56d6ba38b271a7/sdk/typescript/src/template.ts) |
| Run command | [yes, run](https://github.com/hermitbox/hermitbox/blob/f9b5d4aa3cc4636cd916d6b84e56d6ba38b271a7/sdk/typescript/src/handles.ts) |
| Stream output | [yes, stream](https://github.com/hermitbox/hermitbox/blob/f9b5d4aa3cc4636cd916d6b84e56d6ba38b271a7/sdk/typescript/src/handles.ts) |
| Background process | [yes, spawn](https://github.com/hermitbox/hermitbox/blob/f9b5d4aa3cc4636cd916d6b84e56d6ba38b271a7/sdk/typescript/src/handles.ts) |
| Process stdin | [yes, stdin](https://github.com/hermitbox/hermitbox/blob/f9b5d4aa3cc4636cd916d6b84e56d6ba38b271a7/sdk/typescript/src/handles.ts) |
| Signals | [yes, signals](https://github.com/hermitbox/hermitbox/blob/f9b5d4aa3cc4636cd916d6b84e56d6ba38b271a7/sdk/typescript/src/handles.ts) |
| PTY | [yes, PTY](https://github.com/hermitbox/hermitbox/blob/f9b5d4aa3cc4636cd916d6b84e56d6ba38b271a7/sdk/typescript/src/handles.ts) |
| Persistent shell sessions | [yes, shell](https://github.com/hermitbox/hermitbox/blob/f9b5d4aa3cc4636cd916d6b84e56d6ba38b271a7/sdk/typescript/src/handles.ts) |
| waitForPort | [yes, process readiness](https://github.com/hermitbox/hermitbox/blob/f9b5d4aa3cc4636cd916d6b84e56d6ba38b271a7/agent/src/field_process.rs) |
| Read files | [yes](https://github.com/hermitbox/hermitbox/blob/f9b5d4aa3cc4636cd916d6b84e56d6ba38b271a7/sdk/typescript/src/files.ts) |
| Write files | [yes](https://github.com/hermitbox/hermitbox/blob/f9b5d4aa3cc4636cd916d6b84e56d6ba38b271a7/sdk/typescript/src/files.ts) |
| List files | [yes](https://github.com/hermitbox/hermitbox/blob/f9b5d4aa3cc4636cd916d6b84e56d6ba38b271a7/sdk/typescript/src/files.ts) |
| Watch files | [yes](https://github.com/hermitbox/hermitbox/blob/f9b5d4aa3cc4636cd916d6b84e56d6ba38b271a7/sdk/typescript/src/files.ts) |
| Upload files | [yes](https://github.com/hermitbox/hermitbox/blob/f9b5d4aa3cc4636cd916d6b84e56d6ba38b271a7/sdk/typescript/src/files.ts) |
| Download files | [yes](https://github.com/hermitbox/hermitbox/blob/f9b5d4aa3cc4636cd916d6b84e56d6ba38b271a7/sdk/typescript/src/files.ts) |
| Find files | [yes, bounded native search](https://github.com/hermitbox/hermitbox/blob/f9b5d4aa3cc4636cd916d6b84e56d6ba38b271a7/agent/src/file_search.rs) |
| Grep file contents | [yes, bounded native search](https://github.com/hermitbox/hermitbox/blob/f9b5d4aa3cc4636cd916d6b84e56d6ba38b271a7/agent/src/file_search.rs) |
| Directory sync | [yes, incremental](https://github.com/hermitbox/hermitbox/blob/f9b5d4aa3cc4636cd916d6b84e56d6ba38b271a7/sdk/typescript/src/local-files.ts) |
| Git | [yes, native command wrapper](https://github.com/hermitbox/hermitbox/blob/f9b5d4aa3cc4636cd916d6b84e56d6ba38b271a7/sdk/typescript/src/git.ts) |
| Ports and preview URLs | [yes, token-protected agent previews](https://docs.hermitbox.dev/v0.2.0/agent.md) |
| Raw tunnels | [yes, edge TCP/TLS fronts](https://github.com/hermitbox/hermitbox/blob/f9b5d4aa3cc4636cd916d6b84e56d6ba38b271a7/edge/src/front.ts) |
| Egress allowlist including DNS | [yes, container host policy](https://github.com/hermitbox/hermitbox/blob/f9b5d4aa3cc4636cd916d6b84e56d6ba38b271a7/src/runtime/docker/egress.rs); [process sandboxes in the kernel where the host grants it](https://docs.hermitbox.dev/v0.2.0/bpf.md) |
| Internet off | [yes, tier-specific enforcement](https://docs.hermitbox.dev/v0.2.0/tiers.md) |
| Sleep with memory | [yes, suspension by tier](https://docs.hermitbox.dev/v0.2.0/tiers.md) |
| Pause | [yes](https://docs.hermitbox.dev/v0.2.0/tiers.md) |
| Auto-resume on request | [yes, edge hold and wake](https://github.com/hermitbox/hermitbox/blob/f9b5d4aa3cc4636cd916d6b84e56d6ba38b271a7/control/src/edge-service.ts) |
| Snapshot | [yes](https://github.com/hermitbox/hermitbox/blob/f9b5d4aa3cc4636cd916d6b84e56d6ba38b271a7/control/src/sandboxes.ts) |
| Fork | [yes, snapshot forks](https://github.com/hermitbox/hermitbox/blob/f9b5d4aa3cc4636cd916d6b84e56d6ba38b271a7/control/src/sandboxes.ts) |
| Move between owned hosts | [yes, fenced transfer](https://github.com/hermitbox/hermitbox/blob/f9b5d4aa3cc4636cd916d6b84e56d6ba38b271a7/control/src/transfers.ts) |
| TTL | [yes](https://github.com/hermitbox/hermitbox/blob/f9b5d4aa3cc4636cd916d6b84e56d6ba38b271a7/control/src/sandbox-lifetime.ts) |
| Idle timeout | [yes](https://github.com/hermitbox/hermitbox/blob/f9b5d4aa3cc4636cd916d6b84e56d6ba38b271a7/control/src/sandbox-lifetime.ts) |
| Keep alive | [yes](https://github.com/hermitbox/hermitbox/blob/f9b5d4aa3cc4636cd916d6b84e56d6ba38b271a7/control/src/sandbox-lifetime.ts) |
| Labels | [yes](https://github.com/hermitbox/hermitbox/blob/f9b5d4aa3cc4636cd916d6b84e56d6ba38b271a7/control/src/sandboxes.ts) |
| Metadata | [yes](https://github.com/hermitbox/hermitbox/blob/f9b5d4aa3cc4636cd916d6b84e56d6ba38b271a7/control/src/sandboxes.ts) |
| Lookup by name or metadata | [yes](https://github.com/hermitbox/hermitbox/blob/f9b5d4aa3cc4636cd916d6b84e56d6ba38b271a7/control/src/sandboxes.ts) |
| Metrics | [yes, bounded retained samples](https://github.com/hermitbox/hermitbox/blob/f9b5d4aa3cc4636cd916d6b84e56d6ba38b271a7/control/src/sandbox-lifetime.ts) |
| Lifecycle events | [yes](https://github.com/hermitbox/hermitbox/blob/f9b5d4aa3cc4636cd916d6b84e56d6ba38b271a7/control/src/events.ts) |
| Webhooks | [yes, signed and retried](https://github.com/hermitbox/hermitbox/blob/f9b5d4aa3cc4636cd916d6b84e56d6ba38b271a7/control/src/webhooks.ts) |
| Code interpreter with charts | [yes on containers and processes](https://docs.hermitbox.dev/v0.2.0/interpreter.md) |
| Desktop and computer use | [containers and namespace-capable processes, X11/noVNC](https://docs.hermitbox.dev/v0.2.0/native-tools.md) |
| SSH | [containers and namespace-capable processes, raw or HTTP edge wake](https://docs.hermitbox.dev/v0.2.0/native-tools.md) |
| Object-store bucket mounts | [yes, real FUSE with host opt-in](https://docs.hermitbox.dev/v0.2.0/native-tools.md) |
| Browser and CDP | [yes on containers and processes](https://docs.hermitbox.dev/v0.2.0/native-tools.md) |
| Per-sandbox MCP server | [yes](https://docs.hermitbox.dev/v0.2.0/mcp.md) |
| GitHub Action | [yes, repo action](https://github.com/hermitbox/hermitbox/blob/f9b5d4aa3cc4636cd916d6b84e56d6ba38b271a7/action/action.yml) |
| CLI | [yes](https://github.com/hermitbox/hermitbox/blob/f9b5d4aa3cc4636cd916d6b84e56d6ba38b271a7/cli/src/main.ts) |
| TypeScript SDK | [yes](https://github.com/hermitbox/hermitbox/blob/f9b5d4aa3cc4636cd916d6b84e56d6ba38b271a7/sdk/typescript/src/index.ts) |
| Python SDK | [yes, sync and async](https://github.com/hermitbox/hermitbox/blob/f9b5d4aa3cc4636cd916d6b84e56d6ba38b271a7/sdk/python/src/hermitbox/__init__.py) |
| Self-hosted deployment | [yes, owned Linux hosts](https://docs.hermitbox.dev/v0.2.0/operations.md) |
| Runs without root | [process and Wasm tiers; vm where the user can open `/dev/kvm`](https://docs.hermitbox.dev/v0.2.0/vm.md#what-a-host-needs) |
| Projects and quotas | [yes](https://docs.hermitbox.dev/v0.2.0/api.md#projects-and-limits) |
| Machine providers and autoscale | [yes, owned-node adapters](https://docs.hermitbox.dev/v0.2.0/providers.md) |
| Source availability and licence | [AGPL-3.0-only](https://github.com/hermitbox/hermitbox/blob/f9b5d4aa3cc4636cd916d6b84e56d6ba38b271a7/LICENSE.md); SDKs, integrations, GitHub Action and stack templates [Apache-2.0](https://github.com/hermitbox/hermitbox/blob/f9b5d4aa3cc4636cd916d6b84e56d6ba38b271a7/LICENSES/Apache-2.0.txt) |

Process desktop and HTTP SSH are tested as an ordinary user on the signed installation, through
both SDKs and the installed CLI. [Startup measurements](https://docs.hermitbox.dev/v0.2.0/speed.md) give thirty samples per tool and
the different resource guarantees of containers and processes.

## hermitbox's guarantees by tier

Each hermitbox sandbox reports the [guarantees](https://docs.hermitbox.dev/v0.2.0/host-capabilities.md) its tier gives on that host,
and a create can `require` any of them. The node computes them in
[`tier_guarantees`](https://github.com/hermitbox/hermitbox/blob/f9b5d4aa3cc4636cd916d6b84e56d6ba38b271a7/src/manager/store_lease.rs); a guarantee a node doesn't announce is false.

- `own-kernel`: vm only.
- `memory-limit`: container when the engine enforces it, and vm (the guest's RAM).
- `cpu-limit`: container when the engine enforces it, and vm (whole vCPUs).
- `private-network`: container and vm.
- `private-pids`: container and vm.
- `separate-users`: process as root, when the credential-drop probe passes.
- `host-firewall`: container, on a rootful engine with the host firewall loaded, and process
  where `kernel-network-policy` is on and the sandbox's own programs are attached ([bpf.md](https://docs.hermitbox.dev/v0.2.0/bpf.md)).
- `memory-sleep`: process, container on a rootful engine with memory limits, and an ordinary
  user's vm once its start test has restored a guest on that host.
- `browser-sandbox`: container with the native-tools seccomp profile and user namespaces, and
  process when its browser probe passes.

The vm tier runs only where KVM works: as an ordinary user, or as root through its separate
worker service, which the server preset installs. Its guarantees, network policy and limits are
in [vm.md](https://docs.hermitbox.dev/v0.2.0/vm.md), with what is tested, and its thirty-sample measurements in
[tiers.md](https://docs.hermitbox.dev/v0.2.0/tiers.md#vm-tier-measurements).
