solarsnake

Cui Guard — Data skill for Claude Code

Data community

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.