Skip to main content

ZKai provider CLI — setup, register, and manage your verifiable AI inference node on 0G chain

Project description

zkai-cli

Provider node management CLI for ZKai — the verifiable AI inference marketplace on 0G chain.

This package installs the zkai command, which automates everything a provider needs: wallet setup, container lifecycle (Docker Compose), and on-chain registration against the ZKai contracts deployed on 0G mainnet.

Install

pip install zkai-cli

Quick start

Becoming a provider takes 4 commands:

# 1. Initial setup — prompts for an EVM private key, writes .env
zkai init

# 2. Start the provider (bridge + TDX-attested enclave)
zkai start

# 3. Verify it's running
zkai status

# 4. Register on-chain — your wallet becomes your provider ID
zkai register --model qwen2.5:1.5b --price 100

Your node is now discoverable by ZKai consumers. Every inference you serve pays you native 0G straight to your wallet.

Commands

Command Purpose
zkai init First-time setup wizard (wallet, .env, relay config).
zkai start Bring up the provider containers via docker compose.
zkai stop Stop and remove containers.
zkai restart [service] Restart all or one of: bridge, enclave.
zkai status Show container health, wallet sync, enclave state, dashboard URL.
zkai logs [service] Tail logs from a service.
zkai register Register the provider in the on-chain ProviderRegistry.
zkai deregister Remove the provider from the on-chain registry.
zkai info Print local provider metadata.
zkai keys Print API key management info.

Run zkai --help for the full reference.

Requirements

  • Linux machine with Docker Engine + Compose plugin (Docker Desktop on macOS works too).
  • An EVM-compatible wallet with a small amount of native 0G for gas. Get testnet 0G from faucet.0g.ai.
  • A model you want to serve (qwen2.5:1.5b is the default; any Ollama model works).

How it fits together

ZKai providers run two containers:

  • bridge — Node.js sidecar that wraps ethers.js and talks to 0G chain on your behalf. Registers, attests, and accepts payment.
  • enclave — Python/FastAPI service running inside a Gramine TDX-sealed runtime, serving an OpenAI-compatible inference endpoint.

The CLI hides all of this behind a few commands. Edit provider/.env if you need to override the model, gateway URL, or relay endpoint.

Links

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

zkai_cli-0.5.1.tar.gz (12.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

zkai_cli-0.5.1-py3-none-any.whl (15.5 kB view details)

Uploaded Python 3

File details

Details for the file zkai_cli-0.5.1.tar.gz.

File metadata

  • Download URL: zkai_cli-0.5.1.tar.gz
  • Upload date:
  • Size: 12.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.2

File hashes

Hashes for zkai_cli-0.5.1.tar.gz
Algorithm Hash digest
SHA256 790bd71edbf58ad0198abf170490fc185dfc1e211d4e86bb8bb9bcb9f35b30e4
MD5 ae41845fbbb6dd6d16cca37306fc44f6
BLAKE2b-256 e613e2b8c807b2739546f4fd3ac0f21ca1073d6a5c5204b081c8053e26e4d9a0

See more details on using hashes here.

File details

Details for the file zkai_cli-0.5.1-py3-none-any.whl.

File metadata

  • Download URL: zkai_cli-0.5.1-py3-none-any.whl
  • Upload date:
  • Size: 15.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.2

File hashes

Hashes for zkai_cli-0.5.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d8a4c15525a6fb52d9c79e85920d22f299e1a0517dacf88eb62cdec2c98a5f50
MD5 2b7685d11652455b5afc0bf62101ddbf
BLAKE2b-256 e630e6d29678f826a19567372095169726dde8688aa77c4652f4e312d85ed638

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page