squirrelscan for OpenAI Codex
Set up squirrelscan in OpenAI Codex CLI: add the hosted MCP server, install the skills, and run audits.
Codex connects to squirrelscan over the hosted MCP server and reads Agent Skills from ~/.agents/skills, so it can run audits, read findings as tools, and fix them in your repo.
1. Install the CLI
The skills and local audits run through the squirrel binary.
curl -fsSL https://install.squirrelscan.com | bashLocal audits are free and run entirely on your machine. Verify with squirrel --version.
2. Add the MCP server
codex mcp add squirrelscan --url https://mcp.squirrelscan.com/mcp
codex mcp login squirrelscancodex mcp login opens the browser, runs PKCE with a local loopback callback, and stores the token encrypted (Codex CLI 0.140.0+), not in config.toml.
codex mcp add squirrelscan --url https://mcp.squirrelscan.com/mcp \
--bearer-token-env-var SQUIRRELSCAN_API_KEYCodex sends SQUIRRELSCAN_API_KEY as Authorization: Bearer <value>. Export it in your shell or CI first.
Hand-write the block into ~/.codex/config.toml (global) or <project>/.codex/config.toml (honored once the project is trusted):
[mcp_servers.squirrelscan]
url = "https://mcp.squirrelscan.com/mcp"
# bearer_token_env_var = "SQUIRRELSCAN_API_KEY" # omit if using OAuth3. Install the skills
Codex reads Agent Skills from ~/.agents/skills, so the same install works:
npx skills add squirrelscan/squirrelscan4. Run an audit
Ask Codex in natural language, it will call the squirrelscan tools or the CLI:
Use squirrelscan to audit example.com, then fix the high-severity issues.
Scope large sites to keep runs fast:
Audit only /blog/* on example.com, cap it at 20 pages, and list the SEO regressions.