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.0.tar.gz (11.5 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.0-py3-none-any.whl (14.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: zkai_cli-0.5.0.tar.gz
  • Upload date:
  • Size: 11.5 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.0.tar.gz
Algorithm Hash digest
SHA256 7a055f73d95bf3a3dad364227149fe884047fa22cad9019fbd2bbf28fdf55131
MD5 cc106b647517a462a7630baa017e0e19
BLAKE2b-256 03f121eb6ff8849e598c4a45c1cfef2fdd4adc7419d3c129259dc75c1bc39dd4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: zkai_cli-0.5.0-py3-none-any.whl
  • Upload date:
  • Size: 14.6 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a6b656b7ae1fae63424f834fb4f03a91373b8e0b94f229d92dc5dea885585d07
MD5 6003ca019a49e8169d51a4a394b71ede
BLAKE2b-256 3fb89250a0e62ced7251e2f53de40555a3e2d073d03c21c55750a5a9d6af6901

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