Safe Mode — Your AI can't delete your files, leak your secrets, or blow your budget. Python SDK for AI agent safety.
Project description
Safe Mode for AI Agents
Your AI can't delete your files, leak your secrets, or blow your budget.
Safe Mode is a local safety layer for AI agents. It intercepts tool calls, detects dangerous actions, and blocks catastrophic mistakes — before they happen.
Installation
pip install safemode-ai
Coming Soon
The Safe Mode Python SDK is under active development. It will provide:
- Action gating — Allow, approve, or block AI actions by category
- Detection engines — Secret scanning, PII detection, prompt injection, path traversal, loop killing, budget caps
- Preset configurations — Safe-ish (YOLO with seatbelt), Coding (standard guardrails), Personal (AI assistant mode), Strict (read-only)
- Framework integration — Works with LangChain, CrewAI, AutoGen, and custom Python AI agents
- Local-first — Runs on your machine. No account required. No data leaves your device.
Also Available
- npm package (MCP proxy):
npm install -g safemode - TrustScope (cloud governance): trustscope.ai
Links
- Website: safemode.run
- GitHub: github.com/trustscope/safemode-ai
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file safemode_ai-0.0.1.tar.gz.
File metadata
- Download URL: safemode_ai-0.0.1.tar.gz
- Upload date:
- Size: 2.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e25723ffb73f5cafbb457b9138213ee4f985558ae559621c3c293d5351978836
|
|
| MD5 |
93176d7ae3cade1e9fb6223c42eb6a57
|
|
| BLAKE2b-256 |
736c4c93256464c19a5e800230def431bb2f080c7f569cd9b12f35d412ec4cc9
|
File details
Details for the file safemode_ai-0.0.1-py3-none-any.whl.
File metadata
- Download URL: safemode_ai-0.0.1-py3-none-any.whl
- Upload date:
- Size: 2.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
065ed3929d36bc9f2f76e0ea470cd248c61038978e3978f0515c1cfdab15f762
|
|
| MD5 |
23b39c13fabed5884249349fc7052fa6
|
|
| BLAKE2b-256 |
9b3df66a5fbd070720e2c05054222599e6b58ff39d4c0fdfac2c7cef50f75a7f
|