Skip to main content

Halyn — Enforceable safety for AI agents. Shield rules, audit chain, dashboard.

Project description

Halyn

AI agents act in the world. Halyn makes sure they can't break it.

PyPI Python

The safety layer for AI agents · Shield rules · Audit chain · Built-in dashboard

Website · Quick Start · Dashboard · Shield Rules


The Problem

AI agents are acting in the real world — deleting files, restarting servers, controlling robots. Claude has 22 MCP tools. GPT has computer use.

But who stops them from breaking things?

Today the answer is: the prompt says "be careful." That's like telling a car "don't crash" instead of installing brakes.

Halyn is the brakes.

Quick Start

pip install halyn
halyn-mcp --port 8935
# Open http://localhost:8935 → see the dashboard

30 seconds. Zero code. Working dashboard.

Dashboard

Built-in web UI. Type commands, see shields, watch the audit chain update in real-time.

Shield Rules

Constraints enforced at protocol level. The AI has no power to override them.

from halyn import ControlPlane, SSHDriver

cp = ControlPlane()
cp.connect(SSHDriver("192.168.1.10", "admin"))
cp.shield("deny * delete *")    # no deletions — ever

cp.act("restart nginx")   # ✓ allowed
cp.act("rm -rf /etc")     # ✗ blocked — always

Not guidelines. Physics.

Audit Chain

Every action recorded in SHA-256 hash chain. Tamper-evident, append-only.

12 Drivers

SSH, HTTP, WebSocket, Serial, MQTT, OPC-UA, ROS2, DDS, Docker, Browser, Unitree, Socket.

Built on NRP

Halyn implements NRP — 6 rules that no AI can break.


halyn.dev · nrprotocol.dev · PyPI · contact@halyn.dev

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

halyn-0.5.0.tar.gz (74.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

halyn-0.5.0-py3-none-any.whl (85.8 kB view details)

Uploaded Python 3

File details

Details for the file halyn-0.5.0.tar.gz.

File metadata

  • Download URL: halyn-0.5.0.tar.gz
  • Upload date:
  • Size: 74.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.12

File hashes

Hashes for halyn-0.5.0.tar.gz
Algorithm Hash digest
SHA256 b223b3f289ab49ceba610a4ccfb593025b843ca456c859a34ca25e4553003818
MD5 63240be2995854b6b51d4c42bdf81d6a
BLAKE2b-256 60b64bc5d42cfdf3f5607291ca5c581f022772f71fdf9bcf5992e811082a6f70

See more details on using hashes here.

File details

Details for the file halyn-0.5.0-py3-none-any.whl.

File metadata

  • Download URL: halyn-0.5.0-py3-none-any.whl
  • Upload date:
  • Size: 85.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.12

File hashes

Hashes for halyn-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ee90c72fd0dc28076028b67663e934e41acbf91ceaae84c0ba20f75cb564071a
MD5 603534947db88c2bcfc34217e1d8ce1d
BLAKE2b-256 03faf3eadc5f2479b245dbf281196523b931c81aae944c81317acd440a7b31a1

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page