npx ptkd: check your app in one command
npx ptkd answers two questions about your app in seconds: is it safe, and will it pass App Store and Google Play review. It runs on your own machine, and an account is optional. Node 18 or later is all it needs.Three commands
npx ptkd # check this folder, on your machine
npx ptkd login # a free account, approved in your browser
npx ptkd --upload # the full report on ptkd.comRun it in your app's folder, or point it at a built .ipa, .apk or .aab: npx ptkd app.aab. Xcode, Expo, React Native, Flutter, Capacitor and native Android projects are recognized.
What you see
BLOCKED 2 to fix before you submit · Grade D (55/100) · review readiness 90/100
(expo + react-native, on this machine) · rules as of 2026-11-24
TOP FIXES
1. CRITICAL Hardcoded secret: Stripe live secret key src/pay.ts:12
Remove the secret, rotate it, and issue short-lived tokens from a backend.
2. HIGH ...
NEXT npx ptkd --upload the full report on app.ptkd.comOne verdict line, the three fixes that matter most, and the next step. npx ptkd check . lists every finding, the leads worth a second look, and the checks that need the built app or the store listing (see ptkd check).
| Exit code | Verdict |
|---|---|
| 0 | CLEAR, or STALE (the same, with rules or advisories older than 14 days) |
| 1 | BLOCKED: a confirmed finding at or above --fail-on (default high) |
| 2 | NOT CHECKED: point it at an app project or a build |
For scripts and CI: --json (format version 1, fields only ever added) and --sarif (SARIF 2.1.0 for GitHub code scanning, with fingerprints that stay the same from run to run).
In your AI editor
npx ptkd initinit adds the PTKD MCP server to the editors it finds, then you ask your agent: "Check this app with PTKD". The config holds the command and your saved login stays in your home folder, so the file is safe to commit.
| Editor | Config file |
|---|---|
| Claude Code | .mcp.json |
| Cursor | .cursor/mcp.json |
| VS Code | .vscode/mcp.json |
| Windsurf (Devin Desktop) | ~/.config/devin/mcp_config.json |
| Devin, Codex, Gemini CLI | .devin/mcp_config.json, ~/.codex/config.toml, .gemini/settings.json |
| Lovable, Bolt | copy-paste steps (Lovable Desktop: Connectors, Local MCPs, Custom) |
The project tools run locally from the first run. After npx ptkd login the agent can also scan builds, read the full report and check your App Store listing, a page of findings at a time.
Privacy
The check runs on your machine and keeps its results there, dependency checks included (against the OSV advisory snapshot that ships with PTKD).
--upload sends, for the full report:
- the project's source files, zipped (each file up to 8 MB);
- the current git commit (12 characters) as the build label;
- the app's name and platform, to find or create your PTKD project.
Stays on your machine, every time: .env files, keystores and signing material (.jks, .p8, .p12, .pem, provisioning profiles), SSH keys, .npmrc, node_modules, Pods and other build output, version control and built archives. The CLI names the secret files it kept back before it uploads.
Your login key lives in ~/.ptkd/config.json, readable by you alone.
In CI, and when something looks off
The GitHub Action and the Claude Code guard run this same CLI version, so they give the same answer as your terminal. npx ptkd doctor prints your versions, login state, engine and the MCP configs it finds in one block to paste to support, with your key kept out of it.