← Catalog

@tinfoilsh/pi-provider

Verifiably-private models from Tinfoil secure enclaves, for the pi coding agent

Provider

Install

Install with PiG

pig install npm:@tinfoilsh/pi-provider

Install with Pi

pi install npm:@tinfoilsh/pi-provider
Review before installing

Packages 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

  1. Install the extension (needs pi 0.83.0 or later):

    pi install npm:@tinfoilsh/pi-provider
    
  2. Start pi and set your API key:

    /login tinfoil
    
  3. Pick 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

VariableDefaultPurpose
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.