Charter

docs.r28.ai

Open-source Python library that enforces, field by field, what an AI agent can send to customer-account APIs and generates a reviewable access map.

Pricing
Open source
Published
Oct 31, 2026

Next steps

What it does

Charter, from r28.ai, is an open-source (Apache 2.0) Python library for AI agents that act in customers' accounts through APIs. Each tool is a Pydantic model that mirrors the API field by field with your rules on top, and every call is validated before it is sent. Fields marked FromContext() are filled by your application per call (for example the customer ID), so the model cannot change whose account a call is for; a model talked into requesting another customer's order is refused before anything leaves your process. The same declarations produce an egress map listing which fields are visible to the model and which are withheld, which you can commit so changes to agent access show up as diffs in code review and can be shared with a customer's security team. It works with any public or private HTTP API, runs in-process with no proxy, per-call pricing or telemetry, and depends only on pydantic and httpx. Install with pip install charter-ai (Python 3.10+).

Charter · Image from the official website
Image from the official website

Use cases

  • Stop a support agent from reading or changing another customer's data
  • Show a customer's security team exactly which API fields an agent can reach
  • Review changes to agent permissions as code diffs

Frequently asked questions

Is Charter a hosted service?
No. It is a library that runs in your process, with no proxy, per-call pricing or telemetry.
Which APIs does it work with?
Any public or private HTTP API.
How do I install it?
pip install charter-ai (Python 3.10+).
Log in to join the discussion