AgenticCLISign in

How to use ShipGuard

11 chapters · real terminal output

On this page0 / 12
  1. Install and run your first scan
  2. What the free scan covers and sends
  3. Scan, fix, scan again
  4. Stop a risky push
  5. Find your past scan results
  6. Set up your coding agent
  7. Scan results as data for agents
  8. What Pro rules add
  9. Upgrade to Pro and run a rulebook scan
  10. Cancel your plan
  11. Contact ShipGuard Support
  12. 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.

npx @agenticcli/shipguard scan
  1. Open a terminal in your project folder. You need Node and git.
  2. Run the command above. Nothing is installed for good; npx fetches the CLI and runs it.
  3. Read the first line. It says SAFE TO SHIP or DO NOT SHIP and how many findings block.
  4. Read each finding below it. Each one names the file and a fix line.
Actual terminal capture of ShipGuard 0.13.2 run through npx: the version check prints 0.13.2.
Check the version you got. Actual capture, 2026-11-25, published ShipGuard 0.13.2, demo shop app, fresh Podman container.
Actual terminal capture of ShipGuard 0.13.2 first scan of the demo shop: DO NOT SHIP, 4 blocking of 6 findings, with the first finding, a live Stripe secret key in .env, and its fix line.
The verdict comes first, then the first finding. Actual capture, 2026-11-25, published ShipGuard 0.13.2, demo shop app, fresh Podman container.
Actual terminal capture of ShipGuard 0.13.2: a payment webhook that does not verify the Stripe signature, with the fix line that names constructEvent and a 400 answer.
Each finding ends with a fix line you can hand to your agent. Actual capture, 2026-11-25, published ShipGuard 0.13.2, demo shop app, fresh Podman container.

What the free scan covers and sends

The free scan runs on your machine. Your code, file paths and file contents are never sent.

  1. The free scan checks secrets, sign-in checks, database changes, payment messages and deployment settings.
  2. It uses plain pattern rules, so the same code gives the same answer every time. No account is needed.
  3. ShipGuard sends product usage telemetry: a short message after each scan, one on first run, one after you sign in.
  4. To see exactly what a message holds, set SHIPGUARD_TELEMETRY_DEBUG=1. It prints the message and sends nothing.
  5. To switch it off, run shipguard telemetry disable or set DO_NOT_TRACK=1.
Actual terminal capture of ShipGuard 0.13.2 in a container with the network switched off: the lookup of agenticcli.dev fails with exit 2, and the scan still finishes with its verdict and 36 general rules.
The scan works with the network off, because the checks run on your machine. Actual capture, 2026-11-25, published ShipGuard 0.13.2, demo shop app, fresh Podman container, network off.
Actual terminal capture of ShipGuard 0.13.2 with SHIPGUARD_TELEMETRY_DEBUG=1: the exact product usage telemetry message for one scan, listing version, verdict, a time range, and no code or paths. Nothing is sent.
The whole message for one scan. It holds a random id, a verdict and a time range. The traffic test tag is ours. Actual capture, 2026-11-25, published ShipGuard 0.13.2, demo shop app, fresh Podman container.
Actual terminal capture of ShipGuard 0.13.2 telemetry status: usage pings are ON by default, the endpoint, and the three ways to turn them off.
Status shows whether telemetry is on, and why. Actual capture, 2026-11-25, published ShipGuard 0.13.2, demo shop app, fresh Podman container.
Actual terminal capture of ShipGuard 0.13.2: shipguard telemetry disable, then telemetry status shows usage pings OFF.
After disable, status says OFF and names the command that did it. Actual capture, 2026-11-25, published ShipGuard 0.13.2, demo shop app, fresh Podman container.
Actual terminal capture of ShipGuard 0.13.2 listing the .shipguard folder in the project and the shipguard folder in the user config directory after one scan.
Where ShipGuard keeps files: .shipguard in the project, and a small config folder in your home. Actual capture, 2026-11-25, published ShipGuard 0.13.2, demo shop app, fresh Podman container.
Actual terminal capture of ShipGuard 0.13.2: the one-time notice printed before the first scan, saying usage pings are on and how to turn them off.
You see this notice on your first scan. Actual capture, 2026-11-25, published ShipGuard 0.13.2, demo shop app, fresh Podman container.

Scan, fix, scan again

Fix what the scan names, then scan again until it says SAFE TO SHIP.

npx @agenticcli/shipguard scan --strict
  1. Fix each blocking finding. Your coding agent can do this from the fix lines.
  2. Run the scan again with --strict. It fails when anything still blocks, which is what a script or a push check needs.
  3. After small edits, add --changed. It scans only the files git sees as changed.
