Install
Install with PiG
pig install npm:@tinfoilsh/pi-providerInstall with Pi
pi install npm:@tinfoilsh/pi-providerPackages run code with your permissions and influence agent behavior. Catalog inclusion is not a security audit. Review the source before installing a third-party package.
Pi manifest JSON
The pi field of package.json.
{
"extensions": [
"./tinfoil.ts"
]
}README
Written by the package's publisher, shown as published in version 0.2.0 (README.md). PiG does not review it.
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 (needs pi 0.83.0 or later):
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 document and confirms the
running code against the release digest signed in Sigstore. Every
connection is then pinned to the attested TLS key, so only the verified
enclave can read your requests.
While a Tinfoil model is active, the footer shows: Tinfoil verified or
Tinfoil unverified. Run /tinfoil at any time to verify again and print
what the verification proved. 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. |