Quickstart
Install squirrelscan and run your first audit
Installation
curl -fsSL --connect-timeout 10 --max-time 120 https://install.squirrelscan.com | bashiwr -useb https://install.squirrelscan.com/install.ps1 | iexbrew install --cask squirrelscan/tap/squirrelThe 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.comThen 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 setupInstall options
Set any of these before running the installer.
| Variable | What it does |
|---|---|
SQUIRREL_VERSION | Install a specific release instead of the newest one, for example v0.0.94. |
SQUIRREL_CHANNEL | stable (default) or beta. |
SQUIRREL_BIN_DIR | Where 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_PATH | Any 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_MIRROR | Download from squirrelscan’s mirror instead of GitHub. See below. |
NO_TELEMETRY | Any 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,
SIGTERMorSIGHUPduring 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. IfHOMEis unset or empty it stops at once and tells you to set it. The installer keeps its state under$HOME/.squirrel, so it needsHOMEeven whenSQUIRREL_BIN_DIRis set. - A
noexectemp directory. The binary is first run from your temp directory. If it cannot be run there (anoexecmount, whatever language the system’s messages are in), the installer retries from~/.squirrel/tmp. If that fails too it says anoexecmount is the likely cause and tells you to setTMPDIRto a directory on a filesystem that can run programs; if~/.squirrel/tmpcannot 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.
| Shell | File | Line |
|---|---|---|
| zsh | $ZDOTDIR/.zshrc, or ~/.zshrc | export PATH="$HOME/.local/bin:$PATH" |
| bash on macOS | ~/.bash_profile | same |
| bash on Linux | ~/.bashrc | same |
| fish | ~/.config/fish/conf.d/squirrel.fish | fish_add_path $HOME/.local/bin |
| sh or anything else | ~/.profile | same 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 bashThe 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 | iexIf 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/squirrelThe 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 squirrelThis 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 squirrelUninstall
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.comInstall the skills for autonomous workflows in Claude Code, Cursor, Codex, and any coding agent:
squirrel skills installThen run /audit-website or prompt your agent:
Use the audit-website skill to audit this site and fix all issuesOr pipe LLM-optimized output to any assistant:
squirrel audit example.com --format llm | claudeLog in to enrich audits with browser rendering, AI analysis, and shareable reports:
squirrel auth login
squirrel audit example.comRun a local MCP server so agents call squirrelscan’s tools directly:
squirrel mcpRun your first audit
Audit a website with a single command:
squirrel audit https://example.comYou’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
Limit pages crawled
For large sites, limit pages to get faster results:
squirrel audit https://example.com -m 10Export to JSON
Output machine-readable JSON for CI/CD or AI processing:
squirrel audit https://example.com -f json -o report.jsonGenerate HTML report
Create a visual HTML report:
squirrel audit https://example.com -f html -o report.htmlFresh crawl
Ignore cache and fetch all pages fresh:
squirrel audit https://example.com --refreshChoose an audit level
Pick depth or speed.
quickis 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).surfaceaudits one page per template with the cloud checks.fullreads every page up to 500:squirrel audit https://example.com --level quickThe default is
quickwhen you’re logged out andsurfacewhen you’re logged in. See Audit levels for what each one checks and costs.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
| Format | Flag | Use Case |
|---|---|---|
console | (default) | Human-readable terminal output |
json | -f json | CI/CD, programmatic processing |
html | -f html | Visual reports for sharing |
markdown | -f markdown | Documentation, GitHub |
text | -f text | Clean output for piping to LLMs |
llm | -f llm | LLM optimized output |
xml | -f xml | XML output |
Use with coding agents
squirrelscan is designed for coding agents. Two primary methods:
1. Install the skills (recommended)
squirrel skills installThen use with Claude Code, Cursor, or any skill-compatible agent:
Use the audit-website skill to audit example.com and fix all issues2. 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 --helpfor 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