Boot Local OSS Cloud & Warm k3s (hanzo up)

Run the complete self-hosted Hanzo OSS Cloud, warm k3s substrate, hanzod controller, and multi-project workloads locally with hanzo start and hanzo up.

Run the exact same Hanzo OSS Cloud (ghcr.io/hanzoai/cloud-oss:main) that powers api.hanzo.ai and platform.hanzo.ai directly on your laptop, workstation, or private bare-metal server — backed by a warm local k3s Kubernetes substrate and the hanzod runtime controller.

Three-Layer Lifecycle Architecture

Hanzo separates infrastructure substrate, platform & project workloads, and active coding loops into three clean CLI layers so stopping one project never tears down your cluster or sister apps:

LayerCommandsScope & Lifecycle
1. Infrastructure Substratehanzo start · hanzo stop · hanzo restartBoots/halts the warm local k3s Kubernetes cluster (hanzoai/vm on macOS/Windows, native cgroups/containerd on Linux) and hanzod daemon. Stays warm across projects.
2. Platform & Project Workloadshanzo up · hanzo down · hanzo statusReconciles hanzo.yaml / compose.yaml into isolated Kubernetes namespaces (e.g. hanzo-cloud, solar-crm) so multiple apps run side-by-side without port collisions.
3. Interactive Coding & Modelshanzo dev · hanzo pull · hanzo engine serveRuns the terminal coding agent (hanzoai/dev-v1) with HIP-0300 MCP tools and optional local zen6-flash weights against your local or cloud /v1 gateway.
1

Boot the Warm Local k3s Runtime & OSS Cloud

# 1. Install the ~15 MB Rust CLI
curl -fsSL https://hanzo.sh | sh

# 2. Boot warm k3s substrate + hanzod daemon (idempotent, sub-second once warm)
hanzo start

# 3. Bring up the full OSS Cloud control plane (IAM, KMS, Base, KV, Vector, PubSub, Gateway)
hanzo up --cloud

# 4. Inspect live services, endpoints, and isolated project namespaces
hanzo status

Open Hanzo Desktop (hanzo.ai/download) → Local Cloud:

  1. Toggle Local k3s & OSS Cloud to Running — Desktop invokes hanzod under the hood and mounts your local kubeconfig automatically.
  2. Open the local Console at http://localhost:8000 (or link it to your org at platform.hanzo.ai for unified hybrid telemetry).
  3. Inspect running pods, IAM tenants, KMS vaults, and local model VRAM from one pane.
// npm i hanzoai
import { AiApi, Configuration } from 'hanzoai';

const basePath = process.env.HANZO_BASE_URL ?? 'http://localhost:8000';
const ai = new AiApi(
  new Configuration({ basePath, accessToken: process.env.HANZO_API_KEY }),
);

const { data } = await ai.getModels();
console.log(`Connected to ${basePath} — ${data.data?.length ?? 0} models routed`);
# pip install "hanzoai>=8"
import os
from hanzoai.cloud import ApiClient, Configuration
from hanzoai.cloud.api import AiApi

cfg = Configuration(
    host=os.environ.get("HANZO_BASE_URL", "http://localhost:8000"),
    access_token=os.environ.get("HANZO_API_KEY", ""),
)
models = AiApi(ApiClient(cfg)).get_models()
print("Local/Cloud models ready:", len(models.data or []))
// go get github.com/hanzoai/go-sdk/v8
cfg := hanzoai.NewConfiguration()
cfg.Servers = hanzoai.ServerConfigurations{{URL: os.Getenv("HANZO_BASE_URL")}}
cfg.AddDefaultHeader("Authorization", "Bearer "+os.Getenv("HANZO_API_KEY"))

client := hanzoai.NewAPIClient(cfg)
models, _, err := client.AiAPI.GetModels(ctx).Execute()
// cargo add hanzo-client
use hanzo_client::apis::{ai_api, configuration::Configuration};

let mut cfg = Configuration::new();
cfg.base_path = std::env::var("HANZO_BASE_URL")
    .unwrap_or_else(|_| "http://localhost:8000".into());
cfg.bearer_access_token = std::env::var("HANZO_API_KEY").ok();

let models = ai_api::get_models(&cfg, Default::default()).await?;
# Point HANZO_BASE_URL at localhost:8000 (local OSS Cloud) or https://api.hanzo.ai
export HANZO_BASE_URL="${HANZO_BASE_URL:-http://localhost:8000}"

# Verify local cloud gateway + cluster health
curl -fsSL "$HANZO_BASE_URL/v1/models" | jq '.data | length'
curl -fsSL https://api.hanzo.ai/v1/deploy/health \
  -H "Authorization: Bearer $HANZO_API_KEY"
# Attach the 19-tool HIP-0300 MCP server pointed at your local OSS Cloud
HANZO_BASE_URL=http://localhost:8000 npx -y @hanzo/mcp serve
2

Run Multi-Project Apps Side-by-Side (Cloud + Solar CRM)

Because hanzo up scopes every repository to its own Kubernetes namespace and ingress hostname on the shared warm k3s cluster, you can run ghcr.io/hanzoai/cloud-oss:main alongside business apps (like Solar CRM, Commerce, or Studio) and tear down one without disturbing the others:

# Terminal 1: Keep Hanzo OSS Cloud running in namespace `hanzo-cloud`
cd ~/work/hanzo/cloud && hanzo up

# Terminal 2: Boot a multi-service app in its own isolated namespace `solar-crm`
cd ~/work/solar-crm && hanzo up

# Tear down ONLY solar-crm — `hanzo-cloud` and warm k3s stay online!
cd ~/work/solar-crm && hanzo down

# Halt the entire local k3s VM/substrate when finished for the day
hanzo stop
3

Declarative hanzo.yaml Workload Contract

Drop a hanzo.yaml at the root of any repository so hanzo up locally and hanzo deploy in production reconcile the exact same services, secrets, and /v1 bindings:

name: solar-crm
org: acme

services:
  web:
    build: ./apps/web
    port: 3000
    env:
      NEXT_PUBLIC_HANZO_URL: ${HANZO_BASE_URL}
  worker:
    build: ./services/worker
     subscribe: ["crm.leads.*"]

capabilities:
  iam: true
  kms: true
  base: true
  kv: [sessions]
  pubsub: [crm]

Next Steps

Was this page useful?
Broken link or missing step? Drop it in #docs on Discord or open a PR.
Last updated Nov 27, 2026