Skip to main content

mnki (Python)

pip install mnki            # verify, delegate, attest — no dependencies
pip install "mnki[signing]" # Agent-Proof signing with a local key
from mnki import AgentTrustClient, AgentIdentity

c = AgentTrustClient("https://mnki.com", api_key="at_verify_…")
d = c.verify({"agent": "invoice-agent", "action": "refund.create", "amount": 420, "currency": "EUR"})
print(d["decision"], [e["title"] for e in d["evidence"]])

Local mode (no account) runs the same pipeline as the control plane, in-process, validated against the conformance vectors:

from mnki import Guard, Denied, demo_world
g = Guard(world=demo_world(), agent="invoice-agent", action_prefix="", mode="observe")   # observe → warn → require_approval → enforce

@g.wrap("refund.create")
def refund(customer_id: str, amount: float, currency: str = "EUR"): ...

Framework adapters (the framework is imported lazily, never required): mnki.adapters.openai_agents, .langchain, .crewai, .pydantic_ai — each exposes guard_tools(guard, tools); refusals come back to the model as {"error": "denied", "reasons": [...], "evidence": [...]} or raise with on_refused="throw". Extras: pip install "mnki[openai-agents]", [langchain], [crewai], [pydantic-ai], [httpx].

agent_trust remains importable as a deprecated alias for one minor version. Apache-2.0.

Release files for mnki 0.1.5

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

Source distribution (sdist)

Source distribution for mnki 0.1.5
File Size Uploaded
mnki-0.1.5.tar.gz 31.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for mnki 0.1.5
File Interpreter ABI Platform
mnki-0.1.5-py3-none-any.whl Python 3 none any Details

Total release size: 64.3 kB

Release files / mnki-0.1.5.tar.gz

Download URL mnki-0.1.5.tar.gz
Size 31.8 kB
Tags Source
SHA-256 checksum
How to use checksums
4d8ec5b84e6dd9480a7516137350203dae3c75ec60d7f0109075ec02bd98e374
BLAKE2b-256 checksum
How to use checksums
249b5b45d8502a910aae70d2d467ea87345d9a9fdefdcffa0a5c165793c1d1e1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Sep 17, 2026.

Transparency log

Release files / mnki-0.1.5-py3-none-any.whl

Download URL mnki-0.1.5-py3-none-any.whl
Size 32.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f1d91959d09205036907cabccc0a357470dc9e199becdfaa596091ac789bd27f
BLAKE2b-256 checksum
How to use checksums
9b2f8ad2453e0a157a13353e1f18d5bd9f1028455abb018c92015d69fe2621d4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Sep 17, 2026.

Transparency log

Release history Release notifications | RSS feed

0.3.0

2 release files

0.1.6

2 release files

This release

0.1.5 This release

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

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