NEW Workflows: agents follow the steps, you sign off. Read more →
Ulpi

Tinfoil Container

PLUGIN

A tinfoil terminal backend: Ulpi's terminal, file and code tools run inside your own Tinfoil Container, an attested enclave.

by counterposition · v0.1.0

What it does

A tinfoil terminal backend: Ulpi's terminal, file and code tools run inside your own Tinfoil Container, an attested enclave, reached over the Tinfoil CLI's attested SSH tunnel. Select it with terminal.backend: tinfoil and terminal.tinfoil_container.

Dangerous-command approval stays on, and the plugin never creates, starts, stops or bills containers. Disclosure — every tool call runs the user's installed tinfoil CLI (tinfoil ssh) and OpenSSH client as subprocesses; the CLI contacts Tinfoil's control plane to look the container up, then the enclave.

The plugin passes TINFOIL_API_KEY, read through Ulpi's secret scope, to the CLI as the tunnel key, and the admin key when set (TINFOIL_ADMIN_KEY, or an admin_ key in TINFOIL_API_KEY, which the CLI also accepts); beyond those the CLI and ssh get only an allowlist of Ulpi's environment (PATH, home, temp, user, locale, SSH agent socket, certificate and HTTP proxy settings, the CLI's TINFOIL_CONTROLPLANE_URL and TINFOIL_CONFIG, Windows system directories). It never reads the CLI's saved login, and strips TINFOIL_API_KEY, TINFOIL_TUNNEL_API_KEY and TINFOIL_ADMIN_KEY from the environment of commands the agent runs.

An SSH control socket under the system temp directory (ulpi-tinfoil/) keeps the verified connection open for five idle minutes. A pre_tool_call hook rewrites a leading ~ in the path argument of read_file, write_file, patch and search_files to the container's home directory, only while terminal.backend is tinfoil, because Ulpi otherwise expands it to the host's home.

No telemetry.

What you need first

  • Needs a Tinfoil organization with Containers enabled; the public template https://github.com/counterposition/ulpi-tinfoil-workspace sets up a suitable workspace.

Review notes

What an owner reads and accepts before the install is approved.

  • Ulpi has not reviewed this version: it is listed in the public plugin catalog, and the install still fetches it at its pinned commit, checks its shape and scans it before you approve

More in Tools

All listings →