Skip to content

Free. Self-contained. Runs on your model.

One scan reviews every route your agent wrote and writes each one an x-security policy. One bundle per host — nothing sent to x-security, no account, no card. Every rule cites a real file:line in your code.

The plugin is local; your code leaves your machine only to your model provider, same as any coding session. A scan runs on your model plan — usage appears in your provider dashboard like any session. Measured on a 9-route API, a full scan — inventory, detection, verification, compile, audit — used about 120k tokens end to end: roughly one short coding session. Cost scales with route count.

One bundle per host. Unzip, load, scan.

Each bundle is self-contained — the plugin, the MCP server, and the full CLI in one zip. Checksums are the real sha256 of the staged artifact.

Claude Code

claude

Plugin — slash commands, skills, and the bundled MCP server.

↓ x-security-claude-0.1.0.zip
sha256
2e5fe2742e036f757b4f609e960af8b5def3df0747303b6c266ad0a8eea8620f
  1. 01Unpack the bundle.
    unzip x-security-claude-0.1.0.zip -d x-security-claude
  2. 02Load the plugin from disk. The /x-security-scan command and skills appear in-session.
    claude --plugin-dir ./x-security-claude

Cursor

cursor

MCP adapter — registers the bundled x-security server in Cursor.

↓ x-security-cursor-0.1.0.zip
sha256
e1b072a6fc144f13956a5f8402d2237d0a84797a68ed1e0a28f127d2f0c4668b
  1. 01Unpack the bundle.
    unzip x-security-cursor-0.1.0.zip -d x-security-cursor
  2. 02Merges the x-security server into ~/.cursor/mcp.json (idempotent — touches nothing else).
    cd x-security-cursor && ./install.sh

Codex

codex

MCP adapter — registers the bundled x-security server for Codex.

↓ x-security-codex-0.1.0.zip
sha256
dbf6a531d0ce2f22944b1a60bdf2e59c12f1ea0b3e161d5c102684c23f7df117
  1. 01Unpack the bundle.
    unzip x-security-codex-0.1.0.zip -d x-security-codex
  2. 02Registers the self-contained MCP server. Absolute paths — no npx, no network.
    cd x-security-codex && ./install.sh

The same CLI on the main page. Deterministic, LLM-free.

Route inventory, policy audit, gateway config, drift gates. The exact commands from the CLI docs and the published package.

# install — adds the `xsecurity` command
$ npm i -g @chain305/x-security

# 1 · scaffold empty x-security blocks on every unannotated route
$ xsecurity init openapi.yml

# 2 · OWASP API Top 10 + annotation coverage
$ xsecurity report openapi.yml

# 3 · compile to your gateway — deterministic, byte-identical output
$ xsecurity generate openapi.yml --target kong > kong.yaml

# 4 · closed-loop Docker test, then gate CI on drift
$ xsecurity test openapi.yml --target kong
$ xsecurity validate openapi.yml --target kong --gateway http://localhost:8001

No npm? The identical CLI ships inside every bundle at bin/cli.mjs — Node 20+, no install step. Same verbs, run directly against the unpacked bundle:

# already unpacked above — no install, Node 20+ only
$ node x-security-claude/bin/cli.mjs report openapi.yml
$ node x-security-claude/bin/cli.mjs generate openapi.yml --target kong > kong.yaml

Prefer a full walkthrough first? Claude Code setup · Cursor MCP setup. Bundles are versioned with the schema — pin v0.1.0 for reproducible installs.