Install the SDK
Time to add Cencori to your project! Choose your preferred language.
Install the Cencori SDK using your package manager:
npm install cencori
# or with yarn
yarn add cencori
# or with pnpm
pnpm add cencoriIf you're using the Vercel AI SDK, install our provider package:
npm install cencori aiInstall using pip:
pip install cencoriAdd your API key to your environment. Create a .env.local file in your project root:
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.
Quick check if everything is set up correctly:
import { Cencori } from 'cencori';
const cencori = new Cencori();
console.log(cencori.getConfig());
// Should print: { baseUrl: 'https://cencori.com', apiKeyHint: 'csk_...****' }