How to use ShipGuard
On this page0 / 12
- Install and run your first scan
- What the free scan covers and sends
- Scan, fix, scan again
- Stop a risky push
- Find your past scan results
- Set up your coding agent
- Scan results as data for agents
- What Pro rules add
- Upgrade to Pro and run a rulebook scan
- Cancel your plan
- Contact ShipGuard Support
- Questions and answers
Short answer: Run npx @agenticcli/shipguard scan in your project folder. It checks your own machine for leaked keys, open admin routes and unsigned payment messages, with no account. Then add a push check, set up your coding agent, and move to Pro for the full rulebook.
How we made this guide.
- Every terminal picture is a real run in a fresh container, not retyped. Lines we hid say how many.
- The project is a small demo shop (Next.js, Stripe, Supabase) that we seeded with four known flaws. It is not agent-written.
- The Pro pictures came from a Pro test account. We did not buy a plan, approve a sign-in or run Claude Code or Codex for this guide.
Install and run your first scan
One command scans your project and tells you whether it is safe to ship.
- Open a terminal in your project folder. You need Node and git.
- Run the command above. Nothing is installed for good; npx fetches the CLI and runs it.
- Read the first line. It says SAFE TO SHIP or DO NOT SHIP and how many findings block.
- Read each finding below it. Each one names the file and a fix line.



What the free scan covers and sends
The free scan runs on your machine. Your code, file paths and file contents are never sent.
- The free scan checks secrets, sign-in checks, database changes, payment messages and deployment settings.
- It uses plain pattern rules, so the same code gives the same answer every time. No account is needed.
- ShipGuard sends product usage telemetry: a short message after each scan, one on first run, one after you sign in.
- To see exactly what a message holds, set SHIPGUARD_TELEMETRY_DEBUG=1. It prints the message and sends nothing.
- To switch it off, run shipguard telemetry disable or set DO_NOT_TRACK=1.






Next: Scan, fix, scan again
Scan, fix, scan again
Fix what the scan names, then scan again until it says SAFE TO SHIP.
- Fix each blocking finding. Your coding agent can do this from the fix lines.
- Run the scan again with --strict. It fails when anything still blocks, which is what a script or a push check needs.
- After small edits, add --changed. It scans only the files git sees as changed.


Next: Stop a risky push
Stop a risky push
One setup step makes git check your code before every push and refuse the push if something blocks.
- Run the command above with --dry-run first. It lists every file it would change and writes nothing.
- Run it again without --dry-run and answer yes once.
- Push as usual. If a finding blocks, the push does not run and the message says what to fix.
- To undo it, run shipguard uninstall. Add --dry-run to see the list first.



The git check can be skipped with --no-verify, so keep a check in CI as well. Your agent is told not to skip it.
Find your past scan results
Every scan is saved on your machine, so you can look back at any run.
- Run shipguard history for a list of recent scans, newest first.
- Open .shipguard/reports/latest.md for the full report of the last scan, with fixes in order.
- Run shipguard status to see what is installed here and when the push check last ran.



Next: Set up your coding agent
Set up your coding agent
ShipGuard writes a short note into the file your agent reads, so the agent runs the check before it pushes.
- Pick your agent: claude, codex or cursor. Setup shows every file first and asks once.
- Claude Code gets a check that runs before a push, plus a block in CLAUDE.md.
- Codex gets a block in AGENTS.md plus the git checks. Cursor reads the same AGENTS.md block.
- Your agent now scans before it pushes, and fixes what blocks.

Scan results as data for agents
Add --json and the scan answers in data your agent can read, with the next step spelled out.
- Run the command above. Nothing else is printed.
- The verdict says what happened. agentAction says what to do next, and rerun gives the command to run again.
- telemetry says on or off, so an agent can confirm what is sent.

Next: What Pro rules add
What Pro rules add
Pro adds the full rulebook for your stack. The free scan tells you what it did not run.
- After a free scan, look for the line Not run here. It lists checks the free scan does not include for your project.
- Run shipguard upgrade. It names your tools and how many extra rules the full rulebook has for them.
- These are checks that did not run, not problems found. Your free results stay as they are.
- With Pro, a scan can report findings the free scan cannot, such as the database table below.



