Getting started with Pinecall is simple. Choose your preferred programming language and follow the installation instructions below.
# Using npmnpm install @pinecall/sdk
# Using yarnyarn add @pinecall/sdk
# Using pnpmpnpm add @pinecall/sdk
pip install pinecall
# Or with poetrypoetry add pinecall
Our Node.js SDK is bundled with the JavaScript package:
npm install @pinecall/sdk
After installing the SDK, you'll need to set up your API key. We recommend using environment variables to store sensitive information.
PINECALL_API_KEY=your_api_key_here
Next, initialize the Pinecall client in your application:
import { Pinecall } from '@pinecall/sdk';
// Initialize with API keyconst pinecall = new Pinecall({ apiKey: process.env.PINECALL_API_KEY});
// Now you can use the clientconsole.log('Pinecall client initialized successfully!');
For security reasons, never hardcode your API key directly in your source code, especially in client-side applications. Always use environment variables or a secure configuration system.
Now that you've installed the SDK, you're ready to:
Continue to the Quick Start Guide to learn how to create and deploy your first voice AI agent.