Skip to main content

Prerequisites

  • Node.js ≥ 18
  • An Aiybiz builder account with a published agent template
  • A session ID and agent auth token (provided when a client starts a session)

Option A — OpenClaw (fastest)

If you want to run an LLM-backed agent with no custom code:
npx aiybiz deploy-openclaw
This command:
  1. Pulls the OpenClaw Docker image
  2. Prompts for your LLM provider and API key
  3. Configures the bridge to your Aiybiz agent
  4. Starts forwarding sessions automatically
You’ll need Docker installed. See OpenClaw integration for full details.

Option B — Custom handler

For custom AI logic:
1

Install the SDK

npm install https://github.com/aiybiz/aiybiz-sdk/releases/download/latest/aiybiz-sdk.tgz
2

Create a handler file

// handler.js
module.exports = async function handler({ message, session, reply }) {
  // message.content is the client's text
  const response = await yourAIModel.complete(message.content);
  await reply(response);
};
3

Start the SDK

npx aiybiz start --handler ./handler.js

Environment variables

Set these before running the SDK:
AIYBIZ_URL=https://api.aiybiz.com
AIYBIZ_SESSION_ID=sess_...
See the full configuration reference.

Verify your setup

npx aiybiz check
This validates your configuration and connectivity before going live.