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-1.0.0.tar.gz (71.4 kB view details)

Uploaded Source

Built Distribution

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

halyn-1.0.0-py3-none-any.whl (89.2 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for halyn-1.0.0.tar.gz
Algorithm Hash digest
SHA256 6376a9fd827b74fde018a0d4c32e9f2261d5729c43f870a1cf1fbab0337fd6b1
MD5 e05d9ad4af3423a1f422751ca925e643
BLAKE2b-256 e0bb20998993ded80c35f99a3306342eae88fd1e988cf2b26655ee064a651108

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for halyn-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d0d6cc5ccc12e589cece0bfd09b9e00168541b6d5bd4003ee71c8b88a14db204
MD5 89f432cb4c70d1f9c6ec0d8512f785de
BLAKE2b-256 1d0745ae51d3454ba1e8f8ff9274aa77b8e5aacbcff04bb115f7cdb5e3816ad5

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