Security overview
What PIYX does to protect your account, your files and your computer, and, just as important, where those protections stop.
Last updated 20 October 2026
1. Where things run
PIYX has three parts: the web app (accounts, chats, billing), the agent (reads and edits files, runs commands) and the language model. The agent and model run on the operator’s machine; the browser never talks to the agent directly, so the agent’s token never reaches your browser. The agent can be configured to accept only requests that carry a private token, and refuses to listen on a network address without one unless the operator explicitly allows it.
2. Accounts and sessions
- Passwords are hashed with scrypt and a per-user salt; PIYX never stores or emails the password itself.
- Session tokens are random, stored only as hashes in the database, and expire after 30 days. Cookies are HttpOnly and SameSite, and Secure over HTTPS.
- Sign-in and sign-up attempts are rate limited per network.
- Every API call checks that the chat or project belongs to the signed-in account. Another account’s items answer “not found”.
- Requests that change data from another website are rejected, so a malicious page cannot drive PIYX through your browser.
3. Payments
Checkout and plan management happen on Stripe’s pages. PIYX never sees your card number. Stripe’s notifications to PIYX are verified with a signature before they change a plan.
4. Your files
- Confined to the folder you chose. Paths are resolved and checked, including through links and Windows junctions, so PIYX cannot read or write outside it. Source folders for a migration are read-only.
- You approve changes. Edits arrive as a diff and commands as the exact line, and wait for your decision. Deleting a file always asks, even with automatic approval on.
- Careful overwrites. An existing file can only be overwritten after PIYX has read it, edits keep line endings and encoding, and writes are atomic so a crash cannot leave half a file.
- Undo. Before PIYX changes a file it saves a snapshot. Undo restores them, and refuses if you edited the files since, so it can never overwrite your work.
- Secrets.
.envfiles and private keys are not read, are skipped from attachments, and secret-looking values are masked in output. Commands cannot touch them or PIYX’s own state files either.
5. Commands and processes
Commands are run with a time limit and bounded output, with secrets removed from their environment, and the whole process tree is stopped when you press Stop or a command times out. Dangerous commands, such as force-pushing, wiping a drive or reaching into .git, are refused. Web requests the agent makes are restricted to public addresses, and checks on running apps are restricted to your own machine.
The limit of this: an approved command runs with the same rights as the account that runs the agent. It is guarded, not sandboxed. Review commands before approving, and run the agent under an account that can only reach what you are happy for it to reach.
6. The language model
A model can be wrong, and text inside files or web pages can try to steer it. That is why changes need your approval and why fetched web content is labelled as untrusted. Because the model runs on a server the operator chooses, your code goes nowhere else by default.
7. If you run PIYX yourself
- Put the web app behind HTTPS (for example a Cloudflare tunnel) and set a strong agent token; keep the agent on a private address.
- Set
PIYX_ALLOWED_ROOTSto only the folders you want PIYX to reach. - Keep the database private and back it up; keep the Stripe webhook secret out of source control.
8. Reporting a problem
If you find a security issue, please tell us at the contact details given to you when your account was set up before making it public, with enough detail to reproduce it. We will acknowledge it and keep you informed. For how data is handled, see the privacy policy.