crewai-nti
Drop-in post-quantum security for CrewAI agents, powered by NTI (Neutral Trust Infrastructure).
Install
pip install crewai-nti
Usage
from crewai import Agent
from crewai_nti import NTIGuardrailMiddleware
guardrail = NTIGuardrailMiddleware(agent_id="finance_agent")
guardrail.grant_capability("execute_transfer")
agent = Agent(
role="Financial Analyst",
goal="Execute transfers",
backstory="...",
guardrail=guardrail,
)
What it enforces (all 5 pillars)
- Zero-Trust Capability Enforcement
- NIST Post-Quantum Cryptography (Dilithium5 / Kyber1024)
- BFT Multi-Agent Consensus
- Merkle-Chained Audit Trails
- P2P Agent Mesh & State Persistence
Architecture
graph TD
subgraph CrewAI["CrewAI Framework"]
AgentA["Agent A (Delegator)"]
Delegation["Task Delegation / Handoff"]
AgentB["Agent B (Delegatee)"]
TaskExec["Execute Task / Tool"]
end
subgraph NTISecurity["NTI Security Layer"]
MW_A["NTIGuardrailMiddleware (Agent A)"]
MW_B["NTIGuardrailMiddleware (Agent B)"]
HandoffVerify{"Verify Handoff Packet"}
TrustEngine["NTI Trust Engine / Policy"]
BlockAction["Block Action (PermissionError)"]
end
subgraph CryptoEngine["Crypto Engine (ube-foundation)"]
PqcKeyA["PqcKeyPair (Agent A)"]
PqcKeyB["PqcKeyPair (Agent B)"]
Dilithium["Dilithium5 (PQC Signature)"]
Kyber["Kyber1024 (KEM Handshake)"]
end
%% Flow: Agent A Initiates Task Delegation
AgentA -->|"1. Initiates Handoff"| MW_A
MW_A -->|"2. Requests PQC Signing"| PqcKeyA
PqcKeyA -->|"3. Dilithium5 Sign Canonical JSON"| Dilithium
Dilithium -->|"4. Returns Signed Packet"| MW_A
MW_A -->|"5. Emits Handoff Packet"| Delegation
%% Flow: Agent B Receives Task Handoff
Delegation -->|"6. Delivers Packet"| MW_B
MW_B -->|"7. Intercepts Handoff"| HandoffVerify
HandoffVerify -->|"8. Check Recipient & PQC Signature"| PqcKeyB
PqcKeyB -->|"9. Verify Dilithium5 Signature"| Dilithium
%% Verification Decisions
HandoffVerify -->|"Signature Valid & Authorized"| TrustEngine
TrustEngine -->|"Policy: Allow"| AgentB
AgentB -->|"Run Tool / Action"| TaskExec
HandoffVerify -.->|Tampered / Invalid Signature| BlockAction
TrustEngine -.->|Policy Denial / Unauthorized| BlockAction
License
Apache License 2.0. See LICENSE.
Links
Metadata
Release files for crewai-nti 0.1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| crewai_nti-0.1.3.tar.gz | 14.0 kB | With provenance | Details for crewai_nti-0.1.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| crewai_nti-0.1.3-py3-none-any.whl | Python 3 | none | any | Details for crewai_nti-0.1.3-py3-none-any.whl |
Total release size: 24.3 kB
Release files / crewai_nti-0.1.3.tar.gz
| Download URL | crewai_nti-0.1.3.tar.gz |
|---|---|
| Size | 14.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
94f1710d72d29adf897c669a7c8937ac8e9726ff1602bc6470a63a0307236932
|
|
BLAKE2b-256 checksum How to use checksums |
40cda1fbe9cbf2a1ce970e8c4dd5972c7c273f38bde2e2170f193f9d524e5d3d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 25, 2026.
Transparency logRelease files / crewai_nti-0.1.3-py3-none-any.whl
| Download URL | crewai_nti-0.1.3-py3-none-any.whl |
|---|---|
| Size | 10.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
79ba19b6abd55bf4a3f3f278a89ee1c1882965c5d6cb3430ab04065931105f29
|
|
BLAKE2b-256 checksum How to use checksums |
3acf5c2f897cea486f8842558a8aa8b3504719300f6dab354919bcb91fe154b4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 25, 2026.
Transparency logSecurity for crewai-nti 0.1.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for crewai_nti-0.1.3.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 25, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.