AI Employee SDK

Introduction

Autonomous agent primitives for the Vercel AI SDK. Permissions, cost tracking, server-side interrupts.

You're building agents with the Vercel AI SDK. Your agent calls tools, runs in loops, and produces results. But in production, three questions come up fast:

  • Which tools should this agent be allowed to run without asking?
  • How much is this run costing, and when should it stop?
  • What happens when the agent needs a human to approve something at 3 AM?

AI Employee SDK adds the primitives to answer those. Each one is a standalone function that plugs into generateText(). No framework to adopt, no abstractions to learn, no lock-in.

Architecture

AI Employee SDK architecture: EmployeeAgent composes membrane, memory, cost tracker, and user prepareStep through composePrepareStep into AI SDK generateText

Use EmployeeAgent for the composed experience, or wire each primitive into generateText yourself.

Primitives

Install

npm install @ai-employee-sdk/core ai

Requires ai >= 7.0.0-beta.30 as a peer dependency.

On this page