Actual terminal capture of ShipGuard 0.13.2 after the four fixes: SAFE TO SHIP with 0 findings, and the line saying Safe here means no rule matched.
The same project after the fixes. Safe here means no rule matched. It is not a security audit. Actual capture, 2026-11-25, published ShipGuard 0.13.2, demo shop app, fresh Podman container.
Actual terminal capture of ShipGuard 0.13.2 scanning only changed files: git shows one modified file, and the scan of that one file says SAFE TO SHIP.
With --changed the scan reads one file instead of the project. Actual capture, 2026-11-25, published ShipGuard 0.13.2, demo shop app, fresh Podman container.

Stop a risky push

One setup step makes git check your code before every push and refuse the push if something blocks.

npx @agenticcli/shipguard setup --agent git
  1. Run the command above with --dry-run first. It lists every file it would change and writes nothing.
  2. Run it again without --dry-run and answer yes once.
  3. Push as usual. If a finding blocks, the push does not run and the message says what to fix.
  4. To undo it, run shipguard uninstall. Add --dry-run to see the list first.
Actual terminal capture of ShipGuard 0.13.2 setup --dry-run for Claude Code: it says this will change 5 files, lists the record files, and ends with Dry run: nothing was changed.
A dry run lists the files first and ends with: nothing was changed. This one is for Claude Code. Actual capture, 2026-11-25, published ShipGuard 0.13.2, demo shop app, fresh Podman container.
Actual terminal capture of ShipGuard 0.13.2 git push stopped by the installed check: SHIPGUARD BLOCKED, nothing was pushed, and git reports the push failed.
The push is stopped before anything leaves your machine. Actual capture, 2026-11-25, published ShipGuard 0.13.2, demo shop app, fresh Podman container.
Actual terminal capture of ShipGuard 0.13.2 uninstall --dry-run: it lists the git hook files and the install record it would remove, and nothing else is touched.
Uninstall shows what it removes before it removes anything. Actual capture, 2026-11-25, published ShipGuard 0.13.2, demo shop app, fresh Podman container.

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.

  1. Run shipguard history for a list of recent scans, newest first.
  2. Open .shipguard/reports/latest.md for the full report of the last scan, with fixes in order.
  3. Run shipguard status to see what is installed here and when the push check last ran.
Actual terminal capture of ShipGuard 0.13.2 history: two saved runs with time, verdict, blocking count and rules used.
History keeps one row per scan. Actual capture, 2026-11-25, published ShipGuard 0.13.2, demo shop app, fresh Podman container.
Actual terminal capture of ShipGuard 0.13.2: the top of the saved Markdown report, with the verdict, the rerun command and the first finding to fix.
The saved report starts with the verdict and the command to run again. Actual capture, 2026-11-25, published ShipGuard 0.13.2, demo shop app, fresh Podman container.
Actual terminal capture of ShipGuard 0.13.2 status: the git checks installed here and the last gate run, blocked.
Status shows the push check is installed and that it last blocked a push. Actual capture, 2026-11-25, published ShipGuard 0.13.2, demo shop app, fresh Podman container.

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.

npx @agenticcli/shipguard setup --agent claude
  1. Pick your agent: claude, codex or cursor. Setup shows every file first and asks once.
  2. Claude Code gets a check that runs before a push, plus a block in CLAUDE.md.
  3. Codex gets a block in AGENTS.md plus the git checks. Cursor reads the same AGENTS.md block.
  4. Your agent now scans before it pushes, and fixes what blocks.
Actual terminal capture of ShipGuard 0.13.2: the block that setup writes into AGENTS.md, telling the agent to run shipguard scan --json --strict before every git push or merge.
The note your agent reads. It tells the agent when to scan and what to do when a scan blocks. Actual capture, 2026-11-25, published ShipGuard 0.13.2, demo shop app, fresh Podman container.
Step by step guides: Claude Code, Codex and Cursor.

Scan results as data for agents

Add --json and the scan answers in data your agent can read, with the next step spelled out.

npx @agenticcli/shipguard scan --json
  1. Run the command above. Nothing else is printed.
  2. The verdict says what happened. agentAction says what to do next, and rerun gives the command to run again.
  3. telemetry says on or off, so an agent can confirm what is sent.
Actual terminal capture of ShipGuard 0.13.2 scan --json piped through jq: verdict DO_NOT_SHIP, agentAction fix_and_rerun, the rerun command and telemetry on.
Four fields an agent reads. The full result has many more. Actual capture, 2026-11-25, published ShipGuard 0.13.2, demo shop app, fresh Podman container.

What Pro rules add

