QuillShield CLI: quote, pay for and follow audits with qs

The QuillShield CLI is the npm package @quillaudits/cli, and its command is qs. It quotes, pays for, starts and follows a QuillShield audit from your terminal or a CI job, with the same quote, order, pay and start steps as the dashboard, then lists the findings and downloads the report.

Last updated . 5 minute read. By the QuillAudits Team.

What does the QuillShield CLI do?

qs audit takes a git URL, a local folder or a zip, creates the project and a quote, then pays it and starts the audit. The wallet pays first, and anything still due goes through Stripe Checkout after you confirm the charge. Other commands follow the audit, list the findings, download the report and show the wallet. From version 0.2.3 the CLI also runs the QuillShield MCP server, with qs mcp or npx -y @quillaudits/cli mcp.

It is for developers who work in a terminal and for scripts that start full audits. For an AI agent, the QuillShield MCP server suits better, because it spends only from the wallet after a confirm and never takes a card. That server works in Claude Code and Cursor.

How do I install and set up the QuillShield CLI?

  1. Install Node.js 18 or later, then run npm install -g @quillaudits/cli. To try it without installing, run npx @quillaudits/cli --help.
  2. An owner or admin of the organization creates a key at Settings, API keys. The qs_live_ key is shown once. A key belongs to one organization and acts as an admin, and charges made with it go to the organization owner's wallet.
  3. Run qs init. It asks for the API URL, the key and an optional organization ID, and saves them to ~/.quillshield/config.json with file mode 600. From version 0.2.3 the API URL prompt defaults to production, so press Enter.
  4. Run qs wallet to check the connection and see your prepaid balance and credit.

Install the CLI, save the key, quote an audit, then pay and follow it, from the QuillShield docs terminal

npm install -g @quillaudits/cli
qs init
qs wallet

# quote first, then pay and follow the audit
qs audit https://github.com/your-org/your-repo --ref main --no-pay
qs pay <quote-id> --watch

# results, once the audit is complete
qs findings <job-id>
qs report <job-id> --format pdf --out ./report.pdf

The CLI install and init page in the QuillShield docs covers setup, and CLI submit and watch covers every flag.

Which qs commands will I use?

Command or flag What it does
qs audit <git-url> --ref <ref> Imports the repository at a branch, tag or commit, quotes it, pays and starts the audit
qs audit --dir <folder> Zips a local folder and does the same. It leaves out folders such as .git, node_modules, lib, test, script, mock, out and cache
qs audit --zip <file> Uploads a Foundry .zip of up to 50 MiB, or a single .sol file
--scope a.sol,b.sol Sets the files in scope. Without it, the quote covers all the Solidity QuillShield counts, which leaves out lib, test, script and mock folders by default
--no-pay Stops after the quote, so you can pay later with qs pay <quote-id>
--watch Follows the audit once it starts
qs status, qs watch, qs cancel with a job ID Shows, follows or cancels an audit
qs findings <job-id> Lists the findings of a completed audit
qs report <job-id> --format pdf --out ./report.pdf Downloads the report as PDF, JSON or Markdown
qs wallet, qs topup <dollars> Shows the prepaid, refund and new-account credit, or tops up the prepaid balance
qs orders, qs order <order-id> Shows payment history
qs projects, qs versions <project-id> Lists projects and their versions
qs mcp Runs the QuillShield MCP server over stdio for Cursor and Claude

How does paying work in the QuillShield CLI?

  • If the wallet covers the quote, the order is paid from it and the audit starts with no further question, so run qs audit with --no-pay when you want to read the price first. The wallet uses the prepaid balance first, then refund credit, then the new-account credit, which is good for up to half of an order.
  • If an amount is still due, qs audit asks you to confirm the charge. --yes skips that question, and a run with no terminal, such as a CI job, refuses to charge without it.
  • After the confirm, the CLI prints a Stripe Checkout link, opens it in your browser when it runs in a terminal, and waits for the payment before it starts the audit. --no-open keeps the browser closed.

A full audit starts at $49, and 1,000 lines of Solidity cost $379, as of November 2026. A quote stays valid for 7 days, and the pricing page lists more sizes. Sign-up is free, and new accounts get $50 in credit, good for up to half of an order.

How do I run the QuillShield CLI in CI?

Use environment variables instead of qs init, which asks questions. In CLI 0.2.3, set both QUILLSHIELD_API_URL and QUILLSHIELD_API_KEY: a key alone, with no saved config, stops with “Not configured. Run: qs init”. Store the key in your CI's secret store, never in the repository.

A full audit from a GitHub Actions step, with the variables the QuillShield docs give ci-step.sh

# QUILLSHIELD_API_KEY comes from the CI secret store
export QUILLSHIELD_API_URL=https://api-production-7027.up.railway.app
npx @quillaudits/cli audit "$GITHUB_SERVER_URL/$GITHUB_REPOSITORY" \
  --ref "$GITHUB_SHA" --yes --watch
  • Pass --yes. Without it, a CI run refuses to charge any amount the wallet doesn't cover, because nobody is there to answer the prompt.
  • Top up the wallet before the job runs. If the wallet can't cover the quote, the CLI prints a Stripe Checkout link and waits for a payment that nobody in CI will make.
  • Each run bills a full audit. For checks on pull requests, use the QuillShield GitHub App or a GitLab.com connection, which compare each change with your last full audit and come with five checks per full audit.

The CLI CI/CD page in the QuillShield docs explains both CI paths.

What are the limits of the QuillShield CLI?

  • It audits Solidity in Foundry projects, which is what QuillShield supports today. Our Foundry page covers what to put in scope.
  • qs audit always quotes a full audit. Pull request checks come from CI/CD Checks in the dashboard, not from the CLI.
  • A zip upload can be up to 50 MiB and gets no pull request checks.
  • One audit runs at a time in an organization.
  • Scopes above 40,000 lines of Solidity are quoted by hand.
  • QuillShield does not replace a manual audit. You can request a manual audit from QuillAudits.

FAQ

What is the difference between the QuillShield CLI and the MCP server?

You or a script drive the CLI, and it can take a card through Stripe Checkout in the browser. An AI agent drives the MCP server, which spends only from the organization wallet after a confirm. CLI 0.2.3 and later runs the same MCP server with qs mcp.

Can I run the QuillShield CLI without installing it?

Yes. npx @quillaudits/cli <command> runs any command, for example npx @quillaudits/cli audit in a CI job. You need Node.js 18 or later.

Which API URL does the CLI use?

From version 0.2.3, qs init offers the production API as the default. In CI, set QUILLSHIELD_API_URL to https://api-production-7027.up.railway.app, the URL the QuillShield docs give, next to QUILLSHIELD_API_KEY.

Can qs check my pull requests?

No. qs audit starts a full audit. Pull request checks come from CI/CD Checks in the dashboard, through the GitHub App, its GitHub Actions workflow or a GitLab.com connection.

Who can create the API key for the CLI?

An owner or admin of the organization, in Settings under API keys. The key is shown once, so copy it then, and keep it out of commits and pull requests.

Sources

QuillShield is building the security layer between AI and money, so you can keep shipping between audits.

Sign-up is free, and new accounts get $50 in credit, good for up to half of an order.

  1. 1Sign up and import a repo
  2. 2See the exact price before anything is charged
  3. 3Approve it, and the audit starts