Skip to main content

NTI Verified

crewai-nti

License

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)

  1. Zero-Trust Capability Enforcement
  2. NIST Post-Quantum Cryptography (Dilithium5 / Kyber1024)
  3. BFT Multi-Agent Consensus
  4. Merkle-Chained Audit Trails
  5. 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.

Metadata

Release files for crewai-nti 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for crewai-nti 0.1.1
File Size Uploaded Provenance Actions
crewai_nti-0.1.1.tar.gz 13.3 kB With provenance Details for crewai_nti-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for crewai-nti 0.1.1
File Interpreter ABI Platform Actions
crewai_nti-0.1.1-py3-none-any.whl Python 3 none any Details for crewai_nti-0.1.1-py3-none-any.whl

Total release size: 23.6 kB

Release files / crewai_nti-0.1.1.tar.gz

Download URL crewai_nti-0.1.1.tar.gz
Size 13.3 kB
Tags Source
SHA-256 checksum
How to use checksums
d47c0c826fa9d00fe938bca3e4accab522bcc592ba4418f25e346d189d93c521
BLAKE2b-256 checksum
How to use checksums
1ec33684d695984fbc5b52806013b191f0b81c825b3c82013456ab85dcfa66c8
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 24, 2026.

Transparency log

Release files / crewai_nti-0.1.1-py3-none-any.whl

Download URL crewai_nti-0.1.1-py3-none-any.whl
Size 10.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9ca3179e5e7526fedac5b2f4e6f9242e558a1a8e65c931d0e9710f398cd5fdfe
BLAKE2b-256 checksum
How to use checksums
36e7b6a6a2c30817aca7e7d2ea15e48bddbd4bb2445f15147603457db8219d27
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 24, 2026.

Transparency log

Security for crewai-nti 0.1.1

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.

Select from 2 files

Attestation for crewai_nti-0.1.1.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 24, 2026.

Transparency log

A 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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page