Hanzo ZT

SDKs

Hanzo ZT SDK documentation for Rust, Go, TypeScript, Python, C++, and C. Consistent zero-trust networking across six languages.

SDK Reference

Hanzo ZT provides SDKs for six programming languages. All follow the same pattern: resolve Hanzo IAM credentials, authenticate with the ZT controller, check billing, and dial or bind services through the ZT fabric.

Implementation Status

LanguagePackageRepositoryTestsStatus
Rusthanzo-zthanzoai/dev9 passProduction
Gogithub.com/hanzozt/sdk-golanghanzozt/sdk-golang5 passProduction
TypeScript@hanzo/zthanzozt/zt-sdk-nodejsCompleteProduction
Pythonhanzo-zthanzozt/zt-sdk-py11 passProduction
C++hanzo-zt (CMake)hanzozt/zt-sdk-cppBuilds cleanBeta
Clibzt_zaphanzozt/zt-sdk-cSyntax passBeta

SDK Documentation

Common API Surface

All SDKs expose the same core abstractions:

ConceptDescription
ContextMain entry point. Manages auth, service discovery, and connections.
Config / ConfigBuilderConfiguration with controller URL, credentials, billing toggle, timeouts.
CredentialsTrait/interface for auth. Implementations: HanzoJwtCredentials, ApiKeyCredentials.
ConnectionBidirectional data channel through the ZT fabric. Supports send/recv.
ListenerAccepts incoming connections on a bound service.
BillingGuardChecks balance before dial, records usage after session.
TransportZAP transport implementation with zt:// URL scheme.

Choosing an SDK

  • Rust: Best for performance-critical applications, CLI tools, and when you need the full ZAP transport integration. The Rust SDK is the reference implementation.
  • Go: Best for backend services and microservices that need zero-trust networking with minimal dependencies.
  • TypeScript: Best for Node.js services, serverless functions, and full-stack applications.
  • Python: Best for ML pipelines, data processing, and scripting where async I/O is needed.
  • C++: Best for native applications that need RAII resource management and Cap'n Proto integration.
  • C: Best for embedding in existing C codebases or systems with minimal runtime requirements.

Next Steps

Pick your language and dive in:

On this page