Sign inSign up

ajeetraina777/mend-guardrails-kit

By ajeetraina777

Updated 1 day ago

Sandbox Kit
0

60

ajeetraina777/mend-guardrails-kit repository overview

Digest

sha256:55cf00457230…

Size

8.1 kB

Schema

v2

Pushed

1 day ago

Specificationspec.yaml

MIXIN

Runs mend-guardrails-server on loopback and points Codex/OpenAI-compatible agents at it via OPENAI_BASE_URL so prompt bodies are inspected (secrets, PII, prompt injection) before they reach the model. Also exposes /v1/guard/* and mend-guard-text for scanning MCP and tool-result text.


Arguments
NameRequiredDefaultDescription
interceptTuiOptionalfalse

Opt in to route Codex TUI model calls through loopback Guardrails (user-level model_provider=mend_guardrails). Default false keeps ChatGPT subscription TUI auth. When true, requires a host OpenAI platform API key with api.responses.write (and billing), plus an API model name (not Sol/Luna-only ChatGPT catalog).

Options: false, true
offlineOptionalfalse

Set MEND_GUARDRAILS_OFFLINE. Default false (online: platform registration and telemetry). Use true with policySource=local so the SDK can load the kit sandbox.json. MEND_KEY is still required. Do not combine with policySource=api.

Options: false, true
policySourceOptionalapi

Default api loads the org policy from the Mend Platform (use with offline=false). Enable detectors in the platform policy as needed. Opt in to local for the kit sandbox.json file (startup then sets offline=true).

Options: local, api
pythonSrcOptional

Absolute path to a local mend-guardrails-python checkout for editable install instead of the Mend downloads wheel. Empty (default) installs from PyPI + downloads.mend.io. Mount the same path as an extra sbx workspace (not :ro) so install can write egg-info, e.g. sbx run ... --kit-arg mend-guardrails.pythonSrc="$SRC" . "$SRC".


Network Egress

*.mend.io

mend.io

pypi.org

files.pythonhosted.org

github.com

objects.githubusercontent.com

release-assets.githubusercontent.com

Apply this mixin to a sandbox

sbx run <agent> --kit docker.io/ajeetraina777/mend-guardrails-kit:latest

Make sure you have docker sbx installed

Run the following command to install sbx on your machine.

macOS
brew install docker/tap/sbx
Windows
winget install Docker.sbx
Learn more about docker sbx
No overview available
This repository doesn't have an overview