Pro adds the full rulebook for your stack. The free scan tells you what it did not run.

npx @agenticcli/shipguard upgrade
  1. After a free scan, look for the line Not run here. It lists checks the free scan does not include for your project.
  2. Run shipguard upgrade. It names your tools and how many extra rules the full rulebook has for them.
  3. These are checks that did not run, not problems found. Your free results stay as they are.
  4. With Pro, a scan can report findings the free scan cannot, such as the database table below.
Actual terminal capture of ShipGuard 0.13.2 free scan: Rules ran 36 general rules, and the Not run here line lists sign-in and access checks, unsafe settings and 69 more rules for Next.js, Supabase and React.
The free scan says which checks did not run for your stack. Actual capture, 2026-11-25, published ShipGuard 0.13.2, demo shop app, fresh Podman container.
Actual terminal capture of ShipGuard 0.13.2 upgrade: what the full rulebook would add for this repo, 69 rules for this stack, and the areas without those checks.
Upgrade lists what Pro would add for this project. Actual capture, 2026-11-25, published ShipGuard 0.13.2, demo shop app, fresh Podman container.
Actual terminal capture of ShipGuard 0.13.2 rulebook scan with a Pro test account: 104 rules, 5 blocking findings, and finding 5, a Supabase database rule marked rulebook rule, which the free scan did not report.
A rulebook scan found a fifth blocking finding in the database file. Actual capture, 2026-11-25, published ShipGuard 0.13.2, demo shop app, fresh Podman container, Pro test account.

Upgrade to Pro and run a rulebook scan

Sign in from the terminal, then run a scan with the full rulebook.

npx @agenticcli/shipguard login
  1. Run shipguard upgrade to see what Pro adds, and where the plans are.
  2. Run shipguard login. The terminal prints a page address and a short code.
  3. Open the page, sign in, and type the code. Approve the sign-in.
  4. Back in the terminal, run shipguard scan --pro. It downloads the full rulebook, then checks your code on your machine.
  5. Rulebook scans are counted each month. Past your monthly allowance, the general rules still run.
Actual terminal capture of ShipGuard 0.13.2 login: the page to open, with the code line hidden, and the line Waiting for approval in the browser.
Login prints a page and a short code (hidden here), then waits for you. Actual capture, 2026-11-25, published ShipGuard 0.13.2, demo shop app, fresh Podman container.
Actual browser capture of the ShipGuard sign-in page at agenticcli.dev: Enter the code from your terminal, with a code box and a Continue button.
The page where you type the code. Captured 2026-11-24 from agenticcli.dev.
Actual terminal capture of ShipGuard 0.13.2 scan --pro --strict with a Pro test account: DO NOT SHIP with 104 rules, Rules ran full rulebook, and the strict stop with exit 1.
A rulebook scan run with --strict. It stops with exit 1 because findings still block. Actual capture, 2026-11-25, published ShipGuard 0.13.2, demo shop app, fresh Podman container, Pro test account.

Cancel your plan

You cancel from your billing page. Your plan stays active until the end of the period you paid for.

  1. Sign in at agenticcli.dev and open your billing page.
  2. Choose Manage billing. The payment portal opens.
  3. Cancel your plan there. You can also change your card or download invoices in the same place.
  4. Optional: run shipguard logout to remove the sign-in from this machine.
Actual terminal capture of ShipGuard 0.13.2 logout: Logged out.
Logout removes the sign-in from this machine. It does not cancel a plan. Actual capture, 2026-11-25, published ShipGuard 0.13.2, demo shop app, fresh Podman container.

Stuck? Email [email protected] and we will help.

Contact ShipGuard Support

Email [email protected] for help, billing, bugs and security.

  1. Email [email protected]. Include your account email if the question is about billing.
  2. To share feedback or report a bug, use GitHub issues. The CLI prints the address and sends nothing itself.
  3. General questions, partnerships and press go to the address on the contact page.
Actual terminal capture of ShipGuard 0.13.2 feedback: feedback and bug reports go to GitHub issues, and the CLI does not send feedback itself.
The feedback command prints where to send feedback and sends nothing. Actual capture, 2026-11-25, published ShipGuard 0.13.2, demo shop app, fresh Podman container.
Actual browser capture of the agenticcli.dev contact page: support@agenticcli.dev for help, billing, bugs and security, and contact@agenticcli.dev for general questions.
The contact page lists both addresses. Captured 2026-11-24 from agenticcli.dev.

Questions and answers

  1. 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.
  2. 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.
  3. 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.
  4. 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.
  5. 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.
  6. 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.
  7. 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.
  8. 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.
  9. 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.
  10. 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.
  11. 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.