SDK
Call a versioned model from your application and receive the result with its grounds. Start with the quickstart →
npm i @arxo/law
Technology · Executable knowledge infrastructure
Arxo turns laws, standards, textbooks and game rules into versioned, executable models. Your application supplies facts and a question. Through the SDK or MCP, it receives a result with the rules, source passages and edition behind it. One model can serve many applications.
Arxo executes the canon.
01 The answer
The answer is a document: the result, its status, the derivation from facts through rules to source passages, and the edition used. “The source is silent” and “this needs a person’s decision” are ordinary statuses with their own grounds.
status: TRUE result: 400 EUR grounds: Arts. 5(1)(c), 7(1)(b) edition: in force · 2005-02-17
Money and quantities are exact numbers with a declared scale; rounding happens only where the source names a rule. Nothing outside the facts and the model can move the answer: no clock, no environment, no random source.
0.1 + 0.2 = 0.3 7 / 3 → refused: no rounding rule
Ask on a date and the model applies the edition in force on that date. Keep the model version with its dependencies, the facts, the question and the date, and the run can be repeated; the hash of the canonical document confirms that the result is the same.
model: eu.transport.air_passenger_rights@0.1.0 facts: distance 2,300 km · notice 5 days date: 2026-03-01 document: sha256:1c9e…4b7a
Cross-checked. For the rules on vehicle damage assessment in Kazakhstan, a model written independently in Catala agreed with Arxo on all 305 test cases.
Two readings, one document. Nine votes in the UN Security Council, one permanent member abstaining: the text and later practice give different answers, and both are laid out with their grounds. Open the published result on Lens ↗
02 The model
A model is written once against its source and then shared by every application that needs it. When the source changes, the change arrives as a new version of one dependency.
Deploy changing rules without retraining your model. When a rule changes:
Verifiable training signals. For the same facts and edition, a canon computes the expected result with its grounds, so it can score a model’s answer as well as serve it.
Models formalize; two engines execute and prove. Authors work with the language guide, the editor extension (Marketplace · Open VSX) and the law CLI.
03 Getting in
Call a versioned model from your application and receive the result with its grounds. Start with the quickstart →
npm i @arxo/law
Let your AI agent query executable models and inspect the grounds of each answer. Connect an AI agent →
claude mcp add --transport http \ arxo https://mcp.arxo.io/mcp
Arxo generates standalone source modules that return an answer and its status, in 16 programming languages and as Excel workbooks. Build and run them with your own toolchain.
04 Beyond the answer
impactRun a set of cases against the current and the proposed version of a source and see which results change, and through which rules.
loopholeSearch the space of facts for combinations that reach a result the authors would not have wanted, with the derivation attached.
argueWhere a passage can be read two ways, both readings are laid out with the facts each needs, so the point of judgment is visible in advance.
Screening, procedures and plain-language explanations are described in the documentation →
Bring a rule, formula or requirement from a source you use. Start with one calculation or check, then choose how to connect it to your application.