@tinfoilsh/pi-provider
v0.1.2
Published
Verifiably-private models from Tinfoil secure enclaves, for the pi coding agent
Readme
Tinfoil provider for pi
Use Tinfoil's verifiably-private open models from the pi coding agent. Inference runs inside hardware secure enclaves that even Tinfoil cannot read into.
Setup
Install the extension:
pi install npm:@tinfoilsh/pi-providerStart pi and set your API key:
/login tinfoilPick a Tinfoil model with
/model.
How verification works
When pi starts, the extension uses the tinfoil
SDK to verify the inference
enclave: it checks the enclave's attestation, confirms the running code
against the release digest signed in Sigstore, and binds the attested key
to the live connection. Every request body is then encrypted end-to-end
with HPKE, so only the verified enclave can read it.
While a Tinfoil model is active, the footer shows: Tinfoil verified or
Tinfoil unverified. Run /tinfoil at any time to re-run the verification
from scratch and print the verification document. If verification fails,
the extension fails closed: requests are blocked until /tinfoil succeeds.
A failed verification cannot send your prompts anywhere.
Settings
| Variable | Default | Purpose |
|---|---|---|
| TINFOIL_API_KEY | (none) | Your tk_… key, for headless workflows. Does not need to be set if using /login tinfoil, the preferred login for everyday operation. |
