Skip to main content
← Blog
Tutorial3 min read

npx, bunx, pnpm dlx, uvx: Run aislop scan Without Installing

One command scores the repo, with no account or API key. Use the runner your project already has; the CLI and the score are the same.

Run npx aislop scan from the project root to score a repository 0 to 100 and list AI slop findings by file. It needs no install, account or model key. aislop is also published to PyPI and Homebrew, and every channel runs the same CLI, so use the runner your project already has.

Pick your runner

RunnerCommandNeeds
npmnpx aislop@latest scanNode.js 20+
Bunbunx aislop scanBun, plus Node.js 20+ on PATH
pnpmpnpm dlx aislop scanNode.js 20+
Yarn 2+yarn dlx aislop scanNode.js 20+
uvuvx aislop scanPython 3.9+, Node.js on PATH
pipxpipx install aislopPython 3.9+, Node.js on PATH
Homebrewbrew install scanaislop/tap/aislopmacOS or Linux

The first four run the package once and leave nothing installed globally. pipx and Homebrew install an aislop command you can rerun with aislop scan.

npx aislop scan

npx aislop@latest scan

@latest makes npx check for the current release instead of reusing a cached copy. Drop it if you want the cached version.

bunx aislop scan

bunx aislop scan

bunx fetches aislop from the npm registry. The CLI declares a Node shebang, which Bun respects, so keep Node.js 20 or later installed alongside Bun. To install it globally instead: bun add -g aislop.

pnpm dlx and yarn dlx

pnpm dlx aislop scan
yarn dlx aislop scan

Both are one-off runs, like npx. Yarn 2+ (Berry) has no global add, so yarn dlx is the way to run it there.

uvx and pipx for Python projects

uvx aislop scan
pipx install aislop

The aislop package on PyPI is a launcher that pins the matching npm release, so Python teams get the same CLI and score. It still needs Node.js on PATH because the engines run on Node. Run aislop doctor once to confirm everything is found.

Homebrew

brew install scanaislop/tap/aislop
aislop scan

The formula lives in the scanaislop/homebrew-tap repository.

Useful flags

  • aislop scan --changes scans only what changed against HEAD. Add --base origin/main to compare against a branch.
  • aislop scan --staged scans staged files, which suits a pre-commit hook.
  • aislop scan --json prints machine-readable output for CI and scripts.

Flags work the same with every runner. The full list is in docs/commands.

How the score works

aislop weights findings from the format, lint, code quality, AI slop and security engines into one number, so style issues cost less than swallowed exceptions or missing imports. 75 to 100 is Healthy, 50 to 74 Needs Work, and below 50 is Critical. Details: scoring. For what findings look like, see 20 AI slop code examples.

Fix and CI

aislop fix applies mechanical cleanup, and aislop fix --claude, --cursor or --codex sends the remaining findings back to the agent that wrote them.

For a merge gate, aislop init writes config and a GitHub Actions workflow, and aislop ci fails the build below your threshold. Pin the version in CI so the score only moves when the code does. See CI docs and add a quality gate in 2 minutes.

Source: github.com/scanaislop/aislop. Product: what aislop is. No terminal handy? Scan a public repo in the browser.

Frequently asked questions

How do I run npx aislop?

From the project root, run npx aislop@latest scan. It needs Node.js 20 or later, and no install, account or API key.

Does bunx aislop scan work?

Yes, run bunx aislop scan from the project root. Keep Node.js 20+ on PATH, because Bun respects the package's node shebang.

How do I run aislop with pnpm or Yarn?

Use pnpm dlx aislop scan for pnpm and yarn dlx aislop scan for Yarn 2 or later. Both run the package once from a temporary location.

Can I run aislop from Python with uvx or pipx?

Yes. uvx aislop scan runs the PyPI launcher once and pipx install aislop installs it. Both need Python 3.9+ and Node.js on PATH.

What does aislop scan output?

A 0 to 100 code quality score, findings grouped by engine, and a count of auto-fixable items. The result is the same whichever runner you use.

Where is aislop on GitHub?

The source is at github.com/scanaislop/aislop. The npm and PyPI packages are both named aislop, and the Homebrew formula is scanaislop/tap/aislop.

All posts