Postguy
Guide

Privacy and security

What Postguy sends over the network, where secrets are stored, what scripts can do, and how the opt-in control channel is protected.

Postguy works offline. Your workspace is a folder of files on your machine. Apart from the update check, which you can turn off, the app makes no network request that you did not start.

Network rules

RuleDetail
No telemetryThe app sends no usage data and no crash reports.
Update checkAt startup and once a day, Postguy asks GitHub for its latest published release (api.github.com/repos/zuramai/postguy/releases/latest). The request carries no data about you or your workspace beyond the User-Agent: Postguy/<version> header. Turn it off with Settings › About › Check automatically. Nothing is downloaded until you choose Download and install. See Updates.
No account or syncThere is no sign-in and no cloud storage.
Requests only on your actionApart from the update check, the only traffic is what you start: sending a request, a gRPC call, a WebSocket connection, an OAuth 2.0 token request, a script's pm.sendRequest, Check for updates…, downloading an update, or sending a message in the AI Agent.
AI AgentNothing is sent until you press Send. Then Postguy sends your message, and the collections, requests, environments and run results the agent reads, to the provider you chose in Settings › AI Agent and to no one else. Secret variable values the agent reads are sent unmasked. The API key goes only in that provider's request headers.
Browser linksDocumentation and GitHub in the Help menu, and Release page in the update dialog, open a page in your browser, only when you choose them.
No implicit fetchesThe Import box refuses a pasted URL instead of downloading it (see below).

These are project rules in AGENTS.md (section 5.2):

  • Never add telemetry, crash upload or cloud sync. The update check is the one owner-approved exception, and it stays one request the user can switch off.
  • Never log secret variable values, client-certificate passphrases or the control-channel token.

Import never fetches

Paste a URL (text starting with http:// or https://) into the Import box. Postguy answers URL imports are not fetched automatically; download the file and drop it here. Nothing is requested.

Download the file yourself, then drop it onto the window or choose it as a file. See Import and export.

Secrets

You can mark a variable secret in an environment, in globals, or in a collection or folder.

  • Secret values go in .postguy/secrets.json in the workspace. On Unix the file is owner-only (0600). Secrets are never written into collection or environment files.
  • OAuth 2.0 tokens follow the same rule.
  • AI Agent API keys are the exception. They live in the operating system keychain (macOS Keychain, Windows Credential Manager, Secret Service on Linux and FreeBSD), never in settings.json or the workspace. See AI Agent.
  • Postguy masks secret values wherever it echoes them: the history snapshot, the Console, script test and failure messages, and code snippets. A masked value shows as •, one per character, up to 16.
  • Collection exports blank secret values. Environment and globals exports leave them out unless you choose to include them. The workspace zip leaves out .postguy/.
The secrets file, which holds secret variable values, is not encrypted at rest. Anyone who can read your workspace folder can read the secret values. That includes your backups and any sync tool you point at it. Keep .postguy/ out of version control and out of shared folders. Keychain storage for secret variables is an undecided future item. Only AI Agent API keys use the keychain.

The cookie jar is stored on disk in .postguy/cookies.json. See Cookies, proxy and certificates.

TLS verification

SSL certificate verification in Settings › General is on by default. A request can also override it. When you turn it off, the setting reads Verification is off: responses are encrypted but unauthenticated.

Turn it off only for a server you control, such as a local test server with a self-signed certificate. A custom CA bundle in Settings › Certificates is safer. See Settings.

Scripts

Pre-request and test scripts run in an embedded JavaScript engine (QuickJS). Postguy treats them as untrusted input, so the sandbox is strict.

AreaLimit
FilesystemNone. fs is a read-only view of the collection's assets. Writes and .. escapes throw.
ProcessNo access from scripts.
NetworkOnly pm.sendRequest, which goes through the app's own request engine. At most 10 calls per script run.
Wall-clock time5,000 ms
Memory64 MiB heap, 1 MiB stack
Output1,000 console lines, 1,000 test results, 16 KiB per log line
Variable values1 MiB each
Timers and jobs10,000 pending timers, 100 timer rounds, 1,000,000 promise jobs
requireOnly .js and .json files from the collection's assets. No npm packages.

A script that exceeds a limit or throws becomes an error. The error shows its phase, origin and line. It does not crash the app.

Scripts run only for HTTP requests. To turn them all off, enable Disable scripts in Settings › General. See Scripts and tests and the scripting API.

Files from strangers

  • Importers and data files cap size, nesting and expansion. On malformed input the app returns an error instead of crashing.
  • File paths in requests resolve against the working directory. Reading outside it needs the Read files outside the working directory setting.
  • Saves are atomic. A failed save leaves the previous file intact.
  • A corrupt file is renamed with a .corrupt-<time> suffix, and the app starts without it.

The UI control channel

The control channel lets postguy-cli ui inspect and drive a running window. It is off unless you start the app with --control FILE.

  • It listens on 127.0.0.1 only, on a random port.
  • Each launch makes a fresh random token. It writes {port, token, pid} to the file you named, readable by you only (0600 on Unix). The token is never logged.
  • Every request must carry Authorization: Bearer <token>. Others get 401.
  • Stopping the app removes the file.
  • Synthetic click, key and type are refused.

Details are in UI control channel.

Headless CLI and --root

postguy-cli runs the same tools with no window and no server. With --root DIR, it refuses any path outside DIR. The refusal is the same whether or not the path exists.

Use --root when you hand the CLI to a script or an agent. See CLI.

MCP

An MCP server is planned. It does not exist yet. The project rule is that it must be opt-in. Nothing may start it, register it with an agent or open a port by default.

Report security problems through the repository.
Copyright © 2026