Envd

Native Rust execution daemon implementing the Environment Interface Protocol (EIP) with OS sandboxing, egress filtering, computer use, and telemetry.

Envd runs file and command operations on a local computer, remote computer, or sandbox. It can also enforce OS sandbox and egress policies, operate a shared desktop, and collect Device metrics. Clients use the Environment Interaction Protocol (EIP) over stdio, HTTP(S), or an outbound reverse WebSocket connection.

For an Agent, connect through Harness Environment Providers. For an application that calls EIP directly, use the Python client. The Host chooses permissions and deployment boundaries; Envd enforces the selected execution policy. Environment Providers manage vendor resources and prepare the connection.

Choose your path

SituationStart here
Using Harness UIHarness UI execution permissions
Trying a local EIP Environment without a modelLocal Envd example
Installing a matching native executableInstallation
Running an agent development containerSandbox image
Operating your own daemon or EIP transportConfiguration and transports
Viewing and controlling a shared desktopDesktop computer use
Restricting command destinations and injecting credentialsSession egress
Diagnosing access or missing methodsExecution boundaries and troubleshooting
Connecting through an Environment ProviderRemote Envd
Implementing an EIP client or ProviderPython EIP client
Managing Sessions, retained output, and uncertain resultsSessions and output

For Device resource samples, freshness, and Prometheus or OTLP export, use monitoring and metrics.

What it provides

Use the Session's advertised methods to find the operations available for its platform and effective configuration:

  • Read, write, search, and transfer files.
  • Run commands, send input, collect output, and stop processes.
  • Inspect ports and wait for them to open.
  • Observe and control an enabled shared desktop.
  • Inspect operation results and failures, or cancel work.

One daemon serves a Device with multiple Sessions. Each Session has a fixed working directory and owns its operations, processes, output, transfers, and execution evidence. The Sessions share the Device filesystem: a working directory does not restrict file access. Put mutually untrusted workloads in separate Host-enforced boundaries.

Try Local Envd

Run the repository's Environment Provider example to write and read a file through a private Envd Device. You need Rust and uv with Python 3.13; the example uses no model or cloud account.

  1. From the repository root, build Envd from the same checkout as the Python client.
  2. Enter the example project and install its locked dependencies.
  3. Run the Local Envd example with the binary you built.
Terminal
cargo build --locked --package a13n-envd
cd examples/environment-provider
uv sync --locked
uv run environment-provider-example local_envd \
  --executable ../../target/debug/a13n-envd

The example starts a private daemon over stdio and opens one Session. It writes and reads provider-example.txt, then reports whether the workspace survived closing the execution. LocalEnvdProviderRuntime closes the daemon when the example finishes.

To use the same path with an Agent, return a Local Envd connector from an EnvironmentSource and enable DynamicEnvironmentCapability; follow Harness integration. Configure identity, Sandbox grants, egress, executable roots, shell profiles, and limits through the runtime's LocalEnvdLaunchConfiguration. See execution boundaries and Session credential references.

Lifecycle and ownership

A Host can reuse one LocalEnvdProviderRuntime across executions. Each execution opens its own Session and checks its working directory, required methods, and readiness. Discovery alone opens no Session. Closing or cancelling one execution leaves a healthy shared Device available to the others; the runtime owner closes the Device. See daemon lifecycle.

Reference topics

TopicGuide
Build the matching binaryBuild the matching binary
Install a published binaryInstall a published binary
Isolation behaviorIsolation behavior
Minimal standalone configurationMinimal standalone configuration
Enable commandsEnable commands
Carrier profilesCarrier profiles
Validate from this repositoryValidate from this repository
TroubleshootingTroubleshooting
ReferencesReferences

On this page