How abisheakp197/openhands---nti works
openhands-nti is a drop-in NTI security wrapper for OpenHands. An agent’s tool call passes through the patched SDK entry point, where the guardrail resolves the required capability, proves delegation, canonicalizes and signs the action, and asks the NTI engine for authorization. Allowed calls execute and receive a signed receipt; failures are audited and blocked. The package also exposes receipt verification and configurable capability mappings. Edges reflect the README and shown guardrail calls; the underlying OpenHands and NTI engine implementations are external dependencies, not inspected repository code.
Main entry points: guardrail.py NTI guardrail · receipt.py Signed receipts · policy.py Capability mapping · delegation.py Merkle delegation proof
Components 12
OpenHands integration
- Tool call entry
- NTI guardrail
openhands_nti/guardrail.py - OpenHands tools
Action authorization
- Capability mapping
openhands_nti/policy.py - Merkle delegation proof
openhands_nti/delegation.py - NTI TrustEngine
Receipts and audit
- Signed receipts
openhands_nti/receipt.py - Audit trail
openhands_nti/audit.py - Receipt verification API
openhands_nti/receipt.py
Security primitives
- Action canonicalization
openhands_nti/canonical.py - Fail-closed errors
openhands_nti/errors.py
Other components
- OpenHands agent
Connections 13
- OpenHands agent → Tool call entry: calls tool
README.md - Tool call entry → NTI guardrail: dispatches through
README.md - NTI guardrail → Capability mapping: resolves capability
openhands_nti/guardrail.py - NTI guardrail → Merkle delegation proof: builds proof
openhands_nti/guardrail.py - NTI guardrail → Action canonicalization: canonicalizes action
openhands_nti/guardrail.py - NTI guardrail → NTI TrustEngine: evaluates signed request
openhands_nti/guardrail.py - NTI TrustEngine → NTI guardrail: returns verdict
README.md - NTI guardrail → Signed receipts: builds receipt
openhands_nti/guardrail.py - NTI guardrail → Audit trail: records decisions
openhands_nti/guardrail.py - NTI guardrail → OpenHands tools: executes if allowed
openhands_nti/guardrail.py - NTI guardrail → Fail-closed errors: blocks on failure
openhands_nti/guardrail.py - Receipt verification API → Signed receipts: verifies signature
openhands_nti/receipt.py - NTI guardrail → OpenHands agent: returns observation
README.md