| name | assemblyai-install-auth |
| description | Install and configure AssemblyAI SDK authentication.
Use when setting up a new AssemblyAI integration, configuring API keys,
or initializing the assemblyai npm package in your project.
Trigger with phrases like "install assemblyai", "setup assemblyai",
"assemblyai auth", "configure assemblyai API key".
|
| allowed-tools | Read, Write, Edit, Bash(npm:*), Bash(pip:*), Grep |
| version | 1.5.0 |
| license | MIT |
| author | Jeremy Longshore <jeremy@intentsolutions.io> |
| tags | ["saas","ai","speech-to-text","assemblyai","transcription"] |
| compatibility | Designed for Claude Code |
AssemblyAI Install & Auth
Overview
Install the assemblyai npm package and configure API key authentication for transcription, LeMUR, and streaming APIs.
Prerequisites
Instructions
Step 1: Install the SDK
npm install assemblyai
pip install assemblyai
Step 2: Configure API Key
export ASSEMBLYAI_API_KEY="your-api-key-here"
echo 'ASSEMBLYAI_API_KEY=your-api-key-here' >> .env
Add to .gitignore:
.env
.env.local
.env.*.local
Step 3: Initialize the Client
import { AssemblyAI } from 'assemblyai';
const client = new AssemblyAI({
apiKey: process.env.ASSEMBLYAI_API_KEY!,
});
export default client;
Step 4: Verify Connection
import { AssemblyAI } from 'assemblyai';
const client = new ({
: process..!,
});
() {
transcript = client..({
: ,
});
(transcript. === ) {
.(, transcript.);
process.();
}
.(, transcript.);
.(, transcript.);
.(, transcript.?.(, ));
}
().(.);