Install the SDK

Install the SDK

Time to add Cencori to your project! Choose your preferred language.

JavaScript / TypeScript

Install the Cencori SDK using your package manager:

terminal
npm install cencori

# or with yarn
yarn add cencori

# or with pnpm
pnpm add cencori

Vercel AI SDK (Optional)

If you're using the Vercel AI SDK, install our provider package:

terminal
npm install cencori ai

Python

Install using pip:

terminal
pip install cencori

Set Up Environment Variable

Add your API key to your environment. Create a .env.local file in your project root:

.env.local
CENCORI_API_KEY=csk_your_key_here

💡 Tip: The SDK automatically reads CENCORI_API_KEY from your environment, so you don't need to pass it explicitly.

Verify Installation

Quick check if everything is set up correctly:

test.ts
import { Cencori } from 'cencori';

const cencori = new Cencori();
console.log(cencori.getConfig());
// Should print: { baseUrl: 'https://cencori.com', apiKeyHint: 'csk_...****' }