Documentation
BlackLake is AI Control Infrastructure and Analytics. One npm package contains the Surface and Depth SDKs, the CLI, the workflow runtime, and blx. Use it locally, integrate it into your systems, or route agents and automation through the hosted control plane.
New
Unified `blacklake` npm package — five old artifacts collapse into one. Migration from old packages walks the search-and-replace.
Install
Quick start
Start here →Sign up at console.blacklake.systems for shared controls, or run `npx blacklake serve` for a private first run on your machine. Same policy, cost, and receipt model.
Product contract
The canonical definition of BlackLake, Surface, Depth, the `blacklake` package, and the cloud control plane. Read this once and the four-question test answers itself.
Cloud vs self-hosted
One-minute decision guide: start with cloud for fastest time to value and shared team controls, or self-host when an air-gap or procurement constraint requires it.
Migration from old packages
Search-and-replace examples for moving from `@blacklake-systems/surface-cli`, `surface-sdk`, `depth-cli`, `depth-sdk`, and the standalone `blx` to the unified `blacklake` npm package.
Capture
MCP gateway
Govern Claude Code, Codex, Cursor, and other MCP clients through BlackLake. The five-minute capture path for coding tools.
SDK govern()
Wrap your code's LLM and tool calls with `govern()` — the right path for backend services and custom AI Actors.
blx shell
`blx git push`, `blx terraform apply`, `blx gcloud run deploy`. Classify, govern, run, record. The shell-side capture path.
Govern
Cost
Reference
Concepts
AI Actors, tools, policies, evaluations, cost governance, budgets, v1+v2 receipts, baselines + anomalies — the model behind BlackLake.
SDK reference (TypeScript)
Every method on the unified `blacklake` package — govern(), cost, budgets, decisions, agents, tools, bindings, policies, approvals.
API reference
Every HTTP endpoint with curl examples and error codes.