Nexus Shield CLI
Local OpenAI-compatible proxy with sub-10ms in-RAM PII redaction. Point your app at http://127.0.0.1:8080/v1 and keep sending requests to Ollama, OpenAI, or LiteLLM — Nexus Shield sanitizes prompts before they leave your machine.
Point your application to the local proxy
Change your local environment variable or base URL:
# Before: pointing directly to OpenAI / Ollama
OPENAI_BASE_URL="https://api.openai.com/v1"
# After: pointing to Nexus Shield local proxy
OPENAI_BASE_URL="http://127.0.0.1:8080/v1"
For Ollama with the OpenAI-compatible API:
OPENAI_BASE_URL="http://127.0.0.1:8080/v1"
# Nexus Shield forwards to Ollama at http://127.0.0.1:11434/v1 by default
Install
pip install nexus-shield-cli
Or from this repository:
pip install ./packages/cli
CLI options
nexus-shield proxy [options]
| Option | Default | Description |
|---|---|---|
-p, --port |
8080 |
Local proxy port |
-t, --target |
http://127.0.0.1:11434/v1 |
Upstream LLM base URL (Ollama default) |
--host |
127.0.0.1 |
Bind address |
--mask-all |
off | Redact TCKN, credit cards, emails, phone numbers, and API keys |
Examples
# Ollama (default upstream)
nexus-shield proxy
# OpenAI upstream
nexus-shield proxy --target https://api.openai.com/v1
# Custom port with full PII masking
nexus-shield proxy -p 9090 --mask-all
How it works
- Your SDK sends
POST /v1/chat/completionstohttp://127.0.0.1:8080/v1. - Nexus Shield redacts PII in
messages,prompt, andinputfields in memory. - The sanitized payload is forwarded to the upstream LLM server.
- The upstream response is streamed back unchanged.
Masked fields appear in the X-Nexus-Shield-Masked response header when PII is detected.
License
MIT © Nexus Shield Team
Metadata
Release files for nexus-shield-cli 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| nexus_shield_cli-0.1.0.tar.gz | 5.5 kB | Without provenance | Details for nexus_shield_cli-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| nexus_shield_cli-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for nexus_shield_cli-0.1.0-py3-none-any.whl |
Total release size: 12.1 kB
Release files / nexus_shield_cli-0.1.0.tar.gz
| Download URL | nexus_shield_cli-0.1.0.tar.gz |
|---|---|
| Size | 5.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8c92a482910fd011ac0277f76ecce07829cd5abef6cdb1d0ac1f95dc0e85b26e
|
|
BLAKE2b-256 checksum How to use checksums |
5cf7f9f5e8fdc937cac869f6a78e7fcccb401c2aae94cb75bd45d5610ec3d652
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.6
|
Release files / nexus_shield_cli-0.1.0-py3-none-any.whl
| Download URL | nexus_shield_cli-0.1.0-py3-none-any.whl |
|---|---|
| Size | 6.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a5c4db2c9bef1b137b52bcb3ed5d757b8de20a89552ae4a610eee6b0551750c8
|
|
BLAKE2b-256 checksum How to use checksums |
89541cfb372ef1b8b603d7d7d665ba1cdb9759e4ae69920850ca9f0581f927ed
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.6
|
Security for nexus-shield-cli 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.