SDK

Build on top of ZYRAXON from Node, with a typed client.

The ZYRAXON SDK lets you drive the engine from your own Node or TypeScript application. It works with Node 18+, Bun and Deno, and the public packages are published under the @zyraxon-ai npm scope.

Install

bash
npm install @zyraxon-ai/sdk
# or, for custom tools:
npm install @zyraxon-ai/plugin

Quick start

ts
import { createZyraxonClient } from "@zyraxon-ai/sdk"

const client = createZyraxonClient({
  baseUrl: "http://localhost:3000",
})

const reply = await client.chat({
  message: "Explain this repository",
})

console.log(reply)

Streaming a session

ts
import { createZYRAXON } from "@zyraxon-ai/sdk"

const zyraxon = await createZYRAXON({ directory: process.cwd() })
const session = await zyraxon.session.create()

for await (const event of zyraxon.session.prompt({
  sessionID: session.id,
  parts: [{ type: "text", text: "Explain this repository" }],
})) {
  console.log(event.type)
}

Package tiers

TierPackagesFor
Public SDK@zyraxon-ai/sdk, @zyraxon-ai/pluginEveryone building on ZYRAXON
API building blocks@zyraxon-ai/schema, protocol, client, server, sdk-nextDevelopers building agents
Internal@zyraxon-ai/core, llm, http-recorder, effect-drizzle-sqlite, effect-sqlite-nodeUsed by the desktop app

Surfaces

SurfaceWhat it is
DesktopAn Electron application for Windows, macOS and Linux
TUIA terminal client
ServerAn HTTP server you can point other tools at
SDKA typed client for Node
ℹ
Further reading
Full documentation is in the repository’s SDK.md and PACKAGES.md.