Skip to main content
idapt
HomeAI ModelsPricing
Sign inStart free
Blog

Build on idapt: SDK Quickstart

Richard Morel· Founder·July 16, 2026·Last reviewed July 16, 2026

The @idapt/sdk is a typed client for the whole v1 API: chats, models, Drive, agents, memory, computers. If you can write TypeScript, your workspace is programmable in an afternoon.

Install and authenticate

npm install @idapt/sdk
import { IdaptClient } from "@idapt/sdk";

const client = new IdaptClient({
  apiKey: process.env.IDAPT_API_KEY, // Settings → API Keys
});

Keys are scoped: grant this one exactly the resources your integration touches.

Chat with any model

const reply = await client.chats.send({
  model: "anthropic/claude-sonnet-4.6",
  message: "Three risks in this changelog, one line each: ...",
});
console.log(reply.text);

Swap the model id for anything in the catalog; the call shape stays identical, which is the point of building on a gateway.

Files in, files out

const file = await client.drive.upload({
  path: "Reports/latest.csv",
  content: csvBuffer,
});

const summary = await client.chats.send({
  model: "google/gemini-2.5-flash",
  message: "Summarize the anomalies in this file.",
  attachments: [file.id],
});

Run an agent

const run = await client.agents.run("research-agent", {
  task: "Update /Research/competitors.md with this week's changes",
});

The agent uses its own memory, tools, and permissions: your code delegates work rather than reimplementing it.

Good to know

  • The SDK is generated from the same contract as the API, CLI, and MCP surface: one vocabulary everywhere.
  • Prefer raw HTTP or another language? The OpenAI-compatible endpoint covers inference, and the API reference documents every route.
  • Webhook-style patterns work today via scheduled agents polling state; see automations.

Start with the chat call wired to a real model, then add Drive: the developer hub links the reference, and your first integration is smaller than you think.

GuideAPIDeveloper Tools

Found this helpful? Share it:

  • Install and authenticate
  • Chat with any model
  • Files in, files out
  • Run an agent
  • Good to know

Continue reading

  • Bring Your Own Keys: BYOK in Practice

    How BYOK works in idapt: connect provider API keys, route matching models on your accounts, and mix BYOK with platform billing and local inference.

  • Connect Your Tools to idapt Over MCP

    idapt is an MCP server: connect Claude Code, editors, or any MCP client and reach your Drive, agents, chats, and computers through the open protocol.

  • Script Your Workspace: The idapt CLI

    The idapt CLI drives your whole workspace from the terminal: chats, files, agents, computers, and generation, with five copy-paste recipes to start.

  • Use 200+ AI Models with the OpenAI API Format

    Point any OpenAI SDK at idapt's compatible endpoint and reach Claude, GPT, Gemini, and 200+ more models through one base URL, one key, one bill.

Explore idapt

  • One API key for every model.

    OpenAI-, Anthropic-, and OpenRouter-compatible endpoints with routing you control.

  • Home
  • Pricing
  • AI Models
  • Image models
  • Voice models
  • Video models
  • Rankings
  • New models
  • Model status
  • Multi-Model Chat
  • Voice Mode
  • Voice HUD
  • Web Search
  • Image Generation
  • Video Generation
  • Audio Generation
  • Transcription
  • Drive
  • Secrets
  • Sharing
  • Workspaces
  • Tasks
  • Memory
  • Agents
  • Subagents
  • Automations
  • Skills
  • Code Execution
  • Computers
  • Computer Use
  • Cloud Computers
  • Local AI
  • AI Gateway
  • API & SDK
  • CLI
  • MCP
  • Tunnels
  • All features →
  • Blog
  • Use cases
  • Comparisons
  • Best of
  • Learn
  • Free tools
  • Prompts
  • Templates
  • Changelog
  • Help center
  • FAQ
  • Privacy
  • Compare all models
  • Support
  • Developers
  • Quickstarts
  • API reference
  • API pricing
  • CLI
  • MCP
  • Downloads
  • Desktop
  • Badges and embeds
© idapt[email protected]TermsPrivacy PolicyLegal noticeReport content
X (Twitter)