Installation
Install @fleeex/sdk and its OpenAI peer dependency, and check your runtime.
Install
npm install @fleeex/sdk openaiopenai 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 add @fleeex/sdk openaiyarn add @fleeex/sdk openaiRequirements
- Node.js 18+ — the SDK uses the global
fetch. On older runtimes, pass afetchimplementation via thefetchoption. - 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:
import { FleeexClient } from "@fleeex/sdk";const { FleeexClient } = require("@fleeex/sdk");Next
Head to the Quickstart to make your first call.