Skip to main content
We explain how to integrate Ceramic Search with the Vercel AI SDK to ground agent responses in high-quality web search results.

Installation

API keys

Get your Ceramic API key and export it:

Get API Key

Create a Ceramic account for free to get an API key.
Also export any additional API keys you need, e.g., OpenAI:

Example usage

Save the file as example.ts. In the same directory, create a package.json with:
Then run:

Configuration

Result shape

Each search call returns:

GitHub

View source code

npm

View package