Skip to content
@cendorhq

CENDOR

Production plumbing for LLM apps: composable libraries + a governed agent SDK for cost, context, testing & governance. Python & TypeScript · Apache-2.0.

Cendor

Production plumbing for LLM applications.
Governance, cost, context, and testing for the layer beneath your agent — framework-agnostic, local-first, Apache-2.0.

cendor.ai · Docs · Cookbook

all Cendor · PyPI downloads all Cendor · npm downloads


Cendor is two doors into one stack, sharing the flat cendor.* (PyPI) / @cendor/* (npm) import namespace — start with the libraries beneath your framework, or start governed with the SDK. Available in Python and TypeScript.

🧩 The libraries — cendor-libs · cendor-libs-js

Seven small, composable libraries that plug in beneath LangChain, LlamaIndex, or any SDK: assemble context to a budget (contextkit), compress reversibly (squeeze), cap and attribute spend pre-flight (tokenguard), gate unsafe input or output — block/redact/flag — with a deterministic check (guardrails), record/replay whole runs offline (cassette), and keep a tamper-evident audit trail (acttrace) — all on a tiny shared core. Wrap your client once with instrument(); every tool subscribes to one event bus, none patches your client, none imports another.

pip install cendor-libs          # Python — the whole stack (or `pip install cendor-tokenguard` for one piece)
npm i @cendor/libs               # TypeScript — ESM-only, local-first

🤖 The agent SDK — cendor-sdk · cendor-sdk-js

A governed, provider-agnostic agent SDK where budgets, tamper-evident audit, PII redaction, and record/replay testing are the foundation, not plugins. Ten provider paths, tools, handoff, sessions, and structured outputs — a governed agent in ~10 lines. Built on the libraries above, so you can always drop down to them with no concept rewrite.

pip install "cendor-sdk[openai,anthropic]"    # Python
npm i @cendor/sdk                             # TypeScript

🛠️ Optional dev tooling

Neither is required, and no library depends on either — the stack needs no server.

  • cendor-mcp — a read-only MCP docs server that hands AI coding assistants Cendor's correct call-shapes instead of a plausible guess. Run it locally (npx @cendor/mcp / uvx cendor-mcp) or point your assistant at mcp.cendor.ai. About →

  • Cendor Monitor — an optional, self-hosted OpenTelemetry container that shows the whole journey of a governed run, with the governance verdicts inline. One docker run, nothing leaves your infrastructure. Cendor never operates a telemetry endpoint; your own backend (Azure Monitor, CloudWatch, Datadog, any OTLP endpoint) stays the documented default.

  • cendor-cookbook — copy-paste recipes that every one of them runs offline, with no API key: provider-shaped fake clients and committed cassettes, so git clone → run works on a plane. Browse →

npx @cendor/init      # make an existing repo Cendor-ready (offline; writes assistant rules, scaffolds instrument())
uvx cendor-init       # the Python twin

cendor-libs · cendor-sdk · cendor-libs-js · cendor-sdk-js · cendor-mcp · cendor-cookbook · cendor.ai

Apache-2.0 · local-first · offline by default. acttrace produces evidence to support compliance — not a guarantee, and not legal advice.

Popular repositories Loading

  1. cendor-sdk cendor-sdk Public

    Governed, provider-agnostic Python agent SDK: cost budgets, tamper-evident audit, and PII redaction built in.

    Python 1

  2. cendor-libs cendor-libs Public

    Production plumbing for LLM apps: context, cost, testing & governance — composable, framework-agnostic Python libraries.

    Python

  3. cendor-cookbook cendor-cookbook Public

    Copy-paste, run-offline recipes for the Cendor LLM plumbing libraries — cost, context, testing, governance (Py + TS).

    Python

  4. cendor-libs-js cendor-libs-js Public

    Production plumbing for LLM apps in TypeScript: context, cost, testing & governance primitives. Python-interoperable.

    TypeScript

  5. cendor-sdk-js cendor-sdk-js Public

    A governed agent SDK for TypeScript - cost budgets, tamper-evident audit, and PII redaction built into the loop.

    TypeScript

  6. cendor-mcp cendor-mcp Public

    Read-only MCP docs server for Cendor — hands AI coding assistants correct call-shapes (npx @cendor/mcp / uvx cendor-mcp / mcp.cendor.ai). Built from sibling docs.

    TypeScript

Repositories

Showing 8 of 8 repositories

Top languages

Loading…

Most used topics

Loading…