Upgrade to Pro and run a rulebook scan
Sign in from the terminal, then run a scan with the full rulebook.
- Run shipguard upgrade to see what Pro adds, and where the plans are.
- Run shipguard login. The terminal prints a page address and a short code.
- Open the page, sign in, and type the code. Approve the sign-in.
- Back in the terminal, run shipguard scan --pro. It downloads the full rulebook, then checks your code on your machine.
- Rulebook scans are counted each month. Past your monthly allowance, the general rules still run.



Compare the plans on the ShipGuard pricing page.
Next: Cancel your plan
Cancel your plan
You cancel from your billing page. Your plan stays active until the end of the period you paid for.
- Sign in at agenticcli.dev and open your billing page.
- Choose Manage billing. The payment portal opens.
- Cancel your plan there. You can also change your card or download invoices in the same place.
- Optional: run shipguard logout to remove the sign-in from this machine.

Stuck? Email [email protected] and we will help.
Contact ShipGuard Support
Email [email protected] for help, billing, bugs and security.
- Email [email protected]. Include your account email if the question is about billing.
- To share feedback or report a bug, use GitHub issues. The CLI prints the address and sends nothing itself.
- General questions, partnerships and press go to the address on the contact page.


Questions and answers
How do I run my first ShipGuard scan?
Open a terminal in your project folder and run npx @agenticcli/shipguard scan. It needs Node and git, and no account. The first line gives the verdict, SAFE TO SHIP or DO NOT SHIP, and each finding below it names a file and a fix. Fix what blocks, then scan again. See the steps.What does the free scan cover and send?
The free scan checks secrets, sign-in checks, database changes, payment messages and deployment settings, on your machine. It never sends code, file paths or file contents. It sends product usage telemetry, such as a verdict and a time range, which you can switch off with shipguard telemetry disable. See the steps.How do I scan, fix and scan again?
Fix each blocking finding, then run npx @agenticcli/shipguard scan --strict. It fails while anything still blocks and passes with SAFE TO SHIP when nothing does. After small edits, add --changed to scan only the files git sees as changed. Repeat until the scan is clean. See the steps.How do I stop a risky push?
Run npx @agenticcli/shipguard setup --agent git, answer yes once, and git checks your code before every push. If a finding blocks, the push does not run and the message says what to fix. Run setup with --dry-run first to see every file it changes before it writes anything. See the steps.Where are my scan results saved?
Every scan is saved on your machine. Run shipguard history for a list of recent runs, open .shipguard/reports/latest.md for the full report of the last one, and run shipguard status to see what is installed and when the push check last ran. They are files on your machine. See the steps.How do I set ShipGuard up for my coding agent?
Run npx @agenticcli/shipguard setup --agent claude, codex or cursor. Setup shows every file first and asks once. It adds a short block to the file your agent reads, CLAUDE.md or AGENTS.md, so the agent scans before it pushes and fixes what blocks. See the steps.What does the JSON scan give an agent?
Run npx @agenticcli/shipguard scan --json and the result is data only. It holds the verdict, an agentAction that says what to do next, the command to rerun, and whether telemetry is on or off. An agent can read these four fields without parsing any text. See the steps.What do Pro rules add?
Pro adds the full rulebook for your stack, on top of the general rules in the free scan. After a free scan, the Not run here line and shipguard upgrade list the checks that did not run for your project. They are checks, not problems found, and your free results stay as they are. See the steps.How do I upgrade to Pro and run a rulebook scan?
Run shipguard upgrade to see what Pro adds, then shipguard login, open the page it prints and type the code. Once signed in to a Pro plan, run shipguard scan --pro. It downloads the full rulebook and checks your code on your machine. Your code is not uploaded. See the steps.How do I cancel my plan?
Sign in at agenticcli.dev, open your billing page and choose Manage billing. You can cancel in the payment portal that opens. Your plan stays active until the end of the period you paid for. If you are stuck, email [email protected]. See the steps.How do I reach ShipGuard Support?
Email [email protected] for help, billing, bugs and security. For billing questions, include your account email so the right subscription can be found quickly. To share feedback or report a bug, use GitHub issues; the shipguard feedback command prints the address and sends nothing. See the steps.