This release is a pre-release and may not be stable for production use.
Charter
Build and manage production-ready agents that run on your own compute.
Pre-alpha, and in the open early. The design is settled enough to read and argue with. The code is not settled enough to run anything you care about. Expect the configuration format to change.
Charter provides the infrastructure for running AI agents in production. You define an agent and its policies in YAML. Charter runs it on your compute and governs it from a persistent control plane.
Why Charter
- Durable execution. A run parks for a human and resumes days later on another worker, with its state intact.
- Policy that acts. Set thresholds on the metrics an agent produces. One that crosses a threshold pauses, cools down, or rolls back to the version that worked.
- Declared authority. The model sees only the tools you list, gated tools require human approval, and budgets cap what a task may spend.
- Fleet operations. Every agent's operational state, run history, metrics and open decisions, from the CLI or the console.
- Your network, your data. Workers run in your environment, so agents reach internal services and databases directly. Model keys and prompts never reach the control plane, and the agent's conversation, files and traces stay in stores you run.
DESIGN.md documents every field.
Quickstart
pip install boundflow-charter # add [ui] for the console, [otel] for traces
pip install --pre boundflow-charter # or whatever main is, published every green build
A control plane
Charter needs one to run agents against. To run one locally:
docker compose -f deploy/local.compose.yml up -d --wait
docker compose -f deploy/local.compose.yml run --rm server -mode=provision -name=me
That prints an API key. With it:
export BOUNDFLOW_API_KEY=<the key it printed>
export BOUNDFLOW_SERVER_ADDRESS=http://localhost:50051
export BOUNDFLOW_WORKER_ADDRESS=http://localhost:50052
export CHARTER_STORE_URL=postgres://charter:charter@localhost:5434/charter
Remove it with docker compose -f deploy/local.compose.yml down -v.
For production you have two options. Run the BoundFlow backend yourself, following
its deployment docs.
Or use BoundFlow Cloud, which is managed and in early access
(request access): it gives you an API key and the two
addresses, and you export those instead of the local ones. The worker still runs
wherever you put it, so CHARTER_STORE_URL stays yours.
Either way the control plane never sees your model key or its traffic.
Your first agent
summarize/v1.yaml:
apiVersion: charter/v1
kind: AgentConfig
name: summarize
version: 1
model: claude-haiku-4-5
objective: |
Summarise this in two sentences: {{ inputs.text }}
inputs:
text: { type: string, required: true }
response_format:
summary:
type: string
description: The summary, in two sentences.
worker.yaml, beside it:
apiVersion: charter/v1
kind: Worker
control_plane:
endpoint: ${BOUNDFLOW_SERVER_ADDRESS}
worker_endpoint: ${BOUNDFLOW_WORKER_ADDRESS}
api_key: ${BOUNDFLOW_API_KEY}
tenant: default
llm:
provider: anthropic
api_key: ${ANTHROPIC_API_KEY}
store:
url: ${CHARTER_STORE_URL}
agents_dir: ./
serves:
- agent: summarize
versions: [1]
It calls no tools and sets no budget. Both are optional, and the sections below add them.
Run it
charter tenant create default # once per control plane
charter agent create summarize # prints an instance id
charter apply . # arm config and policy
charter worker . # leave this running, it is the process
Then, from another terminal:
charter run summarize --instance <id> --text "..."
charter status <task-id>
How it works
A tool the agent shouldn't call on its own gets one line:
mcp:
- name: stripe
url: https://mcp.stripe.com
env: [STRIPE_API_KEY]
tools:
- tool: get_charge
- tool: create_refund
approval: always
When the agent decides to call create_refund, Charter stops the task and shows a
human the call it wants to make and the reasoning behind it:
charter approve apr_01J8Z --reason "third dispute this month"
The refund runs after you approve it. The agent gets the result, finishes the task, and reports what it did.
Nothing waited in your terminal for that. charter apply compiles your
configuration into workflows and policy on the
BoundFlow control plane. A Charter worker
runs the agent in your environment and talks to your MCP servers with credentials
that stay there.
The agent loop itself is deepagents, so its tools, subagents, filesystem and skills work here unchanged. Charter makes that loop durable and governed: it checkpoints the run, turns the harness's interrupts into approvals a person can answer tomorrow, and holds it to the limits your config declares.
BoundFlow
Control Plane
state • policy • lifecycle
│
RPC
│
▼
Your environment
┌─────────────────────────┐
│ Charter worker │
│ │
│ model ↔ agent loop │
│ │ │
│ MCP tools │
└─────────────────────────┘
Charter adds no database or service of its own. Deployed agents keep running through their workers and the control plane whether or not the CLI is installed.
Documentation
- DESIGN.md: every field of every file, and the decisions behind them
- deploy/: running workers as containers, and a control plane locally
- examples/: fuller configurations, for reading. They name real Zendesk and Stripe servers, so they do not run as-is
- demo/leads/: an agent that runs end to end against a local MCP server, where you play the people it contacts
Development
python -m venv .venv
.venv/bin/pip install -e '.[dev,ui,otel]'
.venv/bin/pytest
boundflow comes from PyPI. Add --pre --upgrade boundflow to track its main,
which is what CI's second unit job does.
End-to-end tests need a control plane, and skip themselves without one. The compose file CI uses runs the published image:
docker compose -f deploy/local.compose.yml up -d --wait
key=$(docker compose -f deploy/local.compose.yml run --rm server \
-mode=provision -name=dev | awk '/^api_key/{print $NF}')
export BOUNDFLOW_API_KEY=$key
export BOUNDFLOW_SERVER_ADDRESS=http://localhost:50051
export BOUNDFLOW_WORKER_ADDRESS=http://localhost:50052
export CHARTER_STORE_URL=postgres://charter:charter@localhost:5434/charter
pytest tests/e2e
They use a real control plane, a real MCP subprocess and real governance gates. Only the model is faked, so the suite stays deterministic and free.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file boundflow_charter-0.3.0.dev0.tar.gz.
File metadata
- Download URL: boundflow_charter-0.3.0.dev0.tar.gz
- Upload date:
- Size: 161.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
857ed799e2460904872d4670f5b18f46042eb1ff23e77d47ec084a88c75e1f43
|
|
| MD5 |
655e0caaf56e227912fe25d8589581b3
|
|
| BLAKE2b-256 |
312090b0bb7a1e1bb9ba256b89f36eb7e794a47fbc9cda3dc478218bc2b045a0
|
Provenance
The following attestation bundles were made for boundflow_charter-0.3.0.dev0.tar.gz:
Publisher:
publish-dev.yml on boundflow/charter
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
boundflow_charter-0.3.0.dev0.tar.gz -
Subject digest:
857ed799e2460904872d4670f5b18f46042eb1ff23e77d47ec084a88c75e1f43 - Sigstore transparency entry: 2704804416
- Sigstore integration time:
-
Permalink:
boundflow/charter@11ff7454d9d352b481d4c3fd3956e97c693897c2 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/boundflow
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-dev.yml@11ff7454d9d352b481d4c3fd3956e97c693897c2 -
Trigger Event:
workflow_run
-
Statement type:
File details
Details for the file boundflow_charter-0.3.0.dev0-py3-none-any.whl.
File metadata
- Download URL: boundflow_charter-0.3.0.dev0-py3-none-any.whl
- Upload date:
- Size: 128.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
feeb2c8165b6ebed7b851d7cffecfd0b8517b85d7501be92c20ca4cdaef06e8c
|
|
| MD5 |
a9f2b1706532a8d580724817c298d43e
|
|
| BLAKE2b-256 |
775677d81458a3092b79e96820a379ae4d99946339c798759f69c2afa6437914
|
Provenance
The following attestation bundles were made for boundflow_charter-0.3.0.dev0-py3-none-any.whl:
Publisher:
publish-dev.yml on boundflow/charter
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
boundflow_charter-0.3.0.dev0-py3-none-any.whl -
Subject digest:
feeb2c8165b6ebed7b851d7cffecfd0b8517b85d7501be92c20ca4cdaef06e8c - Sigstore transparency entry: 2704804434
- Sigstore integration time:
-
Permalink:
boundflow/charter@11ff7454d9d352b481d4c3fd3956e97c693897c2 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/boundflow
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-dev.yml@11ff7454d9d352b481d4c3fd3956e97c693897c2 -
Trigger Event:
workflow_run
-
Statement type: