Cui Guard — Data skill for Claude Code
Local gateway that keeps CUI and other controlled data out of public AI models.
How to install Cui Guard
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open solarsnake/cui-guard and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Cui Guard does
Local gateway that keeps CUI and other controlled data out of public AI models. It sits between coding agents (Claude Code, Codex, Ollama) and the model API, and masks, blocks or routes sensitive content, with audited overrides.
Alternatives in Data
- App Store Compliance — Avoid common App Store and Google Play rejections 3.6k ★
- Portaljs Add Dataset — Add a dataset (CSV, TSV, JSON, or GeoJSON) to an existing PortalJS portal 2.3k ★
- Buddy Graph — Generate and open an interactive visualization of Buddy guard-mode reasoning data using the Buddy CLI 103 ★
README
cui-guard
`cui-guard` is a local, open-source gateway that sits between an AI agent (Claude Code, Codex CLI, or any agent that accepts a custom base URL) and an LLM endpoint. It inspects every outbound request, blocks or pseudonymizes what your policy forbids, and logs each decision without recording the matched content. Known limits: [docs/LIMITS.md](docs/LIMITS.md).
Install
pipx install cui-guard
pipx install "cui-guard[ner]" # optional: name detection (Presidio, spaCy)
pipx install "cui-guard[macos]" # macOS: Touch ID / password prompts for overrides and approvals
Supported platforms: macOS and Linux (including WSL2). Python 3.11 or newer.
Development
pip install uv
uv sync --group dev # or: pip install -e . --group dev (pip 25.1 or newer)
scripts/check all # lint, test, perf, lock, audit (needs network), secrets (needs gitleaks), workflows, sbom, build
scripts/check report # every gate including perf, leak, fuzz and fips (Docker); writes build/security-report
Release wheels embed the SBOM (`scripts/check sbom` builds it); dev builds may not.
Quick start
cui-guard claude # Claude Code through the gateway
cui-guard codex # Codex CLI through the gateway
cui-guard run -- my-agent --flag # any agent that honors a base-URL variable
cui-guard scan notes.txt # check a file; prints rule IDs, never matched values
cui-guard lanes # list configured lanes
cui-guard log # recent audit records
cui-guard policy # effective policy and where each setting came from
The launcher starts a gateway on `127.0.0.1` (random port, per-session token), points the agent at it, and shuts it down when the agent exits.
The launchers accept `--profile`, but only `cui` is honored, and in v1 it is a no-op: the session uses the profile from your policy layers. Any other value is ignored with a warning.
Related Skills
LLM Dlp
Local proxy that masks sensitive data between you and the LLM (Claude Code): the API only sees pseudonyms
Cross Model Agents
Bidirectional adversarial review between Claude Code (Opus 4.7) and Codex CLI (GPT-5.5). 31 agents, 4 skills,
MCP Rtk
Token-optimizing MCP proxy - sits between Claude and any MCP server, compressing tool responses by 60-90% thro
Pre Publication Review Gate Checklist
Pre-launch review gate for public-facing content: claim accuracy, accessibility, privacy, copyright, commercia
LLM Redactor
A transparent egress gateway to redact sensitive credentials and local data for LLM coding agents.
Claude Guard Hook
A global Claude Code hook that intercepts sensitive data before it reaches the LLM — secrets, API keys, PII, a
Related Agents
Local Worker
Coding worker on a local model (Ollama, LM Studio, vLLM) served by the multi-model gateway's upstream. Use whe
Gateway Notes
Purpose: the confirmed gateway/guardrail mechanisms for the workshop, input guard, output sidecar, MCP authz,
Paf Reviewer
Runs one phone-a-friend relay or review command in the background and reports back a receipt plus the findings