Metadata-Version: 2.4
Name: nuramesh
Version: 0.1.0
Summary: NuraMesh is an open-core platform: the control plane for AI agents. Every action verified, approved where it matters, and always on the record.
Keywords: ai-agents,verification,governance,ledger,budgets,langgraph
Author: AI Collective Labs
Author-email: AI Collective Labs <opensource@nuramesh.com>
License-Expression: Apache-2.0
License-File: LICENSE
License-File: NOTICE
License-File: THIRD_PARTY_NOTICES.md
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: Operating System :: MacOS
Classifier: Operating System :: POSIX :: Linux
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Typing :: Typed
Requires-Dist: pydantic>=2.14.3,<3
Requires-Dist: cryptography>=50,<51 ; extra == 'anchors'
Requires-Dist: azure-identity>=1.27.0,<2 ; extra == 'azure'
Requires-Dist: httpx>=0.28,<1 ; extra == 'client'
Requires-Dist: cryptography>=50,<51 ; extra == 'content'
Requires-Dist: langgraph>=1.2.22,<2 ; extra == 'langgraph'
Requires-Dist: langchain-core>=1.8.0,<2 ; extra == 'langgraph'
Requires-Dist: langsmith>=0.14.17,<1 ; extra == 'langgraph'
Requires-Dist: pyyaml>=6.0.3,<7 ; extra == 'local'
Requires-Dist: fastapi>=0.162.7,<1 ; extra == 'local'
Requires-Dist: uvicorn[standard]>=0.54,<1 ; extra == 'local'
Requires-Dist: cryptography>=50,<51 ; extra == 'local'
Requires-Dist: opentelemetry-api==1.45.2 ; extra == 'otel'
Requires-Dist: opentelemetry-sdk==1.45.2 ; extra == 'otel'
Requires-Dist: opentelemetry-exporter-otlp-proto-http==1.45.2 ; extra == 'otel'
Requires-Dist: psycopg[binary]>=3.2,<4 ; extra == 'postgres'
Requires-Dist: fastapi>=0.162.7,<1 ; extra == 'server'
Requires-Dist: uvicorn[standard]>=0.54,<1 ; extra == 'server'
Requires-Dist: cryptography>=50,<51 ; extra == 'server'
Requires-Dist: temporalio==1.36.1 ; extra == 'temporal'
Requires-Dist: pyyaml>=6.0.3,<7 ; extra == 'yaml'
Requires-Python: >=3.12
Provides-Extra: anchors
Provides-Extra: azure
Provides-Extra: client
Provides-Extra: content
Provides-Extra: langgraph
Provides-Extra: local
Provides-Extra: otel
Provides-Extra: postgres
Provides-Extra: server
Provides-Extra: temporal
Provides-Extra: yaml
Description-Content-Type: text/markdown

<p align="center">
  <picture>
    <source media="(prefers-color-scheme: dark)" srcset="docs/assets/logo-dark.svg">
    <img src="docs/assets/logo-light.svg" alt="NuraMesh" width="320">
  </picture>
</p>

<h3 align="center">The Control Plane for AI Agents.</h3>

<p align="center">Every action verified, approved where it matters, and always on the record.</p>

<div align="center">

