Skip to main content

Overview

Claude Code is Anthropic’s agentic coding tool. It automatically reads AGENTS.md files from your repository to understand project context. Adding a Deepdub AGENTS.md gives Claude Code full knowledge of the API, SDKs, and conventions.

Installation

Download the AGENTS.md file to the root of your repository:

View AGENTS.md on GitHub

View, copy, or download the full Claude Code AGENTS.md file.

AGENTS.md file

The AGENTS.md file contains the full Deepdub API reference that Claude Code reads automatically. It includes:
  • Project structure — overview of the monorepo layout
  • Base URLs — US and EU WebSocket and REST endpoints
  • Authentication — API key format and free trial key
  • Default transport — WebSocket text-to-speech, the fastest path, with the SDK or without it
  • Generate Audio Streamed and LLM Integration / Voice Agents — raw WebSocket protocol with a no-SDK client
  • Speech-to-text — real-time Hebrew and English transcription over WebSocket
  • Python SDK — pip install deepdub, WebSocket streaming first, REST one-call second
  • JavaScript SDK — npm install @deepdub/node, asyncTts() streaming first
  • REST endpoints — TTS as a second choice, voice management, gender detection
  • Error codes — 400, 401, 402, 403, 404, 429, 500 with meanings
  • Voice presets — common preset IDs for quick testing
  • Coding conventions — project-specific patterns and best practices

Key sections

The file tells Claude Code to use WebSocket for text-to-speech by default and to keep the connection open between requests. REST is the second choice, for one-off files. WebSocket request (wss://wsgw.deepdub.ai/open, header x-api-key):
With the SDK:
Without the SDK:
Error responses: All errors return JSON: success: false with a message field.

How it works

Claude Code reads AGENTS.md files automatically when it starts a session in your repository. Subdirectory AGENTS.md files are scoped to that directory. The Deepdub reference can go at the project root or in a specific service directory.

Example prompts

After adding the AGENTS.md, try asking Claude Code:
  • “Add a WebSocket TTS client that streams speech from user input”
  • “Write the same client without the Deepdub SDK”
  • “Transcribe live microphone audio with Deepdub speech-to-text”
  • “Integrate the Deepdub Python SDK to classify speaker gender”
  • “Upload a custom voice sample via the REST API”

Combining with Cursor

You can use both the Cursor Skill and Claude Code AGENTS.md in the same repo. They don’t conflict — each tool reads its own format: