Skip to content

Installation

Terminal window
bun add @promptlycms/prompts

The SDK requires Zod v4, the Vercel AI SDK, and TypeScript 5+:

Terminal window
bun add zod ai typescript

The SDK supports all providers supported by the Vercel AI SDK. Install the AI provider SDK(s) your prompts use - only the providers configured in your CMS prompts need to be installed.

Terminal window
# Anthropic (Claude models)
bun add @ai-sdk/anthropic
# OpenAI (GPT / o-series models)
bun add @ai-sdk/openai
# Google (Gemini models)
bun add @ai-sdk/google
# Mistral (Mistral / Mixtral models)
bun add @ai-sdk/mistral
PackageRequired version
zod^4.0.0
ai^4.0 || ^5.0 || ^6.0
typescript^5
@ai-sdk/anthropic^3.0
@ai-sdk/openai^3.0
@ai-sdk/google^3.0
@ai-sdk/mistral^3.0

Once installed, follow the Quick Start guide to create your first client and fetch a prompt. If you haven’t already, create a free account on Promptly CMS to start managing your prompts.