Installation

Getting started with Pinecall is simple. Choose your preferred programming language and follow the installation instructions below.

JavaScript / TypeScript

terminal
# Using npm
npm install @pinecall/sdk
# Using yarn
yarn add @pinecall/sdk
# Using pnpm
pnpm add @pinecall/sdk

Python

terminal
pip install pinecall
# Or with poetry
poetry add pinecall

Node.js

Our Node.js SDK is bundled with the JavaScript package:

terminal
npm install @pinecall/sdk

Setting up your environment

After installing the SDK, you'll need to set up your API key. We recommend using environment variables to store sensitive information.

.env
PINECALL_API_KEY=your_api_key_here

Initializing the Client

Next, initialize the Pinecall client in your application:

initialization.js
import { Pinecall } from '@pinecall/sdk';
// Initialize with API key
const pinecall = new Pinecall({
apiKey: process.env.PINECALL_API_KEY
});
// Now you can use the client
console.log('Pinecall client initialized successfully!');

Note

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.

Next Steps

Now that you've installed the SDK, you're ready to:

  • Create your first AI agent
  • Set up a phone number
  • Make your first outbound call

Continue to the Quick Start Guide to learn how to create and deploy your first voice AI agent.