[![License: Apache 2.0](https://img.shields.io/badge/license-Apache--2.0-5BB8C8)](LICENSE)
[![CI](https://github.com/nuramesh/nuramesh/actions/workflows/ci.yml/badge.svg)](https://github.com/nuramesh/nuramesh/actions/workflows/ci.yml)
[![Python 3.12+](https://img.shields.io/badge/python-3.12%2B-5BB8C8)](pyproject.toml)
[![OpenSSF Scorecard](https://api.scorecard.dev/projects/github.com/nuramesh/nuramesh/badge)](SECURITY.md)
[![Discussions](https://img.shields.io/github/discussions/nuramesh/nuramesh)](https://github.com/nuramesh/nuramesh/discussions)

[Docs](#documentation) · [Quickstart](docs/quickstart.md) · [Examples](examples/) · [Discussions](https://github.com/nuramesh/nuramesh/discussions) · [Security](SECURITY.md)

</div>

NuraMesh is an open-core platform for agent teams whose work is verified. You define an organization of
agents as a graph. NuraMesh adds verification gates, evals per role, budgets with hard stops, a shared
canon from Git, an append-only ledger of every action, and default-deny autonomy policies. It builds on
existing frameworks (LangGraph first) and does not replace them. Status: pre-1.0, interfaces may change.

![NuraMesh architecture: the command line, API server, web app and SDKs drive the trust layer, which checks your LangGraph agent team with policies, budgets and gates and records every action in the audit ledger](docs/assets/architecture.svg)

![The NuraMesh web app: the Workflow builder with the Dev team template loaded (sample data)](docs/assets/app-builder.png)

*The web app's Workflow builder with the Dev team template loaded (a screenshot of the app on its
built-in sample data).*

## Why NuraMesh

Agent frameworks make it easy to get agents to act. They do not tell you whether the work is right, what
it cost, or who allowed it. NuraMesh is the trust layer around the framework you already use.

- **Verification gates.** A task is done only when its gates pass: rules, test commands, independent
  verifiers that never see the worker's reasoning, and people.
- **Evals per role.** Each role has eval suites, so you know what an agent in that role can do before
  you rely on it.
- **Hard budgets.** Spending is checked before a model call and recorded after it. A limit is a stop,
  never a warning.
- **Canon from Git.** The approved documents your agents follow are kept in Git, so every run says
  which version it used.
- **Append-only ledger.** Actions, model calls, costs, gate results and approvals go into a
  hash-chained audit ledger. Signed anchors let anyone check it offline.
- **Default-deny autonomy.** Each agent does a job (planner, developer, reviewer, tester). Its role in
  the team sets what it may do. Everything else asks a person.

## Quickstart

Four commands take you from nothing to a verified run on the built-in fake model (no keys, no cost).
You need Python 3.12 or newer. The first line installs NuraMesh and is not counted; run the four
commands after it in a throwaway folder.

```sh
pip install "nuramesh[local]"
nuramesh init my-team --template dev-team
nuramesh validate my-team/nuramesh.yaml
nuramesh try my-team --fake --approve-as human:you --allow-unsandboxed --run-id first-run
nuramesh ledger verify --team my-team
```

The `local` extra adds YAML team files and the API server; `pip install nuramesh` alone is the
library and the CLI only. Quotes are needed in zsh because of the square brackets. Install into a virtual environment so that
`python` is on your PATH: the sample team's test gate runs `python -m unittest`. The sample team fixes
a failing test in a tiny project, so the run executes that project's tests on your machine:
`--allow-unsandboxed` says you accept that. Use a throwaway folder. The `try` command prints its report:

```text
Run first-run
Tasks: 3 done
  [done] first-run-fix-add (developer, attempts 1): Fix the failing add() test in calc.py
      gate has-fix (rule): passed by gate:rule
      gate tests (test_command): passed by gate:test_command
      gate review (verifier): passed by agent:reviewer
  [done] first-run-test-suite (tester, attempts 1): Run the whole test suite on the fix
      gate green (rule): passed by gate:rule
  [done] first-run-deploy (devops, attempts 1): Deploy the fix to staging
      gate deploy-plan (rule): passed by gate:rule
      gate approve-deploy (human): passed by human:you
Budgets:
  developer-monthly (agent developer): spent 0.001335 of 5.00, reserved 0.000000
  devops-monthly (agent devops): spent 0 of 5.00, reserved 0
  rb-486e135495bd (run first-run): spent 0.003471 of 2.00, reserved 0.000000
  reviewer-monthly (agent reviewer): spent 0.002136 of 5.00, reserved 0.000000
Spend: $0.003471 (2 calls)
Ledger: run:first-run seq …, head f2d7755b0f573903… (verified)
```

Numbers in your run may differ: the ledger head and the sequence number change from run to run, so the
sequence number is shown as `…`. With no container runtime (Podman or Docker) installed, `try` also prints
a `SANDBOX OFF` notice and records that opt-out in the ledger; that is expected there, because
`--allow-unsandboxed` runs the sample project's tests on your machine without isolation.
`docs/quickstart.md` explains each step. The last command, `ledger verify`, checks the hash chains
again from the record alone and ends with `0 broken`.

### In Python

The same rules are a library. This example needs only the library (`pip install nuramesh`): a developer role may call
the fake model and nothing else, so the merge is denied by default.

```python
from nuramesh.core.models import FakeModel, Message, ModelRequest
from nuramesh.core.policy import Action, ActionKind, Policy, PolicyRule, evaluate

rule = PolicyRule(action=ActionKind.CALL_MODEL, target="fake/*", decision="allow")
dev = Policy(role="developer", rules=[rule])
for kind, target in [(ActionKind.CALL_MODEL, "fake/dev-1"), (ActionKind.MERGE, "main")]:
    v = evaluate(dev, Action(kind=kind, target=target))
    print(f"{kind.value} {target}: {v.decision.value} ({v.reason})")
ask = Message(role="user", content="Fix add() so it returns the sum.")
req = ModelRequest(provider="fake", model="dev-1", messages=[ask], max_output_tokens=200)
print(FakeModel(["def add(a, b): return a + b"]).complete(req).text)
```

Expected output:

```text
call_model fake/dev-1: allow (rule 0 says allow)
merge main: deny (default deny: no rule matches)
def add(a, b): return a + b
```

### From source

To run from a clone of this repository instead of the package (to work on NuraMesh itself, or to try
the main branch), you need Python 3.12 or newer and `uv`. With the package installed, the same commands
work without `uv run`, for example `nuramesh serve my-team`. In a clone:

1. Install from the lockfile, with the `local` extra (YAML team files and the API server; the plain
   install is the library only): `uv sync --locked --extra local`
2. Create a team folder: `uv run nuramesh init my-team`. Check it with
   `uv run nuramesh validate my-team/nuramesh.yaml` and run it on the built-in fake model (no keys,
   no cost) as `docs/quickstart.md` shows.
3. Start the API server for that team folder: `uv run nuramesh serve my-team`. Sign-in is on by
   default; the first start prints a one-time setup link to create the owner (`docs/first-run.md`).

Docker Compose self-hosting for a small team is coming soon: `docs/self-hosting.md` is a preview for
evaluation, not a supported install. To hear when it is ready, [request access](https://nuramesh.com/request-access).

The example teams under `examples/` run from a clone of the repository.

## Open core and Enterprise

This repository is the open core, licensed under the Apache License 2.0. It sends no telemetry and never
checks a licence over the network. NuraMesh Enterprise is a separate commercial product in development;
its code is not in this repository.

| Capability | Open core | Enterprise |
| --- | :---: | :---: |
| Verification gates, independent verifiers and evals per role | Yes | Yes |
| Budgets with hard stops, default-deny policies, canon from Git | Yes | Yes |
| Audit ledger, signed anchors and the offline ledger verifier | Yes | Yes |
| Command line, REST API, web app with the Workflow builder, Python and TypeScript SDKs | Yes | Yes |
| Team templates and governed real-model connections | Yes | Yes |
| Sign-in with the roles owner, approver and viewer (builder and admin exist in the permission table but cannot be assigned yet) | Yes | Yes |
| Single sign-on (OIDC, SAML) and SCIM user sync | – | Yes |
| Custom roles and scoped permissions | – | Yes |
| Streaming audit export and retention policy administration | – | Yes |
| Automatic model cost optimisation | – | Yes |

## Works with

Framework: LangGraph today; LangChain, OpenAI Agents SDK, Claude Agent SDK and CrewAI planned. Model providers: Anthropic, OpenAI, Azure OpenAI, Google Gemini, Mistral, Groq, Together AI, Ollama, vLLM, LM Studio and any OpenAI-compatible endpoint.

[nuramesh.com](https://nuramesh.com) · [Docs](https://docs.nuramesh.com) · [LinkedIn](https://www.linkedin.com/company/nuramesh) · [X](https://x.com/NuraMeshAI)

## Integrations

| Integration | Status |
| --- | --- |
| LangGraph | Available: `src/nuramesh/adapters/` and the example team under `examples/` |
| CrewAI | Coming soon |
| AutoGen | Coming soon |
| OpenAI Agents SDK | Coming soon |
| Claude Agent SDK | Coming soon |
| Model providers: Anthropic, Azure OpenAI, OpenAI-compatible endpoints, local servers such as Ollama | Available, through the approved model catalog (`docs/model-governance.md`) |
| OpenTelemetry export to your own collector | Available, off unless you set an endpoint (`docs/telemetry.md`) |

## Documentation

| To do this | Read |
| --- | --- |
| Run your first verified team | [`docs/quickstart.md`](docs/quickstart.md) |
| Start from a ready-made team | [Examples and templates](https://docs.nuramesh.com/get-started/templates/) on the docs site, and [`examples/`](examples/) |
| Create the first owner and sign in | [`docs/first-run.md`](docs/first-run.md) |
| Use the command line | [`docs/cli.md`](docs/cli.md) |
| Call the REST API | [`docs/api.md`](docs/api.md) |
| Configure with environment variables | [`docs/configuration-env.md`](docs/configuration-env.md) |
| Approve and connect real models | [`docs/model-governance.md`](docs/model-governance.md), or [model governance](https://docs.nuramesh.com/concepts/model-governance/) on the docs site |
| See what leaves your machine (nothing, unless you set an endpoint) | [`docs/telemetry.md`](docs/telemetry.md) |
| Preview the Docker Compose self-hosting setup (coming soon, not yet supported) | [`docs/self-hosting.md`](docs/self-hosting.md) |

How the code is laid out:

| Part | Where | What it does |
| --- | --- | --- |
| Core | [`src/nuramesh/core/`](src/nuramesh/core/) | The domain model: organization graph, tasks, gates, budgets, policies, ledger, money. Imports only the standard library and pydantic. |
| Engine | [`src/nuramesh/engine/`](src/nuramesh/engine/) | Runs a team: gates and verifiers, budgets, policy checks, canon, evals, anchors, sandbox. |
| Stores | [`src/nuramesh/stores/`](src/nuramesh/stores/) | Memory, SQLite and PostgreSQL behind one interface. |
| Adapters | [`src/nuramesh/adapters/`](src/nuramesh/adapters/) | Thin framework adapters. LangGraph is the first. |
| Server | [`src/nuramesh/server/`](src/nuramesh/server/) | The REST API. Sign-in is on by default. |
| Command line | [`src/nuramesh/cli.py`](src/nuramesh/cli.py) | The `nuramesh` command. |
| Web app | [`apps/app/`](apps/app/) | The web app with the Workflow builder and approvals. |
| TypeScript SDK | [`apps/sdk-ts/`](apps/sdk-ts/) | A typed client for the API. |
| Ledger verifier | [`verifier/`](verifier/) | One standard-library file that checks a ledger export against signed anchors, sharing no code with NuraMesh. |

## Community

- Questions and ideas: [Discussions](https://github.com/nuramesh/nuramesh/discussions). Bug reports: the
  issues of this repository. `SUPPORT.md` says what to include.
- Anything else about the open-source project: opensource@nuramesh.com.
- Everyone taking part follows `CODE_OF_CONDUCT.md`. How the project is run: `GOVERNANCE.md`.

## Contributing

Bug reports and discussion are welcome. Please open an issue before sending a pull request:
`CONTRIBUTING.md` has the setup and the checks to run.

## Security

Email security@nuramesh.com, as `SECURITY.md` describes. Do not open a public issue for a
vulnerability.

## Licence

Apache License 2.0: see `LICENSE` and `NOTICE`. Third-party notices: `THIRD_PARTY_NOTICES.md`. The
name and logo are covered by `TRADEMARKS.md`. What changed in each release: `CHANGELOG.md`.

---

<p align="center">
  NuraMesh is built by AI Collective Labs Inc. · <a href="https://nuramesh.com">nuramesh.com</a>
</p>
