Guides

One task per page, each written four ways: a CLI command, an SDK call, an HTTP request and an MCP tool.

One key authenticates every request. sk- keys resolve to a user and belong on a server; pk- keys resolve only to an organisation and are safe in a browser.

export HANZO_API_KEY=sk-...     # console.hanzo.ai
hanzo auth login                # or sign in through Hanzo IAM

Four surfaces, one contract

The CLI, the SDKs, the HTTP API and the MCP tools are generated from the same OpenAPI document. A command, a method, a path and a tool that do the same thing are the same operation under four names, so what you learn on one surface holds on the others.

SurfaceAddress
CLIhanzo <capability> <verb>
SDKa method per operation, in your language
HTTPhttps://api.hanzo.ai/v1/<capability>
MCPone tool per capability, dispatched by operation

Tasks

Each page below does one thing, and does it on all four surfaces.

Cookbook

Zen, Enso and Kai in one loop — route a request, triage with typed answers, gate an agent's command, drive an agent from programs: the cookbook.

Every capability the API serves is in the reference, and the same key reaches all of it.

Was this page useful?
Last updated Oct 5, 2026