Skip to content

Tenor is a formal contract language for declaring provably correct business logic. You write a single .tenor file that specifies every entity, authority boundary, rule, and workflow in a domain. The evaluator computes deterministic verdicts and action spaces from that specification, and static analysis proves properties of your contracts before they ever run.

This documentation covers the open-source language and toolchain.

Documentation Sections ​

Getting Started ​

Install the CLI, write your first contract, and run the evaluator.

Language Reference ​

Complete reference for every construct in the Tenor language.

Guides ​

Conceptual guides, tutorials, and deep dives.

SDKs ​

Client libraries for integrating Tenor into application code.

  • Overview -- SDK design principles and common patterns
  • TypeScript -- @tenor/sdk for Node.js and browser
  • Python -- tenor-sdk for Python applications
  • Go -- tenor-go for Go services

CLI Reference ​

All 26 commands in the tenor CLI with flags, options, and example output.

Reference ​

Configuration, error codes, static analysis checks, and executor obligations.

Domain Contracts ​

Six validated domain contracts demonstrating Tenor in production scenarios.

Specification ​

The full formal Tenor language specification.

Where to Start ​

New to Tenor? Begin with Getting Started. Install the CLI, write a contract, and see evaluation in action within minutes.

Writing contracts? Read the Author Guide for practical patterns, then use the Language Reference as you write.

Integrating with code? The SDK Overview covers client libraries for TypeScript, Python, and Go. Pick your language and start calling the evaluator from application code.

Open Source ​

The Tenor language, evaluator, CLI, and static analysis tools are open source. You can write contracts, evaluate them, and run static analysis entirely locally.