
Crowdsec
Guides an agent through installing, configuring, operating and debugging CrowdSec
Crowdsec is an open-source agent skill for security. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.
- Scripts
- shell
- Platforms
- Claude Code, Codex, Cursor
- GitHub stars
- 32
- Last commit
- License
- MIT
- Listing updated
Similar skills
About Crowdsec
This skill gives an AI coding agent working knowledge of CrowdSec, the open-source security engine that detects malicious behaviour from logs and shares blocking decisions with bouncers. It walks the agent through detecting the environment (bare-metal systemd, Docker, Kubernetes or pfSense), checking the engine version against the latest release and confirming the package came from the official repository, then routing the task to the right reference page for installation, hub collections, acquisition, profiles, allowlists, notifications, bouncers, AppSec and bot detection, upgrades or fail2ban migration.
For debugging, the skill points the agent to a bundled bash diagnostic script that supports bare-metal, Docker and Kubernetes targets, and to symptom-based guides for parsing failures, missing alerts, decisions that are not enforced and AppSec or bot-detection problems. It also includes a cscli cheat sheet and a list of risky actions, such as bulk ban deletion or firewall changes, that require user confirmation first.
The skill needs root or sudo access on bare-metal hosts and a working shell. It is operational only and explicitly does not write WAF rules, scenarios or parsers, which are left to a separate local MCP tool.
When your agent uses it
Use when the user is installing, configuring, operating, or debugging CrowdSec — including cscli, LAPI/CAPI, hub collections, parsers/scenarios/whitelists deployment, bouncers (firewall, nginx, traefik, caddy), WAF (AppSec component) deployment, bot detection / AppSec challenge mode (blocking headless browsers and scrapers, allowing verified crawlers), profiles, notifications, upgrades, and fail2ban migration. Covers bare-metal/systemd, Docker, Kubernetes/Helm, and CrowdSec Console enrollment. This is an operational skill — it does not author WAF rules, scenarios, or parsers.
From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.
What it can access
- Runs shell scripts(see the files on GitHub)
- No network calls found in its scripts(see the files on GitHub)
- License: MIT(see the files on GitHub)
From a static check of its 33 files (277 KB) on GitHub on 4 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.
Check another skill before you install it.
Install
This skill ships in the crowdsec plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):
/plugin marketplace add crowdsecurity/crowdsec-skill
/plugin install crowdsec@crowdsecurityOr copy only this skill to ~/.claude/skills/crowdsec:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/crowdsecurity/crowdsec-skill.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/crowdsec &&
cp -R "$tmp/plugin/skills/crowdsec" ~/.claude/skills/crowdsec &&
rm -rf "$tmp"For one project only, put the folder in .claude/skills/crowdsec inside it instead.
Copy the skill folder to ~/.agents/skills/crowdsec to use it in every repository:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/crowdsecurity/crowdsec-skill.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/crowdsec &&
cp -R "$tmp/plugin/skills/crowdsec" ~/.agents/skills/crowdsec &&
rm -rf "$tmp"For one repository only, put the folder in .agents/skills/crowdsec inside it instead.
Copy the skill folder to ~/.cursor/skills/crowdsec to use it in every project:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/crowdsecurity/crowdsec-skill.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/crowdsec &&
cp -R "$tmp/plugin/skills/crowdsec" ~/.cursor/skills/crowdsec &&
rm -rf "$tmp"For one project only, put the folder in .cursor/skills/crowdsec inside it instead.
Run in a terminal (add --scope workspace to install it for the current workspace only):
gemini skills install https://github.com/crowdsecurity/crowdsec-skill.git --path plugin/skills/crowdsecOr copy the folder to ~/.gemini/skills/crowdsec yourself.
For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/crowdsec:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/crowdsecurity/crowdsec-skill.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/crowdsec &&
cp -R "$tmp/plugin/skills/crowdsec" ~/.copilot/skills/crowdsec &&
rm -rf "$tmp"For one project only, put the folder in .github/skills/crowdsec inside it instead.
Get the folder:
git clone --depth 1 https://github.com/crowdsecurity/crowdsec-skill.gitThen copy crowdsec-skill/plugin/skills/crowdsec into your agent's skills folder as crowdsec. Agents that support SKILL.md read one folder per skill.
What it does
- Environment detection
- Probes systemd, Docker and Kubernetes to find where CrowdSec runs before any changes are made.
- Version and source check
- Compares the installed engine with the latest release and confirms it came from the official package repository.
- Bouncer setup guidance
- Covers wiring bouncers for firewalls, nginx, HAProxy, Apache, Traefik and Caddy, including real client IP handling.
- Diagnostic script
- Runs a bundled bash script for general triage across bare-metal, Docker and Kubernetes targets.
- Symptom-based debugging
- Covers parsing failures, missing alerts, unenforced decisions and AppSec or bot-detection issues.
- Safety confirmations
- Lists destructive operations, such as wiping all decisions or changing firewall state, that need user approval.
Good for
- Install CrowdSec on a fresh Ubuntu server with systemd
- Set up the firewall bouncer and confirm bans are enforced
- Figure out why logs are not being parsed by CrowdSec
- Enable AppSec WAF protection in front of an nginx site
- Migrate a fail2ban setup to CrowdSec
- Upgrade CrowdSec from a distro package to the official repository
Crowdsec FAQ
Does Crowdsec need root access?
On bare-metal or systemd installs, cscli and crowdsec need root or sudo because they read config under /etc/crowdsec and control the systemd unit. Docker and Kubernetes commands run inside the container or pod and do not need this.
Does Crowdsec write WAF rules, scenarios or parsers?
No. The skill is operational only. Writing parsers, scenarios or WAF rules is handled by a separate local MCP tool.
Which environments does the diagnostic script cover?
It supports bare-metal, Docker (with a container name) and Kubernetes (with a namespace and pod) targets.
Does Crowdsec cover pfSense?
Yes. It detects pfSense and directs the agent to a separate install reference because paths and service names differ from Linux.
How do I install Crowdsec in Claude Code?
Copy the skill folder from GitHub to ~/.claude/skills/crowdsec to use it in all your projects, or to .claude/skills/crowdsec in one project. Or install the crowdsec plugin, which includes it: /plugin marketplace add crowdsecurity/crowdsec-skill, then /plugin install crowdsec@crowdsecurity.
Does Crowdsec run scripts?
Yes. It runs shell scripts. No network calls were found in its scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.
Which AI agents can use Crowdsec?
Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.
What are the best alternatives to Crowdsec?
The closest alternatives to Crowdsec are Crowdsec service API, Crowdsec hub authoring, Security review, Sh kb misconfig and Agent security hardening.
Where this comes from
- Description: from the skill's own SKILL.md.
More from crowdsecurity/crowdsec-skill

Guides writing, testing and reviewing CrowdSec hub parsers, scenarios and AppSec rules
- Open source
- 32 GitHub stars
- Security

Guides an agent through the CrowdSec Console cloud API for blocklists and integrations
- Open source
- 32 GitHub stars
- Security





