Client SDK

Drop cause into any codebase

Idiomatic, fully-typed clients to extract paths, run differential analysis, and generate verification — straight from your tools.

TypeScript

Stable
npm install @cause/sdk

Python

Stable
pip install cause-sdk

Go

Beta
go get github.com/cause/sdk-go

Rust

Beta
cargo add cause-sdk
example.ts
import { Cause } from "@cause/sdk";

const cause = new Cause({ apiKey: process.env.CAUSE_KEY });

const report = await cause.diagnose({
  diff: "HEAD~1..HEAD",
  logs: await fs.readFile("app.log", "utf8"),
});

console.log(report.hypotheses); // ranked likely causes
console.log(report.nextChecks); // minimal repros to run