Skip to content
Dashboard

Vercel BotID now 
available for all frameworks

src/hooks.client.ts
import { initBotId } from 'botid/client/core';
export function init() {
initBotId({
protect: [
{
path: '/api/user',
method: 'POST',
},
],
});
}

Initializing BotID in a SvelteKit project

We recommend using initBotId() in instrumentation-client.ts for better performance in Next.js v15.3+. Earlier versions can continue using the React <BotIdClient> component approach.

Protect your AI endpoints with Vercel BotID

Stop bots from draining your AI budget: see how to gate your endpoints with Vercel BotID in a few steps.

Read the guide