Skip to main content

TypeScript SDK

The official TypeScript SDK for Danube AI provides a fully-typed interface for accessing services, tools, workflows, skills, sites, 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

Identity

Workflows

Sites

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

AgentSite

Source Code

The SDK is open source and available on GitHub: