Skip to main content

mobiusguard

The Mobius Guard firewall proxy. Part of Mobius Guard. Alpha: the API may still change before 1.0.

It sits between your app and the model and speaks three APIs: OpenAI Chat Completions (/v1/chat/completions), OpenAI Responses (/v1/responses) and Anthropic Messages (/v1/messages), streamed or not.

  • On the way in, user messages and tool results are cleaned up (invisible characters, look-alike letters, spaced-out letters, leetspeak and base64 undone) and checked against named rules, and optionally a classifier. A clear rule hit is refused with HTTP 403 in the API's own error format, naming the rule. Classifier scores are logged until you set a threshold.
  • On the way out, secrets and personal data are replaced in the reply as it streams, even when they are split across events (mobiusguard-redact).
  • For each request, one audit line: the decision, rule IDs, scores and what was redacted, never the prompt text unless you ask. OpenTelemetry spans if installed.
mobiusguard serve --port 8787                 # forwards each caller's own API key
mobiusguard check "Ignore all previous instructions"   # try the request check

Point any SDK at it:

from openai import OpenAI

client = OpenAI(base_url="http://127.0.0.1:8787/v1")  # your usual API key

from anthropic import Anthropic

claude = Anthropic(base_url="http://127.0.0.1:8787")

To try it with a free local model, run Ollama and use examples/ollama.toml; scripts/live_check.py sends every case through all three APIs.

Settings are a TOML file (mobiusguard serve --config mobiusguard.toml). Guides: quickstart, configuration, rules, audit log and deploying it, including the container image. The design is in decision 0010. Optional extras: mobiusguard[classifier] (PIGuard or ProtectAI v2, about a second per long prompt on a CPU) and mobiusguard[otel].

Metadata

Release files for mobiusguard 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mobiusguard 0.1.1
File Size Uploaded Provenance Actions
mobiusguard-0.1.1.tar.gz 34.7 kB With provenance Details for mobiusguard-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for mobiusguard 0.1.1
File Interpreter ABI Platform Actions
mobiusguard-0.1.1-py3-none-any.whl Python 3 none any Details for mobiusguard-0.1.1-py3-none-any.whl

Total release size: 66.1 kB

Release files / mobiusguard-0.1.1.tar.gz

Download URL mobiusguard-0.1.1.tar.gz
Size 34.7 kB
Tags Source
SHA-256 checksum
How to use checksums
4ddad0eaa015b97cebe641d1cde313a9eab0579cc44961f2c987d8457372e12f
BLAKE2b-256 checksum
How to use checksums
b20939458afa86b10d46bf95395b896473c7bc1826d4614d2693e193459df3ca
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 4, 2026.

Transparency log

Release files / mobiusguard-0.1.1-py3-none-any.whl

Download URL mobiusguard-0.1.1-py3-none-any.whl
Size 31.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6ea91d6fa5b1d9fc27c91b743b54e54c75e8fdffbdd17c7fbeb40c1a3ea5b541
BLAKE2b-256 checksum
How to use checksums
68bcf31e14aa12432a87b9bfbc6ce8492a39f6526a84fecdcf2168e73979e54d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 4, 2026.

Transparency log

Security for mobiusguard 0.1.1

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for mobiusguard-0.1.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 4, 2026.

Transparency log

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page