Installation
Install the Platform SDK with npm or yarn and configure TypeScript for type-safe API access.
The Platform SDK is a TypeScript-first package distributed via npm. It ships ESM and CJS builds with full type declarations and requires Node.js 20 or higher.
Requirements
Node.js 20 or higher
npm, yarn, or pnpm
TypeScript 5+ (recommended)
Install from npm
npm install @amigo-ai/platform-sdkOr with yarn or pnpm:
yarn add @amigo-ai/platform-sdk
pnpm add @amigo-ai/platform-sdkTypeScript 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
Configuration. Full configuration reference and credential setup.
Quickstart. Make your first API call.
Last updated
Was this helpful?

