Files
zeekayandHanzo Dev b55332704a feat: Hanzo Cloud SDK for Kotlin (generated from OpenAPI v8.0.0)
Coroutine-native client covering the full Hanzo /v1 cloud surface, for JVM and
Android. Generated with openapi-generator kotlin (library=jvm-okhttp4,
useCoroutines=true). Coordinate: ai.hanzo:sdk. Base URL: https://api.hanzo.ai.

Co-authored-by: Hanzo Dev <[email protected]>
2026-07-25 07:10:32 -07:00

2.1 KiB

Hanzo Kotlin SDK

Hanzo Cloud SDK for Kotlin — the full /v1 cloud surface (AI, agents, compute, data, network, security, platform, observe, web3, apps) as a coroutine-native client for the JVM and Android. Generated from the Hanzo OpenAPI spec, so it never drifts from the API.

Install

Gradle (Kotlin DSL):

dependencies {
    implementation("ai.hanzo:sdk:8.0.0")
}

Maven Central publication of ai.hanzo:sdk is in progress. Until it lands you can consume this repo directly via JitPack: add maven("https://jitpack.io") to your repositories and implementation("com.github.hanzo-kt:sdk:v8.0.0").

Quickstart

import ai.hanzo.sdk.apis.AgentsApi
import ai.hanzo.sdk.infrastructure.ApiClient
import kotlinx.coroutines.runBlocking

fun main() = runBlocking {
    // Base URL defaults to https://api.hanzo.ai. Authenticate with your Hanzo API key (Bearer).
    ApiClient.accessToken = System.getenv("HANZO_API_KEY")

    // Every service is an *Api class (AgentsApi, AiApi, NexusApi, ComputeApi, …), coroutine-native.
    val agents = AgentsApi().chatGetAgents()
    println(agents)
}

Every endpoint and model is documented under docs/ and in GENERATED.md (the generator's full API index).

Two SDK lines

  • Full Cloud SDK (this package) — the entire /v1 surface, generated from OpenAPI.
  • AI + agents — the hand-crafted flagship library; see the sibling-language SDKs.

Hanzo — the Open AI Cloud

Open source · every language · on-chain settlement. hanzo.ai · docs.hanzo.ai

SDKs in every language — Python (flagship) · TypeScript · Go · Rust · C++ · Swift · Kotlin · umbrella

License

Apache-2.0.