Skip to main content Switch to mobile version briefcase-ai 7.1.1 Compliance monitoring, auditing, and evaluating third-party artificial intelligence systems and models.
pip install briefcase-ai==7.1.1 Copy PIP instructions
Compliance monitoring, auditing, and evaluating third-party artificial intelligence systems and models.
Enforce controls, record context, replay later.
pip install briefcase-ai TypeScript consumers install the focused runtime packages:
npm install @briefcase-ai/controls @briefcase-ai/runtime @briefcase-ai/runtime exposes only explicit subpaths: @briefcase-ai/runtime/integrity, /lakefs, /connectors, and /trace.
import briefcase briefcase.observe("console") # send records to stderr (or "memory" / "runs.jsonl" / an https:// URL) @briefcase.capture(decision_type="classify_text") def classify(text: str) -> str: return text.upper() classify("hello world") # a decision record is emitted capture works immediately — no briefcase.init() required. Call init() only when you use the native runtime features (storage backends, snapshots). Without a call to briefcase.observe(...) (or briefcase.setup(exporter=...)), @capture records decisions but has nowhere to send them.
Exporters. briefcase.observe(...) accepts "console", "memory" (records collected on exporter.records), a "*.jsonl" path, an https:// URL (JSON batches via the stdlib-only HTTPExporter; pass HTTPExporter(url, token=...) for auth), or any briefcase.exporters.BaseExporter instance — subclass BaseExporter to ship records to your own backend. The exporter classes are also importable from the top level (briefcase.JSONLFileExporter, …).
Delivery. Records are exported on a background thread through a bounded queue (10,000 records by default; briefcase.configure_export(...) tunes the bound, retries, and timeout). If the exporter cannot keep up, new records are dropped, counted in briefcase.export_stats(), and reported at WARNING. Queued records are drained at interpreter exit for up to 5 seconds, with no explicit call; use briefcase.shutdown(timeout=...) (or briefcase.flush()) to drain earlier, or before os._exit.
What gets captured. @capture works on functions, coroutines, generators, and async generators (a generator emits one record when it finishes, with the collected chunks as output). Cancelled or timed-out async calls are recorded with status: "cancelled". Records carry a schema_version, plus workflow_id / trace_id when a briefcase.correlation workflow or an OpenTelemetry span is active. capture(sample_rate=0.1) records a fraction of calls.
Content rule. Briefcase records prompt, completion and tool content only where someone chose to record it. Every automatic path (briefcase.auto() for frameworks and provider SDKs, briefcase-ai exec, connect and the receiver, eval records) records none until you opt in with capture_content="full" (or "hash"), --capture-content / --keep-content, or BRIEFCASE_CAPTURE_CONTENT=full. @capture on your own function is itself that choice: it records the function's arguments and return value (pass capture_content="hash" or "none" to keep them out).
import briefcase does not require the compiled core: the pure-Python surface (capture, exporters, controls, events, routing) works from a source checkout, and native-backed names raise a clear ImportError only when used.
Two bridges emit decision records from work that is not a single function call. Both use the exporter you already configured.
from briefcase.integrations.evals import EvalRun, from_inspect_log, replay with EvalRun("gsm8k", model="claude-opus-5") as run: # one eval.case per case, run.log_case("q1", inputs=q, outputs=a, passed=a == target) # one eval.run print(run.summary()["pass_rate"]) replay(from_inspect_log("logs/2026-08-12_gsm8k.eval")) # inspect-ai .json/.eval The parsers are stdlib only and never import the eval framework, so a log can be replayed on a machine that has neither installed. See examples/eval_runs/.
from briefcase.integrations.gym import GuardrailGymEnv, capture_episodes env = GuardrailGymEnv(guardrail, tasks, injections) # a guardrail as a gym.Env env = capture_episodes(env) # rl.step / rl.episode records Needs pip install briefcase-ai[gym]. See examples/rl_gym/.
capture_episodes exports on a background thread by default, since step capture is on the hot path. A script that exits right after close() can lose its records; pass capture_episodes(env, async_capture=False) in short runs. EvalRun already defaults to async_capture=False for that reason.
The library is silent by default (it installs only a NullHandler). Turn on visible logs explicitly:
import briefcase briefcase.enable_logging("DEBUG") # or set BRIEFCASE_LOG_LEVEL=DEBUG Using with AI tools (Cursor, Claude Code, Codex, …)
This repo ships machine-readable usage guidance: llms.txt / llms-full.txt, an AGENTS.md, and copy-paste editor rules under docs/llm/. An MCP server is available via pip install briefcase-ai[mcp] then briefcase-ai-mcp.
Plug-and-play integrations
Connect the coding tools on your machine in one command. Nothing to configure by hand:
briefcase-ai connect # detects Claude Code, Codex, Cursor, VS Code Copilot, ...; shows a diff; asks once briefcase-ai receive # local OTLP receiver: their telemetry becomes briefcase decision records connect writes each tool's telemetry and MCP settings as key-level edits with a backup, and briefcase-ai connect --undo removes exactly what it wrote. Prompts, responses, tool input, e-mail addresses and host paths are redacted unless you opt in (--capture-content / --keep-content). Claude Code and Cursor work on a bare install; Codex and VS Code Copilot send protobuf, which needs pip install 'briefcase-ai[receiver]'. briefcase-ai mcp link cursor prints a one-click install link for the MCP server. Per-tool details: docs/integrations/.
Most features are native- or pure-Python-backed and ship with the base package. These extras are convenience groupings that pull in no additional dependencies: replay, drift, sanitize, storage, validate, guardrails, rag, correlation, external, events, webhook, routing, vcs, bitemporal, compliance, and controls. The extras that install third-party packages are otel, kafka, gcp-logging, opa, lakefs, rag-chroma, rag-pinecone, rag-weaviate, vcs-dvc, vcs-pachyderm, vcs-ducklake, vcs-iceberg, gym, evals, bitemporal-iceberg, bitemporal-glue, kdb, compliance-kms, integrity, langchain, crewai, llamaindex, autogen, ag2, pageindex, openai-agents, mcp, run, engine, receiver, budgets-redis, budgets-postgres, and budgets-mysql. all installs every one of those except kdb; dev is the test tooling and is not part of all.
The free SDK captures decisions, enforces controls, and supports local replay and storage on your own infrastructure. The proprietary engine runs in Briefcase AI’s managed service. A paid entitlement grants access to the service. Engine binaries and images stay with Briefcase AI.
Request managed engine access. If you previously installed a local engine, follow the migration guide before stopping it.
The SDK can report anonymous usage metrics (SDK version, OS, architecture, backend type) to help prioritize development. No personal data or decision content is ever collected. Telemetry is only transmitted when a collection endpoint is configured via BRIEFCASE_API_URL (it defaults to localhost, i.e. a no-op), and you can disable it entirely at any time:
export BRIEFCASE_TELEMETRY=0 # also accepts: false, no, off (case-insensitive) Links
Docs: briefcaseai.io
GitHub: github.com/briefcasebrain/briefcase-ai-sdk
Contributing: CONTRIBUTING.md
Released: Dec 2, 2026
Author: Briefcase AI
All 6 files in this release have provenance metadata.
View provenance details
Apache-2.0 View SPDX License List
ag2 all autogen bitemporal bitemporal-glue bitemporal-iceberg budgets-mysql budgets-postgres budgets-redis compliance compliance-kms controls correlation crewai dev drift engine evals events external gcp-logging guardrails gym integrity kafka kdb lakefs langchain llamaindex mcp opa openai-agents otel pageindex rag rag-chroma rag-pinecone rag-weaviate receiver replay routing run sanitize storage validate vcs vcs-ducklake vcs-dvc vcs-iceberg vcs-pachyderm webhook
ai observability decision-tracking replay drift
Development Status 4 - Beta
Intended Audience Developers
License OSI Approved :: Apache Software License
Operating System MacOS
Microsoft :: Windows
Programming Language Python :: 3
Topic Scientific/Engineering :: Artificial Intelligence
Software Development :: Libraries :: Python Modules
Release files for briefcase-ai 7.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
Built distributions (wheels)
Total release size: 46.1 MB
Release files / briefcase_ai-7.1.1.tar.gz
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 Dec 2, 2026.
Release files / briefcase_ai-7.1.1-cp39-abi3-win_amd64.whl
Security for briefcase-ai 7.1.1
All 6 files in this release have been uploaded with provenance metadata.
With provenance briefcase_ai-7.1.1.tar.gz Dec 2, 2026
With provenance briefcase_ai-7.1.1-cp39-abi3-win_amd64.whl Dec 2, 2026
Attestation for briefcase_ai-7.1.1.tar.gz
Attestation for briefcase_ai-7.1.1-cp39-abi3-win_amd64.whl
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.
Release history Release notifications | RSS feed
Dec 3, 2026 6 release files Full provenance
Dec 2, 2026 6 release files Full provenance
Dec 1, 2026 6 release files Full provenance
Nov 25, 2026 6 release files Full provenance
Aug 16, 2026 5 release files Full provenance
Sep 25, 2026 6 release files Full provenance
Aug 16, 2026 5 release files Incomplete provenance
Aug 14, 2026 5 release files Full provenance
Aug 12, 2026 5 release files Full provenance
Jun 5, 2026 5 release files Full provenance
Jun 3, 2026 5 release files Full provenance
May 30, 2026 5 release files Full provenance
May 30, 2026 9 release files Full provenance
Mar 22, 2026 4 release files Full provenance
Mar 13, 2026 4 release files No provenance
Mar 12, 2026 4 release files No provenance
Mar 9, 2026 4 release files No provenance
Mar 2, 2026 4 release files No provenance
Apr 7, 2026 4 release files No provenance
Mar 1, 2026 4 release files No provenance
Feb 26, 2026 4 release files No provenance
Feb 23, 2026 4 release files No provenance
Feb 23, 2026 2 release files No provenance
Feb 22, 2026 2 release files No provenance
Feb 19, 2026 3 release files No provenance
Feb 8, 2026 3 release files No provenance
Feb 3, 2026 3 release files No provenance
Feb 3, 2026 1 release file No provenance
Jan 28, 2026 2 release files No provenance
Dec 23, 2025 2 release files No provenance
"PyPI", "Python Package Index", and the blocks logos are registered trademarks of the Python Software Foundation.
© 2026 Python Software Foundation
Deployed from 6571ef3











