SDKs for every language
Two lines, not one. A full Cloud SDK generated from the OpenAPI document the API itself serves, so it is never behind the API — and a hand-written AI + Agents library for the work a generator cannot express. Real code lives in the per-language org; the umbrella hanzoai/sdk points at all of them.
Paste and ship
Paste this into any agent. It reads the skill manifest and calls SDKs from there.
Read https://hanzo.ai/skill.md and use Hanzo SDKs in my project.
Full Cloud SDK
Generated from one document and never edited by hand, so every route is reachable the day it ships — models, agents, data, compute, network, security, platform and chain. Method and class names are the document's operation ids, which is what makes a client checkable against a release instead of against somebody's memory. Real code lives in hanzo-<lang>/sdk.
AI + Agents
The hand-crafted flagship: models, agents, tools, memory, and MCP. Python hanzo is the most complete; Node ships @hanzo/ai. Distinct from the generated cloud SDK — this is the "we love this language" library.
Use the OpenAI SDK
POST /v1/chat/completions — identical request/response to OpenAI Chat Completions.
Point the official OpenAI SDK at the Hanzo gateway.
from openai import OpenAI
client = OpenAI(
base_url="https://api.hanzo.ai/v1",
api_key="hk-...", # your Hanzo API key
)
resp = client.chat.completions.create(
model="zen5", # any model on the gateway
messages=[{"role": "user", "content": "Hello!"}],
)
print(resp.choices[0].message.content)Use the Anthropic SDK
POST /v1/messages — the native Anthropic Messages API, x-api-key auth and content-block responses.
Point the official Anthropic SDK at the Hanzo gateway.
from anthropic import Anthropic
client = Anthropic(
base_url="https://api.hanzo.ai",
api_key="hk-...", # sent as the x-api-key header
)
msg = client.messages.create(
model="zen5",
max_tokens=1024,
messages=[{"role": "user", "content": "Hello!"}],
)
print(msg.content[0].text)Official Cloud SDKs
Use our official SDKs to integrate Cloud into your application
A home for every ecosystem
Each language has its own org holding the generated cloud SDK, an AI + agents library and the split-out packages. Every one of them ships the same six runnable examples — prove the key works, one completion, balance and usage, a store round-trip, create and run an agent, list the tools — so knowing one language's set is enough to navigate another's.
Python
FlagshipGAGo
GATypeScript
GARust
GASwift
GAKotlin
GAThe flagship AI library
Models, agents, tools, memory, and MCP — hand-crafted, not generated. Python leads; Rust and Node follow.
Python
GAFlagship — the most complete AI + agents library.
Node
GAModels, agents, tools, memory, and MCP for TypeScript.
Rust
GAThe AI + agents crate for Rust — crypto, DID, MCP, agents, embeddings, feature-gated.
Served at hanzo.ai
Each module has a page at its import path, with its source and its reference.
Start building with SDKs
One API key. One credit balance. Every primitive.