Skip to main content
This page gets you from install to first real request with the current @dzapio/ai runtime.

1) Install

If your environment maps @dzapio to a private registry, use:

2) Set required environment variables

OPENAI_API_KEY is the only variable required to run the model. Optional provider keys (Tavily, CoinStats, Moralis, etc.) enable individual tools.

3) SDK example (DZapSDK)

4) CLI example

Aliases also supported: dzapai, DzapAI. The interactive flow prompts for:
  1. Wallet profile (wallet, chain, blockchain, private key)
  2. Chat input and slash commands

5) HTTP streaming example

The server exposes a single Server-Sent Events endpoint, POST /ask_stream:
The stream emits one step event per tool call, a final finalText event, then [DONE]:

6) MCP endpoint example

Next

SDK-AI

Full SDK API reference with more examples.

MCP Server

Stdio + streamable HTTP details.

Tool Categories

All 21 exposed tools.

CLI

Interactive shell command reference.
Last modified on June 18, 2026