downloadInstallation

Install the Platform SDK with npm or yarn and configure TypeScript for type-safe API access.

The Platform SDK is a TypeScript-only package distributed via npm. It requires Node.js 18 or higher.

Requirements

  • Node.js 18 or higher

  • npm, yarn, or pnpm

  • TypeScript 5+ (recommended)

Install from npm

npm install @amigo-ai/platform-sdk

Or with yarn or pnpm:

yarn add @amigo-ai/platform-sdk
pnpm add @amigo-ai/platform-sdk

TypeScript Configuration

If you are using TypeScript, ensure your tsconfig.json targets ES2022 or later:

{
  "compilerOptions": {
    "target": "ES2022",
    "module": "ESNext",
    "moduleResolution": "bundler",
    "strict": true,
    "esModuleInterop": true,
    "skipLibCheck": true
  }
}

The SDK ships both ESM and CJS bundles with full .d.ts declaration files, so no additional type packages are required.

Verify Installation

Environment Variables

Create a .env file in your project root with your credentials:

Install dotenv to load them automatically:

Then in your application:

Next Steps

Last updated

Was this helpful?