Skip to main content

agent-tessera

Default-deny permissions and a tamper-evident audit log for AI agents, whatever LLM they call.

Write what an agent may do in a short YAML file. Agent Tessera checks every model call, tool call, and agent-to-agent call against it, in your process, with no network round trip, and writes each decision to a hash-chained audit log you can verify.

pip install agent-tessera

Python 3.11 or newer. No server and no API key needed.

Quickstart

Save a policy as policy.yaml. Anything it does not allow is denied:

apiVersion: tessera/v1
kind: AgentPolicy
metadata:
  agent: demo
spec:
  tools:
    allow: ["files.read"]

Save an agent as agent.py:

from pathlib import Path

from agent_tessera import Denied, Tessera

tessera = Tessera("demo", policy="policy.yaml")


@tessera.tool("files.read")
def read_file(path: str) -> str:
    return Path(path).read_text(encoding="utf-8")


@tessera.tool("shell.run")
def run_shell(command: str) -> str:
    raise RuntimeError("never reached")


with tessera.task():
    print(read_file("policy.yaml").splitlines()[0])
    try:
        run_shell("rm -rf /")
    except Denied as err:
        print("blocked:", err)

tessera.close()

Run it and verify the audit log:

python agent.py
tessera audit verify .tessera/audit.jsonl
apiVersion: tessera/v1
blocked: deny tool 'shell.run': not_granted
OK: 5 events

The denied function never ran. Edit any event in .tessera/audit.jsonl and verification fails.

To govern an LLM client instead of a function, wrap it:

from openai import OpenAI

client = tessera.wrap(OpenAI())  # needs: pip install "agent-tessera[openai]"

Extras

The base install depends on httpx, pydantic, pyjwt, and pyyaml only. Provider and framework support are extras: openai, anthropic, bedrock, gemini, litellm, otel, langchain, mcp, openai-agents, and crewai. For example:

pip install "agent-tessera[anthropic,otel]"

The tessera command

tessera policy validate and tessera policy check load a policy and evaluate one action. tessera audit verify checks an audit log. With the control plane (pip install agent-tessera-server), tessera server dev starts a local server and web console.

What it does not do

It enforces policy on the calls you route through it, inside your process. It does not sandbox the process or defend against hostile code running in it. Read the threat model before relying on it.

Apache 2.0.

Metadata

Release files for agent-tessera 0.8.0

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

Source distribution (sdist)

Source distribution for agent-tessera 0.8.0
File Size Uploaded Provenance Actions
agent_tessera-0.8.0.tar.gz 201.7 kB With provenance Details for agent_tessera-0.8.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for agent-tessera 0.8.0
File Interpreter ABI Platform Actions
agent_tessera-0.8.0-py3-none-any.whl Python 3 none any Details for agent_tessera-0.8.0-py3-none-any.whl

Total release size: 368.9 kB

Release files / agent_tessera-0.8.0.tar.gz

Download URL agent_tessera-0.8.0.tar.gz
Size 201.7 kB
Tags Source
SHA-256 checksum
How to use checksums
03c1ad20f0c6c8f7bd233d730ac43151f9c44c4bb453aadffdd5bdeeb059ae7d
BLAKE2b-256 checksum
How to use checksums
edfec4bdfad91a17e0ca57fe2f68e65c6e4df4a03095dfbde2a2af84d5dc948c
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 26, 2026.

Transparency log

Release files / agent_tessera-0.8.0-py3-none-any.whl

Download URL agent_tessera-0.8.0-py3-none-any.whl
Size 167.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
628325f5661e8d9185d5249562bd53ae169f56e6dc6a90ebd9380e311cf415a3
BLAKE2b-256 checksum
How to use checksums
f6b24a63586abfc25c6862180c9f30950faad9b2a8991e9676d847d511c0a429
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 26, 2026.

Transparency log

Security for agent-tessera 0.8.0

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 agent_tessera-0.8.0.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 26, 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.

Release history Release notifications | RSS feed

This release

0.8.0 This release

2 release files Full provenance

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