Documentation

Milkey Skills SDK

An adapter-first TypeScript SDK for adding Milkey skills to existing AI products.

@milkeyskills/sdk is the public TypeScript SDK for connecting Milkey skills into existing AI products without replacing your current provider client, prompts, memory, or runtime.

Adapter-first

Map Milkey into provider-native shapes instead of hiding providers behind a new abstraction layer.

Thin surface

The SDK stays focused on Milkey contracts, adapters, and typed client behavior.

Mode-aware

Inline, hosted, and auto mode stay explicit and inspectable per provider surface.

Production-ready

Typed errors, timeouts, abort handling, and release checks are built into the package.

What it is

  • The SDK does: expose typed Milkey backend contracts, map Milkey tools into provider-native formats, and provide helper functions for tool follow-up flows.
  • The SDK does not: replace your model provider, become an agent runtime, own prompts, or own your full conversation system.
  • Version today: 0.1.4.
Right mental model
Think of the SDK as a Milkey adapter layer for products. Your app keeps control. Milkey adds the skill infrastructure.

Quickstart

Install
npm install @milkeyskills/sdk
Create the Milkey client
import { milkey } from "@milkeyskills/sdk" const milkeyClient = milkey.createClient({  baseUrl: process.env.MILKEY_BASE_URL!,  apiKey: process.env.MILKEY_API_KEY!,})

From there, choose the provider page that matches the API surface your app already uses.

Core principles

  • Adapter-first: the SDK adapts to OpenAI, Anthropic, Gemini, and AI SDK shapes instead of inventing a new universal runtime.
  • Provider-native: helper outputs look like the provider you already use, so the rest of your stack does not need to be rewritten.
  • Thin orchestration boundary: your app keeps prompts, state, retries, routing, logging, and business policy.

Next docs

© 2026 Milkey MCP