Files
sdk/README.md
wbin90620 cc2c1b6769 The index lists the PHP SDK
The table named eight languages and not PHP, though hanzoai/php-sdk publishes
the Hanzo API client for PHP on Packagist as hanzoai/hanzoai (PHP 8.1+). A
reader looking for PHP concluded there was none (hanzoai/sdk#2).

README.md gains its row, the package name read from php-sdk's composer.json
and the install line its own README gives; no version, as the table keeps none.
LLM.md names composer.json as where the PHP row's name comes from.

Closes #2
2026-10-21 05:38:17 -04:00

2.6 KiB

sdk

Hanzo SDKs

The index for the Hanzo SDKs. Each language has its own repository and its own package; this is where you find the right one. Nothing ships from here.

Language Package Install Repository
Python hanzoai pip install hanzoai hanzoai/python-sdk
TypeScript hanzoai npm install hanzoai hanzoai/js-sdk
Go github.com/hanzoai/go-sdk go get github.com/hanzoai/go-sdk hanzo-go/sdk
Rust hanzo-client cargo add hanzo-client hanzo-rs/sdk
PHP hanzoai/hanzoai composer require hanzoai/hanzoai hanzoai/php-sdk
Java ai.hanzo:hanzo-java-cloud Gradle or Maven hanzoai/java-sdk
Kotlin ai.hanzo:hanzo-kotlin-cloud Gradle or Maven hanzo-kotlin/sdk
Swift Hanzo SwiftPM, from tag v8.0.0 hanzo-swift/sdk
C++ hanzo::hanzo CMake FetchContent, tag v8.0.0 hanzo-cpp/sdk

Three things that do not fit in a cell:

  • The Go module path stays github.com/hanzoai/go-sdk while the repository sits at hanzo-go/sdk. Go resolves the module path, not the repository URL, so use the line above.
  • Java and Kotlin are not on Maven Central yet, and C++ and Swift have no registry to be on. All four resolve from their repositories, and each README carries the coordinate to copy.
  • The Rust repository is not public. The crate is: docs.rs/hanzo-client.

The parts every SDK shares

They all talk to /v1 at api.hanzo.ai and they all read HANZO_API_KEY. Get a key from hanzo.ai:

export HANZO_API_KEY=sk-...

Model ids come from the gateway, which is the only authority on the catalog — curl https://catalog.hanzo.ai/v1/models. Start from zen5, zen5-coder, enso.

If you want a terminal rather than a library, install the CLI (hanzoai/cli):

curl -fsSL https://hanzo.sh | sh
hanzo auth login

Docs

License

MIT — see LICENSE.