A security layer for AI coding agents.
See every file, command and web request your agent makes. Block the risky ones before they run.
Local · Open source · No account
One install. Every agent.
gryph install finds the agents on your machine and hooks each one.
gryph install --dry-runPreview first. Gryph backs up every config it changes.
See what it did.
Every read, write, command and web request, with sessions and line counts. Search it later.
$ gryph logs --live
ALLOW read src/cart.ts
ALLOW write src/cart.ts +12 -3
ALLOW exec npm test
ASK exec npm publish
BLOCK read ~/.aws/credentials
BLOCK exec git push origin main --force
ALLOW read src/checkout.ts
Files
Every read and write, with line counts and the session it came from.
Commands
Shell commands, before they run. A short rule stops the risky ones.
Web requests
Every host your agent talks to. Secrets never leave your machine.
Stop the risky move before it runs.
Write a short rule. Gryph blocks the action and tells your agent why.
Rules are off by default. Turn them on with gryph config set policy.enabled true.
version: "1"
rules:
- id: no-force-push
action: block
match:
action_types: [command_exec]
command_patterns: ['git push.* (-f|--force)']
message: Force push needs a human.
- id: ask-before-publish
action: escalate
match:
action_types: [command_exec]
command_patterns: ['npm publish.*']
message: Publishing needs my OK.> git push origin main --force
BLOCK Force push needs a human.
> git push origin fix-cart
Rules see the command. Gryph will see the task.
Every action passes five checks. Your rules and you can let it through. The others can only make Gryph stricter.
rules
Your YAML policy
session
What this session did so far
your task
Read from your prompt
soon
fit check
A small model on your laptop
soon
you
Approve or deny
Not in a release yet. Follow on GitHub to see it land.
Runs on your machine. Stays there.
No account, no cloud and no telemetry. You can remove it with one command.
Your data stays home
Events live in a SQLite file on your machine.
Secrets stay secret
Reads of .env, SSH and cloud keys are flagged. Contents are never saved.
Guards its own setup
With rules on, Gryph blocks agent tools from editing its files and hooks.
gryph uninstall --purge --restore-backupKeep YOLO mode. Keep control.
Install Gryph, then run one command to hook every agent.
curl -fsSL https://raw.githubusercontent.com/safedep/gryph/main/install.sh | shgryph installApache 2.0. Linux, macOS and Windows.