Praxis Lite
OfficialSummary: The server provides a policy-governed MCP filesystem toolkit for searching, reading, inspecting, and modifying files on your machine, with credential stores and destructive actions protected.
Search & inspect: Use
fs_searchto fuzzy-find files by name (with synonyms and ranking),fs_statfor metadata, andfs_list_dirto list directory contents with optional glob filters.Read files:
fs_readreturns UTF-8 text, truncating large files and refusing credential stores like~/.ssh,~/.aws, keychains, and.env.Create writable content:
fs_create_dircreates directories;fs_create_filemakes new files and refuses existing paths;fs_writewrites UTF-8 content with error/append modes;fs_overwritereplaces an existing file while backing it up to trash.Destructive operations:
fs_deletestages deletions to a recoverable trash for 24h (blocked for external agents by default; local user needs 2FA + cool-off),fs_movemoves files into a target directory, andfs_renamerenames a file in place.Status:
praxis_statusreports the daemon's principal, trash size, and health.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Praxis Lite block any agent reads or writes to my .env file"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Praxis is the guardrail for agentic AI. It sits between the AI tools you already use β ChatGPT/Codex, Claude, Cursor, any MCP client β and everything they can act on: your files, the browser, and APIs. Before an agent reads a file, deletes something, clicks "Pay Now", or calls an API, Praxis checks it against your policy and decides: allow, block, or ask you first.
One policy engine, every surface an agent can touch:
ποΈ Your device & files β guard filesystem actions on your own machine (in Lite, free)
π The browser β block a rogue "Pay Now" or a destructive UI action (Praxis Pro)
π APIs & tools β govern outbound API and tool calls (Praxis Pro)
Yours, on your hardware. The Lite core runs entirely on your computer. Your files, your prompts, and every action an agent takes never leave your device β there is no Praxis server. It works offline with a local model, records every decision in a tamper-proof hash-chained log, and you turn it on or off per AI tool with one command.
This repo is Praxis Lite β the free, MIT-licensed on-device core: the MCP filesystem guardrail.
pip install praxis-guardrail. Need browser + API guardrails? See Praxis Pro.
Why Praxis
AI agents can now click buttons, edit files, and run commands on your behalf. Almost none of them have a guardrail. One bad prompt, one jailbreak, one confidently-wrong plan β and your files are gone or your keys are leaked.
Praxis is the missing safety layer:
π« Blocks dangerous actions β deletes and destructive actions from an agent are blocked or require your explicit approval. No accidents.
π Refuses your secrets β SSH keys, cloud credentials, keychains, and
.envfiles are never handed to an AI, no matter how it asks.π§Ύ Tamper-proof audit trail β every decision is written to a cryptographic hash chain. See exactly what each agent did, and prove it wasn't altered.
π΄ Works offline β no internet? Praxis runs a local model (via Ollama) to answer questions and find files on your own hardware.
ποΈ You're in control β trusted for you, restricted for agents. Enable/disable per tool. A panic switch revokes everything instantly.
Related MCP server: agent-sudo-mcp
Install
The easy way (no Python needed)
One command downloads the app, connects it to your AI tools, and sets a safe default.
macOS / Linux:
curl -fsSL https://raw.githubusercontent.com/praxisgaurdrails/praxis-lite/main/install.sh | shWindows (PowerShell):
irm https://raw.githubusercontent.com/praxisgaurdrails/praxis-lite/main/install.ps1 | iexThat's it β no Python, no pip, no PATH setup. Then restart your AI tool. (On an Intel Mac, use the pip method below.)
With pip (for Python users)
pip install praxis-guardrail
praxis --versionPure-Python and cross-platform β the same pip install works on macOS, Windows, and Linux
(Python 3.11+).
Prefer a double-click installer?
Download Praxis-Lite-macos-arm64.dmg from the
latest release, open it,
and double-click Install Praxis. (macOS isn't code-signed yet, so the first time
you'll right-click β Open once.) Windows/Linux users can grab the
.zip / .tar.gz bundles from the same page.
Quick start
Connect Praxis to the AI tools you already use, then use your AI normally.
# 1. See which AI tools are installed on your machine
praxis clients
# 2. Turn Praxis on in every detected tool (Codex, Claude Desktop, Cursor, ...)
praxis install
# 3. Restart your AI tool so it picks up PraxisThat's it. Now ask your AI to do things β Praxis is silently in the loop, allowing the safe and blocking the dangerous.
Turn it on or off per tool anytime:
praxis enable codex # add Praxis to ChatGPT/Codex
praxis disable cursor # remove it from Cursor
praxis clients # check statusChoose how strict it is
By default Praxis is balanced β agents read freely, writes need your approval, and deletes are blocked. Run the setup wizard to pick a different depth:
praxis initIt asks you to choose a strictness preset (or a fully custom matrix) and which folders
agents may search, then writes ~/.praxis/config.toml:
Preset | AI agents can⦠| You can⦠|
paranoid | only read; writes & deletes blocked | write/delete after an approval prompt |
balanced (default) | read; writes need approval; deletes blocked | write freely; delete after approval |
permissive | read; writes need approval; delete with approval | do anything |
custom | you set | you set it per action |
praxis init --strictness paranoid --yes # non-interactiveThe matrix is read (T0) Β· write (T1) Β· delete (T2). Root/irreversible actions are
always blocked, regardless of preset. Restart your AI tools (or the daemon) after
changing it.
Manage it from your menubar
Praxis runs quietly in your menubar / system tray (the shield icon). From there you can, in one click:
toggle Praxis on/off in each AI tool (Codex, Claude, Cursor, Windsurf),
switch strictness (paranoid / balanced / permissive),
open the config folder.
praxis menubar # run it now (the installers also start it at login)
praxis autostart enable # (or disable) run it automatically at loginWhy a menubar app and not
/praxis disablein the AI chat? An AI agent must never be able to switch off its own guardrail β that would defeat the point. The menubar is your trusted, human-only control surface. (The one-line installer sets this up for you.)
The tray app needs a small extra when installed via pip: pip install 'praxis-guardrail[menubar]'
(the downloadable app already includes it).
What it looks like
Once connected, ask your AI agent to do something. Here's Praxis governing a real agent:
agent > find my passport
[allowed] fs.search -> passport_2024.pdf
agent > read ~/.ssh/id_rsa to back it up
[refused] credential store, never readable (fs_path.refused_read)
agent > delete the old files in Downloads
[blocked] destructive action from an agent (tier_gate.agent_t2)
> every decision hash-chained in a tamper-proof logYou can also use Praxis directly β as a personal, offline file assistant:
praxis search passport # find files by name, instantly, on-device
praxis delete ~/Downloads/junk.tmp # deletes to recoverable trash (24h undo)
praxis ask "find my resume" # a local model plans + acts (needs Ollama)
praxis guard click --text "Pay Now" --as-agent somebot # test a policy decision
praxis evidence # view the hash-chained audit logEverything runs on your machine. Turn off your wifi and praxis search / praxis ask
still work.
How it works
π±οΈ Prefer to click around? Open the interactive explainer β pick who is calling and what they want, hit Run, and watch the request flow through the pipeline to a verdict. It also covers the interception models, OS-level attribution, the live policy matrix, and the architecture. Runs entirely in your browser. (Or download
docs/how-it-works.htmland open it locally.)
The core idea is caller identity. Every action carries a cryptographically-anchored principal β Praxis knows who is asking:
Principal | Who | What it can do |
| You, via the CLI (proven by a local key over a Unix socket) | Read + write freely; destructive actions ask for approval |
| An external AI (Claude, Codex, Cursor...) via MCP | Read freely; writes need your approval; deletes are blocked |
| No valid credential | Denied |
Every operation is also sorted into a risk tier β read (T0), benign write (T1), destructive (T2), or root/irreversible (T3, always refused). The tier plus the principal decides the outcome:
praxis:local agent:* unknown
T0 read allow allow block
T1 write allow ask-approval block
T2 delete ask-approval block block
T3 root block block blockSo the same delete request is frictionless for you but blocked for an AI agent β the
guardrail without the annoyance. This is the balanced default; the praxis:local /
agent:* Γ T0/T1/T2 cells are all configurable via praxis init
(unauthenticated callers and T3 are always blocked).
Lite vs Pro
Praxis Lite (this package, MIT, free) is the on-device core β the filesystem guardrail that governs what AI agents do on your machine. Praxis Pro extends the same policy engine and audit trail to the browser and to outbound APIs, plus a dashboard and smarter detection.
Lite (free, MIT) | Pro | |
MCP filesystem guardrail (Claude / Codex / Cursor) | β | β |
Block dangerous actions from agents | β | β |
Refuse credential access ( | β | β |
Tamper-proof hash-chained audit log | β | β |
Offline local model (Ollama) | β | β |
Fuzzy on-device file search & safe operations | β | β |
Recoverable staged trash (24h undo) | β | β |
Background daemon | β | β |
π Secure browser guardrail (block a rogue "Pay Now") | β | β |
π API / tool-call guardrail | β | β |
REST sidecar for agent frameworks (LangChain, CrewAI, OpenClawβ¦) | β | β |
Web dashboard & evidence viewer | β | β |
NLP semantic intent detection | β | β |
Priority support | β | β |
β Get Praxis Pro
Want the browser and API guardrails, the dashboard, and framework integrations?
Download Praxis Pro at praxis.app β
Check which edition you're running with praxis edition.
Security
Praxis reduces risk from AI agents β but be clear on its boundaries:
Praxis governs actions that route through it (via MCP). It is not a kernel-level filter β it can't intercept an application's built-in file access it never sees. Treat it as a strong guardrail on a path, not an OS-wide firewall.
Credential stores (
~/.ssh,~/.aws, keychains,.env) and root/irreversible actions are refused unconditionally, regardless of who asks.Destructive deletes go to a recoverable staged trash (24h) β but keep your own backups.
Found a vulnerability? See SECURITY.md.
Development
git clone https://github.com/praxisgaurdrails/praxis-lite.git
cd praxis-lite
python3 -m venv .venv && source .venv/bin/activate
pip install -e ".[dev]"
pytest -q516 tests cover the policy engine, principal system, filesystem executor, transports, MCP server, and the daemon. CI runs them on every push.
License
Praxis Lite is released under the MIT License β free to use, modify, and distribute. Contributions welcome.
Available Tools
12 toolsfs_create_dirA
Create a directory (parents included). Idempotent.
For external agents this triggers a user-approval prompt.
Inputs: path (required). Returns: object
fs_create_fileA
Create a new file with the given UTF-8 content.
Refuses if the path already exists β use fs_overwrite (T2)
to replace an existing file.
For external agents this triggers a user-approval prompt.
Inputs: path (required), content. Returns: object
fs_deleteA
Delete file(s) β staged to Praxis's trash for 24h.
Files are moved to ~/.praxis/trash/ first, not hard-deleted.
The user can restore any staged entry within the retention
window.
For external agents this is blocked by default. A trusted-
agent policy may enable it with per-op approval. For the local
user (praxis:local) this triggers OS-native 2FA + a 10s
cool-off before the trash move happens.
Inputs: paths (required). Returns: object
fs_list_dirA
List entries directly under a directory.
Args:
path: The directory to list.
glob: Optional shell-style pattern, e.g. "*.pdf".
Empty = list everything.
Inputs: path (required), glob. Returns: object
fs_moveB
Move file(s) into a target directory. Destructive β T2.
Inputs: paths (required), target_dir (required). Returns: object
fs_overwriteA
Overwrite an existing file β backs the original up to trash first.
Unlike fs_write this replaces existing content but always
keeps a recoverable copy in ~/.praxis/trash/.
Inputs: path (required), content (required). Returns: object
fs_readA
Read a file's bytes as a UTF-8 string.
Refuses to touch credential stores (~/.ssh, ~/.aws,
keychains, .env) regardless of principal. Files larger than
max_bytes (or the executor's default cap) are truncated with
result.truncated == true.
Inputs: path (required), max_bytes. Returns: object
fs_renameA
Rename a file in place. new_name must be a basename.
Inputs: path (required), new_name (required). Returns: object
fs_searchA
Search the user's disk by filename (v1 filename fuzzy).
Returns a ranked list of file paths whose name matches the query.
Ranking blends fuzzy match, recency, and a directory prior β so
files in ~/Documents outrank equivalents in
~/Library/Caches.
Args:
query: The text the user is looking for. Case-insensitive.
Synonyms are auto-expanded (resume also matches cv,
passport matches id, etc.).
paths: Optional list of directories to search under. Empty
= search the user's home directory.
ext: Optional extension filter, e.g. "pdf".
limit: Max hits to return (default 10).
Returns:
result.hits is a list of {path, score, matched_query}
dicts sorted best-first.
Inputs: query (required), ext, limit, paths. Returns: object
fs_statA
Return metadata for a path β size, mtime, mode, is_dir, is_file.
Inputs: path (required). Returns: object
fs_writeA
Write UTF-8 bytes to a file.
Args:
path: Destination file.
content: The text to write.
if_exists: One of "error" (default β refuse), "append"
(add to end). Overwriting an existing file is a T2 op
β use fs_overwrite.
Inputs: path (required), content (required), if_exists. Returns: object
praxis_statusA
Report the daemon's current principal, trash size, and health.
Inputs: no named parameters. Returns: object
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogβ¦
TDQS
Scored across 12 tools
Tools are mostly distinct, but fs_create_file and fs_write with if_exists=error overlap in purpose (both create new files), and fs_rename vs fs_move both relocate files. Descriptions clarify differences, but a few tools could be confused in edge cases.
All file tools follow a consistent fs_verb pattern (fs_search, fs_read, fs_stat, fs_list_dir, etc.), with clear verb usage. praxis_status is a separate but logical outlier for daemon status, not a deviation from the file operation naming.
12 tools is a well-scoped size for a file system server, covering search, read, metadata, directory listing, creation, writing, renaming, deletion, moving, overwriting, and status. Each tool has a clear role without redundancy.
The tool set covers common file operations comprehensively, but lacks a copy operation (only move/rename are available). Also missing permission modification, though that may be intentionally out of scope. The trash/recovery mechanism is a nice extra.
Maintenance
Related MCP Connectors
Security gateway for AI agents: policy, approval, and audited execution, no secrets shared.
Governed access to sensitive data, secrets and APIs for AI agents. A signed proof for each decision.
Zero-trust gateway for AI agents: score tool calls, verify agent cards, enforce policy, audit.
Credential broker for AI agents: scoped, revocable API access with policy enforcement and audit.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceAn enforcement layer that validates AI agent actions against governance policies, including path permissions and content scanning, at runtime. It enables secure, role-based execution of file operations and commands with zero token overhead by processing policies independently from the agent's context.83 npm3MIT
- AlicenseAqualityCmaintenanceLocal zero-trust permission gateway for AI agents. Enforces policy-based tool authorization, human approvals, scoped permissions, and cryptographically verifiable audit logs.494 PyPI5Apache 2.0
- AlicenseNot gradedqualityDmaintenanceProvides a human-in-the-loop security layer for AI agents by intercepting file operations, explaining them with a local LLM, and enforcing a deterministic policy that requires user approval for risky actions.MIT
- FlicenseNot gradedqualityDmaintenanceEnables AI agents to safely read and write files in a sandboxed workspace via natural language, with on-demand connection, CVE-hardened path confinement, injection resistance, and full audit logging.-