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
Stablenpm install @cause/sdk
Python
Stablepip install cause-sdk
Go
Betago get github.com/cause/sdk-go
Rust
Betacargo 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