Skip to main content

AI governance layer. Local-first. Open source. Three layers: hard constraints, gradient decisions, self-audit.

Project description

Charter

VS Code Extension PyPI License Discord

AI governance layer. Local-first. Open source.

Three layers: hard constraints, gradient decisions, self-audit. Works with Claude, GPT, Copilot, Gemini, and any MCP-compatible AI.

Every AI agent writing code in your project right now has zero rules. No audit trail. No compliance. No kill switch. Charter fixes this in 3 seconds.

Install

VS Code Extension (recommended — zero config)

Search "Charter" in VS Code Extensions, or click here to install.

Open a folder. Governance is automatic.

CLI

pip install charter-governance

Quick Start

charter init                    # Create governance config + identity
charter generate                # Generate a CLAUDE.md with your rules
charter generate --format system-prompt  # Or a system prompt for any AI
charter audit                   # Run a governance audit
charter status                  # See everything at a glance
charter join <token>            # Join a governed team with one command

What It Does

Charter creates a governance framework for your AI. You define the rules. The AI follows them. The system audits itself.

Layer A: Hard Constraints. Things your AI must never do. No exceptions.

Layer B: Gradient Decisions. Actions that require human judgment above certain thresholds.

Layer C: Self-Audit. The system reviews what it did and reports honestly.

Domain Templates

Charter ships with governance presets for:

  • Healthcare (HIPAA-aware, clinical safety)
  • Finance (compliance-focused, transaction controls)
  • Education (FERPA-aware, student protection)
  • General (universal governance baseline)

Identity

Charter creates a pseudonymous identity backed by a hash chain. Every action is signed and recorded. When you're ready, link your real identity and all prior work transfers to you. The chain is the proof.

charter identity              # View your identity
charter identity verify       # Link real identity (authorship transfer)
charter identity proof        # Generate a signed transfer proof

Teams

Create governed teams with cryptographic identity. No sign-up page. No onboarding funnel. One command.

charter team create "My Team"                          # Create a team
charter team invite user@example.com --name "Alice"    # Generate an invite token
charter team status                                    # View your teams
charter team list <team_hash>                          # List team members

Joining a Team

Got an invite token? One command to create your identity, join the team chain, and scaffold a network node:

charter join <token>

That's it. No account creation. No OAuth. No email verification. The token contains everything: team hash, your role, and a cryptographic signature from the person who invited you.

If you already have an identity, it reuses it. If you're already a member, it tells you. Fully idempotent.

Contexts

Separate work and personal knowledge with governed boundaries.

charter context create personal
charter context create work --type work --org "Your Org" --email you@org.com
charter context bridge personal --target work --policy read-only
charter context approve <bridge_id>     # Both parties must consent
charter context revoke <bridge_id>      # Either party can revoke

Knowledge does not flow between contexts by default. Bridging requires explicit consent from both sides.

Identity Verification

Upgrade your pseudonymous identity with government ID verification via Persona or ID.me.

charter verify configure persona    # Set up Persona API credentials
charter verify start                # Open browser for ID verification
charter verify check <inquiry_id>   # Check verification status
charter verify status               # See configured providers

Free tier: 500 verifications per month via Persona. No credit card required.

Network

Connect to the network. Register your expertise. Record contributions.

charter connect init                          # Create your node
charter connect source "My Data" shopify      # Register data sources
charter connect contribute "Title" governance # Record contributions
charter connect formation "Name"              # Recognize who shaped you

MCP Server

Charter runs as an MCP (Model Context Protocol) server. Any AI model that supports MCP gets Charter governance.

pip install charter-governance[mcp]

# Local (Claude Code via .mcp.json)
charter mcp-serve --transport stdio

# Remote (Mac Mini, Grok via remote MCP)
charter mcp-serve --transport sse --port 8375

10 tools exposed: charter_status, charter_stamp, charter_verify_stamp, charter_append_chain, charter_read_chain, charter_check_integrity, charter_get_config, charter_identity, charter_audit, charter_local_inference.

Every action logged to an immutable hash chain. Same governance, any model.

The Network

By installing Charter, you join a network of people who believe AI should be governed by the humans who use it. Every governed project strengthens the standard. Every audit builds accountability.

Philosophy

The value of AI is not in the tokens. Tokens are going to zero. The value is in the humans who provide judgment, context, and ethics. Charter is the governance layer that makes human judgment enforceable on AI systems.

Open source because we don't need more rent seekers. We need human creativity to thrive while being accountable for what it creates.

License

Apache 2.0 — GermPharm LLC — 2026

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

charter_governance-2.1.0.tar.gz (100.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

charter_governance-2.1.0-py3-none-any.whl (102.5 kB view details)

Uploaded Python 3

File details

Details for the file charter_governance-2.1.0.tar.gz.

File metadata

  • Download URL: charter_governance-2.1.0.tar.gz
  • Upload date:
  • Size: 100.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.0

File hashes

Hashes for charter_governance-2.1.0.tar.gz
Algorithm Hash digest
SHA256 265792c37b0bbfb13bef3b6af860ff42c5025e7f3d9246d5468648391d0eff1e
MD5 07ff2c4a642e5511b0a44dc7b08758cb
BLAKE2b-256 dcf4b435f60c60e153f4ecae59ec9b667c47eab7156421207f8291914ecc35be

See more details on using hashes here.

File details

Details for the file charter_governance-2.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for charter_governance-2.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1eea2a3d59e62a1886222156b87bd73e556ca24e23ebe32d1415b201a05dabae
MD5 72f45ad2f740dd99c011a43ea0ee8e5b
BLAKE2b-256 210b460a895892a9b9e1c0944445ca66d1e6b949944a88a8e69ebacaf1e5569a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page