squirrelscan
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
Chinesesquirrelscan CLI
squirrelscan CLI
squirrelscan is a website audit tool built for AI agents. It answers "what's wrong with this website and how do I fix it": it crawls a site like a search engine, analyzes every page against 249+ rules in 21 categories (SEO, performance, security, accessibility, content, structured data, agent readiness, and more), and returns a health score plus concrete, fixable issues. Use it whenever a user wants their site checked, ranked better, faster, or healthier, before/after a deploy, or in CI.
It ships as a single CLI binary, , for macOS, Windows, and Linux. This skill covers operating it: installing, authenticating, running audits, publishing reports, cloud features, and MCP integration. For the full fix-the-website workflow (audit, map issues to code, fix, re-audit), use the companion skill.
squirrelaudit-websitesquirrelscan 是一款为AI Agent打造的网站审计工具。它可以回答“这个网站存在什么问题以及如何修复”:它像搜索引擎一样爬取网站,针对21个类别(SEO、性能、安全、可访问性、内容、结构化数据、Agent就绪性等)的249+条规则分析每个页面,并返回健康评分以及具体可修复的问题。无论用户是想要检查网站、提升排名、加快速度、优化健康状况,还是在部署前后或CI流程中,都可以使用它。
它以单一CLI二进制文件 的形式发布,支持macOS、Windows和Linux系统。本技能涵盖其操作方法:安装、认证、运行审核、发布报告、云功能以及MCP集成。如需完整的网站修复工作流(审核、将问题映射到代码、修复、重新审核),请使用配套的 技能。
squirrelaudit-websiteLinks
链接
- Website: squirrelscan.com
- Docs: docs.squirrelscan.com
- Rule reference:
https://docs.squirrelscan.com/rules/{rule_category}/{rule_id} - Dashboard (cloud account, audit history, credits): app.squirrelscan.com
- 官网:squirrelscan.com
- 文档:docs.squirrelscan.com
- 规则参考:
https://docs.squirrelscan.com/rules/{rule_category}/{rule_id} - 控制台(云账户、审核历史、积分):app.squirrelscan.com
Install
安装
Download and install instructions: squirrelscan.com/download
The binary installs to . Verify with:
~/.local/bin/squirrelbash
squirrel --versionKeep it current:
bash
squirrel self updateIf is not found, ensure is in PATH, or reinstall from the download page.
squirrel~/.local/bin下载和安装说明:squirrelscan.com/download
二进制文件会安装到 ,可通过以下命令验证:
~/.local/bin/squirrelbash
squirrel --version保持版本更新:
bash
squirrel self update如果找不到 命令,请确保 已加入PATH,或从下载页面重新安装。
squirrel~/.local/binCommand overview
命令概览
| Command | Purpose |
|---|---|
| Crawl + analyze + report in one step |
| Crawl only (no analysis) |
| Run audit rules on a stored crawl |
| Query, render, diff, and publish stored reports |
| Create |
| Show or edit configuration |
| login / logout / status / whoami |
| Mint, list, revoke org API keys |
| Cloud credit balance + feature pricing |
| Run the local MCP server (stdio) |
| Install or update agent skills |
| install / update / doctor / completion / version / settings / uninstall |
| Send feedback to the squirrelscan team |
Every command supports .
--help| 命令 | 用途 |
|---|---|
| 一键完成爬取+分析+报告 |
| 仅爬取(不进行分析) |
| 对已存储的爬取结果运行审核规则 |
| 查询、渲染、对比并发布已存储的报告 |
| 创建 |
| 查看或编辑配置 |
| 登录 / 登出 / 状态查看 / 当前用户信息 |
| 创建、列出、撤销组织API密钥 |
| 云积分余额 + 功能定价 |
| 运行本地MCP服务器(标准输入输出) |
| 安装或更新Agent技能 |
| 安装 / 更新 / 健康检查 / 自动补全 / 版本查看 / 设置 / 卸载 |
| 向squirrelscan团队发送反馈 |
所有命令均支持 参数。
--helpQuickstart
快速开始
bash
squirrel init -n my-project # optional: project config in cwd
squirrel audit https://example.com --format llm- Local audits are free and run entirely on your machine. No account needed.
- ALWAYS prefer when an agent is reading the output: it is a compact, token-optimized format built for LLMs.
--format llm - Audits are cached in a local project database; re-renders without re-crawling.
squirrel report
bash
squirrel init -n my-project # 可选:在当前目录创建项目配置
squirrel audit https://example.com --format llm- 本地审核完全免费,且全程在您的设备上运行,无需账户。
- 当Agent读取输出时,请始终优先使用 :这是一种为LLM优化的紧凑格式,可减少token消耗。
--format llm - 审核结果会缓存到本地项目数据库中;使用 可重新渲染报告,无需重新爬取。
squirrel report
Coverage modes
覆盖模式
| Mode | Default pages | Behavior |
|---|---|---|
| 25 | Seed + sitemaps only, fast health check |
| 100 | One sample per URL pattern ( |
| 500 | Crawl everything up to the limit |
bash
squirrel audit https://example.com -C full -m 500 --format llm| 模式 | 默认爬取页数 | 行为 |
|---|---|---|
| 25 | 仅爬取种子页面和站点地图,快速完成健康检查 |
| 100 | 每个URL模式爬取一个样本(如 |
| 500 | 爬取所有内容,直至达到页数限制 |
bash
squirrel audit https://example.com -C full -m 500 --format llmAuthentication and accounts
认证与账户
Local audits never require an account. Sign in to unlock cloud features (publishing, browser rendering, scheduled crawls, credits):
bash
squirrel auth login # browser-based login
squirrel auth status # source, scopes, active org
squirrel auth whoami
squirrel auth logoutHeadless / CI environments use an org API key instead:
bash
squirrel keys create # requires a login session; prints an sq_... keySet it as in the environment. Treat keys as secrets; never commit them.
SQUIRRELSCAN_API_KEY本地审核无需账户。登录后可解锁云功能(发布报告、浏览器渲染、定时爬取、积分):
bash
squirrel auth login # 基于浏览器的登录
squirrel auth status # 查看来源、权限范围、当前组织
squirrel auth whoami
squirrel auth logout无头环境/CI环境需使用组织API密钥:
bash
squirrel keys create # 需要登录会话;生成一个sq_...格式的密钥将密钥设置为环境变量 。请将密钥视为机密信息;切勿提交到代码仓库。
SQUIRRELSCAN_API_KEYReports
报告
Render the latest (or a specific) stored audit:
bash
squirrel report --list # recent audits
squirrel report <audit-id> --format llm
squirrel report example.com --format markdown -o report.mdFormats: , , , , , , . Filter with or .
consoletextjsonhtmlmarkdownxmlllm--severity error--category core,links渲染最新(或指定)的已存储审核结果:
bash
squirrel report --list # 查看近期审核记录
squirrel report <audit-id> --format llm
squirrel report example.com --format markdown -o report.md支持的格式:、、、、、、。可通过 或 进行过滤。
consoletextjsonhtmlmarkdownxmlllm--severity error--category core,linksPublishing
发布报告
Signed-in audits publish a shareable report to reports.squirrelscan.com by default (visibility: unlisted). Control it:
bash
squirrel report <audit-id> --publish --visibility unlisted # public | unlisted | private
squirrel audit https://example.com --no-publish # skip publishing for a run
squirrel audit https://example.com --offline # fully offline: no cloud, no publish, no telemetry已登录状态下的审核默认会将可分享的报告发布到reports.squirrelscan.com(可见性:未公开)。可通过以下命令控制:
bash
squirrel report <audit-id> --publish --visibility unlisted # 可选:public | unlisted | private
squirrel audit https://example.com --no-publish # 本次审核跳过发布
squirrel audit https://example.com --offline # 完全离线模式:不使用云服务、不发布报告、不收集遥测数据Regression diffs
回归对比
bash
squirrel report --diff <baseline-audit-id> --format llm
squirrel report --regression-since example.com --format llmDiff mode supports , , , , and .
consoletextjsonllmmarkdownbash
squirrel report --diff <baseline-audit-id> --format llm
squirrel report --regression-since example.com --format llm对比模式支持 、、、 和 格式。
consoletextjsonllmmarkdownCloud features and credits
云功能与积分
Cloud features are pay-as-you-go with credits (nothing charged up front). Check balance and pricing:
bash
squirrel credits- /
--render: cloud browser rendering for client-rendered pages (uses credits, requires login).--render-mode auto|all|off - skips spend confirmations up to the configured per-audit credit cap.
--yes - (repeatable) makes CI runs exit non-zero when a threshold trips.
--fail-on "score<90" - The dashboard at app.squirrelscan.com shows audit history, issues, and credit usage.
云功能采用按需付费的积分模式(无需预先充值)。查看余额和定价:
bash
squirrel credits- /
--render:云浏览器渲染,用于客户端渲染页面(消耗积分,需登录)。--render-mode auto|all|off - 参数可跳过每次审核的消费确认,直至达到配置的单审核积分上限。
--yes - (可重复使用)可使CI流程在评分低于阈值时返回非零退出码。
--fail-on "score<90" - 控制台 app.squirrelscan.com 可查看审核历史、问题记录和积分使用情况。
MCP server
MCP服务器
Two ways to connect agents over MCP:
- Local (stdio): runs against the local CLI. Register it in your agent's MCP config with command
squirrel mcpand argssquirrel.["mcp"] - Hosted (streamable-http): . Sign in via OAuth from the MCP client, or send an
https://mcp.squirrelscan.com/mcpAPI key header.Authorization: Bearer sq_...
通过MCP连接Agent有两种方式:
- 本地(标准输入输出):基于本地CLI运行。在Agent的MCP配置中注册,命令为
squirrel mcp,参数为squirrel。["mcp"] - 托管(流式HTTP):。从MCP客户端通过OAuth登录,或发送
https://mcp.squirrelscan.com/mcpAPI密钥请求头。Authorization: Bearer sq_...
Configuration
配置
Project config lives in (created by ). User settings live at .
squirrel.tomlsquirrel init~/.squirrel/settings.jsonbash
squirrel config show
squirrel config set <key> <value>
squirrel config path
squirrel config validateUseful sections: (delays, headers, incremental re-crawl), (render mode, max credits per audit).
[crawler][cloud]项目配置存储在 中(通过 创建)。用户设置存储在 。
squirrel.tomlsquirrel init~/.squirrel/settings.jsonbash
squirrel config show
squirrel config set <key> <value>
squirrel config path
squirrel config validate常用配置项:(延迟、请求头、增量重爬)、(渲染模式、单审核最大积分限制)。
[crawler][cloud]Custom request headers
自定义请求头
Attach headers to every crawl request with the repeatable flag or a map under . The main use case is Web Bot Auth (Shopify / Cloudflare), so platforms that block unknown crawlers can authorize squirrelscan. Header values are secrets: squirrelscan redacts them in output, and you should source them from a secret store rather than committing them. Full recipe: https://docs.squirrelscan.com/guides/web-bot-auth
-H "Name: Value"headers[crawler]可通过重复的 标志或 下的 映射为每个爬取请求添加请求头。主要用于Web机器人认证(Shopify / Cloudflare),以便阻止未知爬虫的平台授权squirrelscan。请求头值属于机密信息:squirrelscan会在输出中自动脱敏,您应从机密存储中获取这些值,而非提交到代码仓库。完整教程:https://docs.squirrelscan.com/guides/web-bot-auth
-H "Name: Value"[crawler]headersMaintenance
维护
bash
squirrel self doctor # health checks
squirrel self update # update the binary
squirrel self completion # shell completions
squirrel skills update # update installed agent skillsbash
squirrel self doctor # 健康检查
squirrel self update # 更新二进制文件
squirrel self completion # 命令行自动补全
squirrel skills update # 更新已安装的Agent技能Troubleshooting
故障排查
- : install from squirrelscan.com/download and ensure
squirrel: command not foundis in PATH.~/.local/bin - Session expired / 401: run again, or check
squirrel auth login.SQUIRRELSCAN_API_KEY - Slow or stuck crawl: add to see progress; large sites can take minutes.
--verbose - Invalid URL: include the protocol: , not
https://example.com.example.com - Anything else: run , then
squirrel self doctorto report it.squirrel feedback
- :从 squirrelscan.com/download 安装,并确保
squirrel: command not found已加入PATH。~/.local/bin - 会话过期 / 401错误:重新运行 ,或检查
squirrel auth login是否正确。SQUIRRELSCAN_API_KEY - 爬取缓慢或卡住:添加 参数查看进度;大型网站可能需要数分钟。
--verbose - URL无效:请包含协议前缀,如 ,而非
https://example.com。example.com - 其他问题:运行 ,然后使用
squirrel self doctor提交问题报告。squirrel feedback