AI agents · Your infrastructure

Ideas, meet Intelligence.

ai-sdk.pro gives your ideas the whole stack — tool-enabled agents, real-time streaming, and your own infrastructure — so the moment of inspiration becomes something useful.

$pnpm --filter @aisdkpro/web dev
~/ai-sdk.pro
$ pnpm agent:smoke
✓ Tool executed          getCurrentTime
✓ Agent loop             20-step limit
Example output · run in your workspace

BUILT ON TOOLS YOU KNOW.

AI SDKNext.jsTypeScriptReactFumadocsDockerCaddyNode.js

TOOL-ENABLED INTELLIGENCE

Create more, configure less.

Give your agent a clear objective and real tools. Let it search your docs, find the facts, and stream an answer — while your server keeps control of every step.

Define your first agent
AI SDK 6TypeScript

tool: getCurrentTime

input: { timeZone: "Asia/Bangkok" }

output: ISO timestamp + localized time

Tool input / output examples20-step maximum

TYPE-SAFE SDK

Connect your app in minutes.

A small client. A typed stream. Use your own interface, connect it to one endpoint, and build with full autocomplete. Provider keys never leave the server.

Explore the client SDK
@aisdkpro/client
chat.tsx
import { useAISDKProChat } from '@aisdkpro/client/react';

const { messages, sendMessage, stop } =
  useAISDKProChat({ endpoint: '/api/chat' });

sendMessage({ text: 'What can we build?' });
UI message stream · exampledata: {"type":"text-delta","delta":"Hello"}
Typed eventsAbortSignalNo browser keys

REAL-TIME RESPONSES

From thought to conversation.

See the answer as it arrives and the tools as they work. The playground connects to a real agent with stop, retry, and new conversation controls.

Open the playground
ai-sdk.proUI preview
What can my agent do?

Your agent can search the docs, read approved documentation, and use tools.

searchDocs Tool-enabled streaming
FROM PROMPT TO PRODUCTION

Get started.
Keep creating.

Three steps to your first working agent. Your code is the workspace; your infrastructure is where it lives.

Read the setup guide
  1. 1

    Start the workspace

    Use Node.js 22 and pnpm 10.18.0. Install the workspace dependencies and open the development server.

    terminal
    pnpm install
    pnpm dev
  2. 2

    Configure your agent

    Let visitors choose their provider and bring their own key. Keep agent logic and safe, validated tools on the server.

    assistant-agent.ts
    const agent = new ToolLoopAgent({
      model: provider(process.env.AI_MODEL),
      instructions: 'Make useful things happen.',
      tools: { searchDocs, fetchUrl, getCurrentTime },
      stopWhen: stepCountIs(20),
    });
  3. 3

    Connect your interface

    Keep your UI yours. Use the typed React hook to send messages, render streaming parts, and cancel a run.

    chat.tsx
    import { useAISDKProChat } from '@aisdkpro/client/react';
    
    const { messages, sendMessage, stop } =
      useAISDKProChat({ endpoint: '/api/chat' });
    
    sendMessage({ text: 'What can we build?' });
BUILT HERE. HOSTED ANYWHERE.

Your agents,
beyond localhost.

Run the same app on your own VPS. Docker packages the runtime, Caddy handles HTTPS and streaming, and Git gives every release a traceable starting point.

Deployment guide

Build and start your standalone application

terminal
docker compose -f infra/docker-compose.yml up -d --build

Or deploy from Git after configuring your server

terminal
git push origin main
curl https://ai-sdk.pro/api/health
Configure your VPS and DNS. Visitors bring their own AI key.
Cloudflare can manage your DNS; the application runs on your server.
FAQ