Configure Providers
Construct validated provider configurations, recipes, and credentials to provision and connect to local, container, or cloud environments.
Start by choosing a backend. Then prepare its target inputs, account settings, and credentials separately:
| Input | What to put there | Example |
|---|---|---|
Target configuration (environment_model) | Workspace and execution settings | Root directory, container mounts, required methods |
Account configuration (configuration_model) | Backend location and account selection | Docker Engine, E2B domain, HTTP endpoint |
Credential (credential_model) | Current access secret | API key or HTTP EIP token |
| Runtime collaborator | A Host-owned live connection or runtime | Shared Local Envd Device |
EnvironmentState | A saved reference to the selected target | Container or sandbox identity |
Call definition.execution_connector(recipe, configuration=..., credential=..., state=...) to validate these inputs and construct a connector. Call open() when you are ready to acquire execution resources. To borrow a Host-owned connection, pass runtime=... with account settings and omit credential.
Creating or starting managed targets is a separate step: management.open_provider(configuration=..., credential=...) acquires the management client. Follow Lifecycle and state for that workflow. Save target state for later connections; keep live clients in memory. To continue an existing Envd Session, use a separate Session recovery hint.
The sections below explain the decisions for each backend. Use the generated field reference for complete schemas, defaults, and numeric limits.
Host outbound connections
For an HTTP proxy, set HTTP_PROXY, HTTPS_PROXY, ALL_PROXY, or NO_PROXY in the Host process environment; lowercase forms are also supported. These settings route Host-owned HTTP connections. Configure Session egress separately for commands running on the Device.
Keep TLS verification enabled and use a trusted CA for private HTTPS endpoints. Setting A13N_OUTBOUND_TLS_VERIFY=false before constructing an owned HTTP client disables certificate and hostname checks. Existing or supplied clients, vendor SDKs, and WebSocket transports retain their own TLS settings. See Remote Envd for endpoint and CA configuration.
Direct Local
- Set
root.pathto an existing absolute Host directory, as in the quickstart. - Keep the default file-only configuration, or add allowed executables using the command example.
- For shell syntax, add a shell profile with a unique ID, absolute executable, fixed arguments if needed, and
posixorpowershelldialect. Enable login explicitly for a supported POSIX shell; PowerShell profiles do not support login mode. - Select environment-variable access.
inherit_environmentdefaults to false. An emptyallowed_environment_keysrejects all explicit set/unset keys; list allowed keys or useNoneto allow any key.
The root configuration permits writes. To expose it as a reference-only Harness mount, withhold write actions in the mount's permission ceiling. Direct Local runs under the Host account and provides no OS sandbox. It is stateless, so its connector uses state=None.
The Provider's resource limits govern file values, concurrent processes, command wall time, and retained output. They are separate from the tools' display limits; look up their defaults in the field reference.
Local Envd
Configure Local Envd at two levels:
- Launch the Device. Give the Host runtime a
LocalEnvdLaunchConfiguration: execution identity, filesystem sandbox, network mode, default directory, executable roots, shell profiles, and resource limits. Executable roots and shell profiles start empty. The Host boundary determines which isolation features are available. - Select each Session and directory view. Put startup policy in
LocalEnvdEnvironmentConfiguration.session: working directory, sandbox,egress_mode,egress, lifecycle and command selection. The outerworking_directoryselects the directory view;required_methodsandexpected_boundaryvalidate the resulting execution. A shared Host Session owner lets multiple views borrow one Session. Filesystem policy selects what the worker may access; view cwd only selects where work begins.
Omitting the working directory uses the Device default. A Host that persists Run selections resolves an explicit directory before accepting work. Output limits must fit together: previews fit within each stream, each Session reserves both streams, and Session spools fit within the Device quota.
Keep the shared LocalEnvdProviderRuntime alive until all borrowing executions close, then close it separately or leave its async context. Execution close releases its borrower; a shared Session owner detaches on final release and retains recovery state. Local Envd is available to library callers and Harness UI; Service does not offer this provider.
Docker
Use Docker runtime for target settings, image requirements, and shared Engine clients. In the field reference, DockerRecipe manages a target and DockerEnvironmentConfiguration connects to the selected target.
Cloud Providers
Use Cloud Providers for account settings, credentials, runtime differences, and desktop preparation. The field reference separates fixed-target Harness inputs from Service management recipes, which can prepare automatic images or snapshots. Constructing a connector does not create a billable target.
E2B
For setup and backend limits, see E2B.
Daytona
For setup and backend limits, see Daytona.
Modal
For setup and backend limits, see Modal.
Vercel Sandbox
For setup and backend limits, see Vercel Sandbox.
Fly.io Sprites
For setup and backend limits, see Fly.io Sprites.
Runloop
For setup and backend limits, see Runloop.
boxd
For setup and backend limits, see boxd.
Remote HTTP / WebSocket Envd
- Register or select the externally managed Device.
RemoteEnvdStateData.device_ididentifies it. - Set startup policy under
RemoteEnvdEnvironmentConfiguration.session, including optionalegress_modeand reference-onlyegress. Set outerworking_directoryfor the directory view, plusrequired_methodsand optionalexpected_boundary. Session grants must fit the daemon's deployment ceiling. - Supply transport settings. HTTP uses an
endpointand separateHttpEnvdCredential; WebSocket uses the Host's authenticated connector/runtime. - Open an execution to acquire the Session, and close it after use. Target provisioning, stop, destruction, and keepalive remain with the external owner.
HTTP defaults to a 10-second initialization timeout, 30-second request timeout, and 32 in-flight requests. Plaintext private links require explicit opt-in. WebSocket defaults to a 10-second connection timeout; its Host runtime owns the connection and protocol settings. These Provider timeouts are distinct from the low-level client's defaults.
Continue to Remote Envd for transport setup or the Python EIP client for direct Session operations.