Skip to main content
Official TypeScript / Node client for the Kupe voice API. Node 18+, ESM.
Import import { Kupe } from "kupe-sdk". Default host is https://x.kupe.in. Optional KUPE_BASE_URL. Paths always join as {base}/v1/.... sendText and send_text are the same method.
Create a project key in hub.kupe.in. It looks like sk-kupe-....

Run a realtime turn (terminal)

Or save as realtime.mjs and run node realtime.mjs. Reuse an existing agent with agent_id. Pass voice or voice_id (copy from the voice library). See Realtime. Streaming mic audio instead of text? If the agent plays through open speakers, pass echoSuppression: "half_duplex" so it does not hear and answer itself — see Realtime.

Who am I

List agents

Create an agent

Write spoken prompts — see Voice agent prompting.

Constructor

Resources

kupe.agents, realtime, sessions, inbound, campaigns, recipientLists, tools, composio, analyses, databases, knowledgeBases, audioAssets, phones, voices, providers, logs, billing, usage, orgs, projects. Next: Realtime · Quickstart · API reference