Skip to main content
The Orchata TypeScript SDK provides a type-safe, universal client for Node.js, Deno, Bun, and browsers. Get started in under 5 minutes.

Installation

Install the SDK using your preferred package manager:

Get Your API Key

1

Navigate to Dashboard

Go to app.orchata.ai and sign in.
2

Create API Key

Navigate to SettingsAPI Keys and click Create API Key.
3

Copy Your Key

Copy the API key immediately - you won’t be able to see it again after closing the dialog.
Store your API key securely. Never commit it to version control.

Basic Setup

Create a client instance with your API key:

Your First Query

Query your knowledge base using semantic search:

Features

Type-Safe

Full TypeScript support with auto-completion and type checking.

Universal

Works with Node.js 18+, Deno, Bun, and modern browsers.

Zero Dependencies

Uses native fetch - no heavy dependencies.

AI-Ready

Built-in tools for Vercel AI SDK v5+ integration.

Next Steps

Usage Guide

Learn about Spaces, Documents, and Queries APIs.

AI Integration

Integrate with Vercel AI SDK for AI-powered applications.

Error Handling

Handle errors gracefully with typed error classes.

API Reference

Explore the REST API documentation.