squirrelscan
GitHub

Quickstart

Install squirrelscan and run your first audit

Installation

curl -fsSL --connect-timeout 10 --max-time 120 https://install.squirrelscan.com | bash
iwr -useb https://install.squirrelscan.com/install.ps1 | iex
brew install --cask squirrelscan/tap/squirrel

The cask is macOS only. brew upgrade does nothing for the CLI: update it with squirrel self update. See Homebrew below for how this install updates and uninstalls.

This downloads the binary and links it into a directory on your PATH. With Homebrew, that happens on the first run, when the launcher runs the regular installer. See How the installer sets up your PATH below.

Run your first audit right away: it crawls the site, scores it and lists exact fixes.

squirrel audit https://your-site.com

Then run setup once. It signs you in (optional), installs the agent skills for Claude Code, Codex, Cursor and more, turns on auto-update, and ends by offering to audit a site:

squirrel setup

Install options

Set any of these before running the installer.

VariableWhat it does
SQUIRREL_VERSIONInstall a specific release instead of the newest one, for example v0.0.94.
SQUIRREL_CHANNELstable (default) or beta.
SQUIRREL_BIN_DIRWhere to put the squirrel symlink. Defaults to the first writable directory on your PATH, falling back to ~/.local/bin. The installer refuses a value that is only whitespace and any path that names / once . and .. are resolved by name (/, //, /., /.., /usr/..; a symlink to / is not followed); an empty value is read as not set.
SQUIRREL_NO_MODIFY_PATHAny value but empty, 0 or false stops the installer editing your shell profile or user PATH. It prints the line to add instead. See below.
SQUIRREL_FORCE_MIRRORDownload from squirrelscan’s mirror instead of GitHub. See below.
NO_TELEMETRYAny defined value, including an empty value, 0, or false, turns off the anonymous failure report the installer sends when it fails. DO_NOT_TRACK=1 (or true) does too.

What the installer protects

  • Permissions. It runs with the umask tightened to at least 022, so the directories and the binary it creates are never group or world writable, whatever umask it inherited. A stricter umask (077) is kept.
  • Size and checksum. The release manifest records each binary’s size. A download of a different size fails with a size mismatch, before the checksum, so a cut-short download reads as that and not as a bad hash.
  • Ctrl-C. An interrupt, SIGTERM or SIGHUP during the install (including one sent to the installer alone, mid-download) removes the temporary directory, ends the download and exits with 130, 143 or 129. Stopping the install is not a failure, so no failure report is sent.
  • No HOME. If HOME is unset or empty it stops at once and tells you to set it. The installer keeps its state under $HOME/.squirrel, so it needs HOME even when SQUIRREL_BIN_DIR is set.
  • A noexec temp directory. The binary is first run from your temp directory. If it cannot be run there (a noexec mount, whatever language the system’s messages are in), the installer retries from ~/.squirrel/tmp. If that fails too it says a noexec mount is the likely cause and tells you to set TMPDIR to a directory on a filesystem that can run programs; if ~/.squirrel/tmp cannot even be created it says that instead.

How the installer sets up your PATH

SQUIRREL_BIN_DIR wins. Otherwise the installer uses the first of ~/.local/bin, ~/bin, /usr/local/bin or /opt/homebrew/bin that is already on your PATH and writable.

If none is, it uses ~/.local/bin and appends one marked line to the file your shell reads at startup, then tells you which file it changed. It never rewrites existing content, creates the file if it is missing, and adds nothing when the file already puts ~/.local/bin on your PATH (a PATH or fish_add_path line) or carries the # squirrel marker, so running the installer again is safe.

ShellFileLine
zsh$ZDOTDIR/.zshrc, or ~/.zshrcexport PATH="$HOME/.local/bin:$PATH"
bash on macOS~/.bash_profilesame
bash on Linux~/.bashrcsame
fish~/.config/fish/conf.d/squirrel.fishfish_add_path $HOME/.local/bin
sh or anything else~/.profilesame as zsh

On Linux a login shell (an SSH session, some terminals) may read ~/.profile or ~/.bash_profile and never ~/.bashrc; if squirrel is not found there, add the same line to the file your login shell reads. An open terminal does not see the change. The closing message then tells you to open a new terminal or run source ~/.zshrc (your file), and gives a command that works right now, such as ~/.local/bin/squirrel audit https://your-site.com.

Set SQUIRREL_NO_MODIFY_PATH=1 to keep the installer away from your profile: it prints the line to add instead. In CI (CI set) it never edits a profile; when GITHUB_PATH is set, it appends the directory to that file so later steps find squirrel.

On Windows, the installer adds %LOCALAPPDATA%\squirrel\bin to your user Path (never the machine Path) and to the current session, once, and a new terminal picks it up. SQUIRREL_NO_MODIFY_PATH and CI behave the same way.

The one-time install registration reports what happened as path_setup (on_path, added, opted_out, ci or failed). It carries no path and nothing about you, and it is not sent when telemetry is off.

What the installer host records

install.squirrelscan.com counts each fetch of the install script: which script (shell or PowerShell), a coarse class of the client (curl, wget, PowerShell, browser, coding-agent sandbox, other) taken from its User-Agent, and an optional ?source= tag such as ?source=agent. The count carries no IP address and no location, and nothing that identifies you. (Cloudflare serves the host and handles requests the way any CDN does; that is outside this count.) A tag is lowercase letters, digits and - (up to 32 characters) or it is ignored. The server records the fetch before your shell sees anything, so NO_TELEMETRY cannot turn it off.

If GitHub is blocked on your network

Release binaries live on GitHub, and a GitHub download redirects to release-assets.githubusercontent.com. Some networks cannot reach it, most commonly in mainland China. The installer handles this on its own: when a GitHub download fails it retries the same file from install.squirrelscan.com, which serves the identical bytes through squirrelscan’s own infrastructure. The checksum from the release manifest is verified either way, so the mirror is not a shortcut around the integrity check.

To skip GitHub from the start rather than waiting for it to time out:

curl -fsSL https://install.squirrelscan.com | SQUIRREL_FORCE_MIRROR=1 bash

The variable has to reach the shell that runs the script, so it goes on the right of the pipe.

$env:SQUIRREL_FORCE_MIRROR='1'; iwr -useb https://install.squirrelscan.com/install.ps1 | iex

If both hosts are unreachable, the installer prints the two URLs it tried. Allowlist either github.com or install.squirrelscan.com, or download the binary on a machine that can reach one of them and move it into place yourself. A host that answers with a sign-in page instead of the release files, which is what a captive portal or an intercepting proxy does, counts as unreachable and the installer moves on to the other one.

SQUIRREL_DOWNLOAD_ENDPOINT points the fallback at a different host if you mirror the releases yourself. Only its scheme, host and path appear in the installer’s anonymous failure report, so a URL carrying a token in its userinfo, query or fragment does not send that token anywhere.

Homebrew

brew install --cask squirrelscan/tap/squirrel

The cask is macOS only (Linuxbrew is not supported; on Linux use the install script). It puts a small squirrel launcher on your PATH. The first time you run it, it runs the regular installer and then your command. The CLI lands in ~/.squirrel/releases with a squirrel link in ~/.local/bin, the same layout as the install script.

From then on it is an ordinary managed install. squirrel self update and auto-update keep it current, and brew upgrade leaves the CLI alone. Homebrew only owns the launcher.

To uninstall:

brew uninstall --cask squirrel

This removes the launcher and runs squirrel self uninstall --yes. That removes the link and the release binaries, and keeps your settings, credentials and audit data in ~/.squirrel. To remove ~/.squirrel as well:

brew uninstall --zap --cask squirrel

Uninstall

Whichever way you installed, squirrel self uninstall removes the link and the release binaries. It asks before deleting anything. Add --purge to remove settings, credentials and audit data too. See self uninstall for exactly what it removes.

If the install is killed at the last step

On a machine with very little free memory the kernel can kill squirrel self install before it finishes, which used to leave nothing installed. The installer now finishes the job itself: it lays the release out, links the binary, and runs it once to confirm it works. If even that run is killed, the machine cannot execute the binary at all, and the installer says so and points at the cloud dashboard as the way to audit without a local binary.

Four ways to run squirrelscan

Run audits directly with human-readable terminal output:

squirrel audit example.com

Install the skills for autonomous workflows in Claude Code, Cursor, Codex, and any coding agent:

squirrel skills install

Then run /audit-website or prompt your agent:

Use the audit-website skill to audit this site and fix all issues

Or pipe LLM-optimized output to any assistant:

squirrel audit example.com --format llm | claude

Log in to enrich audits with browser rendering, AI analysis, and shareable reports:

squirrel auth login
squirrel audit example.com

Run a local MCP server so agents call squirrelscan’s tools directly:

squirrel mcp

Run your first audit

Audit a website with a single command:

squirrel audit https://example.com

You’ll see output like:

 ▄█▀ ▄▀█ █ █ █ █▀▄ █▀▄ █▀▀ █   ▄█▀ ▄▀▀ ▄▀█ █▄ █
 ▀▄  █ █ █ █ █ ██▀ ██▀ █▀  █   ▀▄  █   █▀█ █ ▀█
 █▄▀ ▀▀█ ▀▄▀ █ █ █ █ █ █▄▄ █▄▄ █▄▀ ▀▄▄ █ █ █  █

  v0.0.84  •  https://squirrelscan.com
────────────────────────────────────────────
Auditing  https://example.com
Level     surface · max 100 pages
Config    defaults
Account   you@example.com · 500 credits
Dashboard https://app.squirrelscan.com

✓ Audited 12 pages in 2.1s

──────────────────────────────────────────────────
SQUIRRELSCAN REPORT
https://example.com • 12 pages • 72/100 (C)
──────────────────────────────────────────────────

Category Breakdown:
--------------------------------------------------
Core SEO             ███████░░░ 75%
Content              ████████░░ 82%
Links                █████████░ 91%
...

ISSUES

Core SEO (1 error, 3 warnings)
  core/meta-description Meta Description (error)
    ✗ meta-description: Missing meta description
      → /about
      → /contact

  core/og-tags Open Graph Tags (warning)
    ⚠ og-image: Missing og:image
      → /

Content (2 warnings)
  content/word-count Word Count (warning)
    ⚠ word-count: Thin content: 150 words (min 300)
      → /landing

──────────────────────────────────────────────────
87 passed • 12 warnings • 3 failed
──────────────────────────────────────────────────

What the report looks like

Signed in, the audit publishes a report like this one for squirrelscan.com. Open the live report, then use how to read your report to go through it.

Common options

  1. Limit pages crawled

    For large sites, limit pages to get faster results:

    squirrel audit https://example.com -m 10
  2. Export to JSON

    Output machine-readable JSON for CI/CD or AI processing:

    squirrel audit https://example.com -f json -o report.json
  3. Generate HTML report

    Create a visual HTML report:

    squirrel audit https://example.com -f html -o report.html
  4. Fresh crawl

    Ignore cache and fetch all pages fresh:

    squirrel audit https://example.com --refresh
  5. Choose an audit level

    Pick depth or speed. quick is fast: up to 25 pages, without the cloud checks (logged out it runs locally, no account needed; logged in it is billed like any level, up to 100 credits). surface audits one page per template with the cloud checks. full reads every page up to 500:

    squirrel audit https://example.com --level quick

    The default is quick when you’re logged out and surface when you’re logged in. See Audit levels for what each one checks and costs.

  6. Run only some categories

    Narrow the audit to the categories you care about right now.

    squirrel audit https://example.com --rule-include ax,perf

Output formats

FormatFlagUse Case
console(default)Human-readable terminal output
json-f jsonCI/CD, programmatic processing
html-f htmlVisual reports for sharing
markdown-f markdownDocumentation, GitHub
text-f textClean output for piping to LLMs
llm-f llmLLM optimized output
xml-f xmlXML output

Use with coding agents

squirrelscan is designed for coding agents. Two primary methods:

squirrel skills install

Then use with Claude Code, Cursor, or any skill-compatible agent:

Use the audit-website skill to audit example.com and fix all issues

2. Pipe output to a coding agent

# Audit and pipe directly to Claude
squirrel audit example.com --format llm | claude "analyze and prioritize fixes"

The --format llm provides compact, token-optimized output designed specifically for coding agents.

Next steps

  • Run squirrel --help for all available commands
  • See Configuration to customize audit behavior
  • Check CLI Reference for full audit options
  • View the GitHub repo for updates. If squirrelscan caught something your agent missed, a star there helps other developers find it

Type to search…

↑↓ navigate↵ openesc close