You.com Vercel AI SDK Integration for Openclaw

A powerful integration plugin to connect Vercel AI SDK applications with You.com's live web search, AI agents, and content extraction tools.

edwardirby
v1.0.0
Feb 1, 2026
1
3k
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install ydc-ai-sdk-integration

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install ydc-ai-sdk-integration using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is You.com Vercel AI SDK Integration?

This skill enables developers to seamlessly incorporate You.com search capabilities into their AI applications using the Vercel AI SDK. By leveraging the Openclaw Skills framework, you can equip your agents with tools like youSearch for live web data, youExpress for contextual AI answers, and youContents for deep page extraction.

This integration bridges the gap between static LLMs and the real-time web, providing high-quality citations and grounded responses. It is designed to work out-of-the-box with popular providers like Anthropic and OpenAI, ensuring your agent has access to the freshest information available on the internet.

You.com Vercel AI SDK Integration Use Cases

  • Adding real-time web search to Next.js or Express chat applications.
  • Extracting structured content from specific URLs for automated data processing.
  • Enhancing AI agent reasoning with grounded web context using the youExpress agent tool.
  • Building research-heavy workflows that require verified citations and news snippets.

How You.com Vercel AI SDK Integration Works

  1. The developer installs the @youdotcom-oss/ai-sdk-plugin package via their preferred package manager (npm, bun, yarn, or pnpm).
  2. A You.com API key is configured as an environment variable (YDC_API_KEY) or passed directly during tool initialization.
  3. Specific tools such as youSearch, youExpress, or youContents are imported into the application code.
  4. These tools are added to the tools object within the Vercel AI SDK generateText or streamText functions.
  5. When the AI model determines it needs external data, it invokes the You.com tools via the plugin.
  6. The plugin fetches raw API data and returns it to the model to generate a final, grounded response.

You.com Vercel AI SDK Integration Setup

Install the necessary plugin using your preferred package manager:

npm install @youdotcom-oss/ai-sdk-plugin

Ensure you have your You.com API key ready. You can obtain one from the You.com platform. Set it in your environment variables:

export YDC_API_KEY='your_api_key_here'

In your application code, import and initialize the tools as follows:

import { youSearch } from '@youdotcom-oss/ai-sdk-plugin';

// Use within generateText or streamText
const tools = {
  search: youSearch(),
};

You.com Vercel AI SDK Integration Data Schema & Taxonomy

The skill utilizes structured schemas to ensure the AI model provides correct parameters for web operations. The following table describes the primary tool outputs:

Tool Output Type Description
youSearch Raw API Response Web and news search results including snippets, URLs, and metadata.
youExpress AI Agent Response Contextual answers derived from the You.com AI search agent.
youContents Content String Extracted text and content from specified target URLs.
InputSchema Zod Object Uses SearchQuerySchema from @youdotcom-oss/mcp for strict type safety.

You.com Vercel AI SDK Integration Advanced Features

  • Support for Anthropic streaming patterns using the stopWhen: stepCountIs(n) logic to manage complex tool-calling loops.
  • Custom API key injection allows for dynamic environment configuration or multi-tenant support.
  • Integration with MCP (Model Context Protocol) schemas ensures intelligent query construction for better search relevance.
  • Raw response forwarding ensures no data loss, allowing the AI SDK to handle the presentation layer with maximum flexibility.
  • Multi-tool orchestration enables an agent to search, extract, and summarize in a single logical flow.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*