Skip to main content

TypeScript SDK

The official TypeScript SDK for Danube AI provides a fully-typed interface for accessing services, tools, workflows, skills, and more through the Danube platform. Works with both TypeScript and JavaScript in Node.js environments.

Installation

Quick Start

Authentication

The SDK uses your Danube API key for authentication. You can provide it in two ways:
Get your API key from the Danube Dashboard.

API Reference

Services

Tools

Skills

Context

Context is what an agent should know before it works for you: your organization’s documents and your personal ones, merged into one markdown text.
Pass orgId to the client (or set DANUBE_ORG_ID) to pick the organization whose context and internal skills apply. Share a skill with your organization by uploading a .zip of one skill folder:

Workflows

Credentials

Wallet

Agents

Register autonomous agents with their own API keys and USDC wallets:

Error Handling

The SDK provides specific error types for different error conditions:

Error Types

Configuration Options

The SDK automatically retries failed requests with exponential backoff on rate limits (429) and server errors (502, 503, 504).

Models

Service

Tool

ToolResult

Workflow

WorkflowExecution

Source Code

The SDK is open source and available on GitHub: