Vercel AI SDK

Vercel AI SDK is an open-source TypeScript toolkit designed for building AI-powered applications and agents with frameworks like React, Next.js, and Node.js, offering multi-provider abstractions, streaming UI components, and tool calling capabilities.

Vercel logo

Vercel AI SDK

Benefits with Ory + Vercel AI SDK

Ory integrates with Vercel's Vercel AI SDK to provide security guardrails for developers building safely with AI applications and agents. Ory's harness hook executes an identity and credential check on every session and tool call, enforcing fine-grained authorization to allow or deny actions while logging all activity to provide security teams with an audit trail. Organizations can use Observe mode to monitor how developers and builders use the tools, or Enforce mode to provide guardrails ensuring agents can only act based on their assigned permissions.

The fastest way to get started with Ory Agent Security is to sign up for the Ory Network. Integrating the Ory Agent Security SDK into your application takes seconds. You simply install the package in your project directory.

npm install @ory/vercel-ai
View on npm (opens in a new tab)

Use Cases

Agent IAM

Secures Vercel AI SDK applications and agents by enforcing fine-grained authorization, identity verification, and complete audit trails for tool execution.

Explore Agent IAM

CIAM

Accelerates integrating customer authentication and identity management into consumer-facing applications built with Vercel AI SDK using Ory best practices.

Explore CIAM

B2B IAM

Streamlines embedding enterprise SSO, multi-tenant organization structures, and role-based access control into software built with Vercel AI SDK, scaling with business growth.

Explore B2B IAM

Core Functionality

  1. Identity

    Verifies developers and Vercel AI SDK agent identities before session initiation across your ecosystem through a unified control plane.

  2. Authorization

    Enforces fine-grained, policy-based access control for every Vercel AI SDK tool execution and action.

  3. Shell

    Intercepts and secures terminal-level shell commands and execution within Vercel AI SDK applications.

  4. Audit

    Logs complete audit trails for all session activity, tool invocations, and API calls.

  5. Rollout

    Supports seamless deployment with Observe mode for monitoring agent behavior and Enforce mode for strict permission enforcement.

  6. Security Control

    Provides vendor-agnostic governance across all AI tools, complete with instant token revocation to immediately cut off compromised sessions.