Docs/Reference

Trust, secrets and data

Project trust, thread protection, credential storage, data at rest and browser isolation.

pi-kit separates four things: which project resources load (trust), where tools may act (protection), where secrets are kept (credential storage), and what web pages can reach (browser isolation). None of them makes model output safe by itself: in a Bypass thread, the agent's commands run with your permissions and can reach any folder you can.

Project trust#

A repository can contain extensions, MCP servers, setup scripts, skills and prompt templates. Extensions and MCP commands run code. When you open a folder that has any of them, pi-kit lists them and asks: Trust and remember, Trust once or Skip this time.
  • Change a project's decision under Settings → Projects → (project) → Trust.
  • All saved decisions are listed under Settings → Advanced → Trust.
  • User-installed extensions run code regardless of project trust.
Trust decides what loads. It does not approve commands the model produces.

Thread protection#

Each thread is Bypass (default) or Sandboxed. Sandboxed threads run file, search and shell tools in a restricted worker and refuse browser and computer-use tools. On macOS and Linux the worker has no network access and cannot see credentials or files such as .env. On Windows the sandbox is experimental and does not fully isolate network or reads. Extensions still load on the host. See Protection.
Background agents inherit the thread's mode and start read-only. A room's lead has no tools that edit files or run shell commands and can run in the sandbox; a playbook's own tools run unsandboxed (see Rooms). Computer use is off until you turn it on and asks before acting.

Credential storage#

Settings → Advanced → Security controls where API keys and connector secrets go.
PlatformDefault
macOS, fresh profilePlain text in private files (auth.json, readable only by your account). Choose Enable credential storage to use the Keychain, protected by Touch ID or your password.
Windows, LinuxThe system's credential store. On Linux this needs a Secret Service provider such as GNOME Keyring or KWallet.
With storage on, auth.json holds a resolver instead of the key, so the pi CLI keeps working:
{
  "openrouter": {
    "type": "api_key",
    "key": "!pi-kit-secret get openrouter"
  }
}
  • Move my existing keys into the keychain (in Settings → Providers) moves keys that are still plain text. Otherwise they move when you save them again.
  • Use direct API keys instead switches back to plain text for new keys. Readable keys are copied out; store entries are kept for recovery.
  • Keys from the environment in Providers are read-only.
  • Read keys while I'm away (General → Background) keeps copies the background service can read without Touch ID.
The pi-kit-secret CLI has get, set, delete and list. Install pi-kit-secret on PATH in Advanced → Security makes it available in your terminal. get prints the secret; keep it out of logs.

Data at rest#

pi-kit's database is a private SQLite file in your data folder, readable only by your account. It is not encrypted; Settings → Advanced → Security → Disk encryption shows whether FileVault, BitLocker or LUKS protects the disk. Use full-disk encryption.
A profile from an older release with an encrypted database opens a dialog with Delete and recreate database, which backs up the old files first.
Session files, configuration and logs follow their own tools' storage rules.

Redaction#

Settings → Advanced → Privacy masks known key formats in three places: thread events before they are written to pi-kit's replay log, terminal output before it is saved, and files you export. pi's own session files and live terminal output are not redacted. Add your own patterns there, or turn redaction off per project. Check logs and screenshots yourself before you share them.

Browser isolation#

Artifacts pages run without Node.js or pi-kit's APIs, in per-thread in-memory sessions. pi-kit's own origins and non-HTTP(S) URLs are blocked; downloads and permission requests are denied. Invalid certificates are rejected unless Allow invalid HTTPS certificates on localhost is on, which never applies to remote sites.
In a browser or on a phone, the app preview frames only origins in PI_KIT_PREVIEW_ORIGINS (default none) and never proxies.
Page text, DOM and console output are untrusted input for the agent.

Network#

A local model keeps inference on your machine. Other features still use the network: package and skill installs, Hugging Face downloads, MCP services, web pages, and an attendant or room participant with a hosted model.
Remote access publishes pi-kit only on your tailnet, after you enable it and approve each device.

Reporting a problem#

Include the app version, platform, steps and the error text. Leave out API keys, authorization headers and private data.