Fleeexdocs

Installation

Install @fleeex/sdk and its OpenAI peer dependency, and check your runtime.

Install

npm install @fleeex/sdk openai

openai is a peer dependency — you bring your own version, and the SDK never pins you to a different one. Any openai v4 or later works.

pnpm
pnpm add @fleeex/sdk openai
yarn
yarn add @fleeex/sdk openai

Requirements

  • Node.js 18+ — the SDK uses the global fetch. On older runtimes, pass a fetch implementation via the fetch option.
  • Server-side only. The API key is a secret; the SDK is meant for your backend, not a browser or mobile bundle. See Authentication.

Module format

@fleeex/sdk ships both ESM and CommonJS with TypeScript types, so both import styles work:

ESM
import { FleeexClient } from "@fleeex/sdk";
CommonJS
const { FleeexClient } = require("@fleeex/sdk");

Next

Head to the Quickstart to make your first call.