| name | clade-install-auth |
| description | Install and configure the Anthropic SDK for Claude API access.
Use when setting up Claude integration, configuring API keys,
or initializing the Anthropic client in your project.
Trigger with phrases like "install anthropic", "setup claude api",
"anthropic auth", "configure anthropic API key".
|
| allowed-tools | Read, Write, Edit, Bash(npm:*), Bash(pip:*), Grep |
| version | 1.0.0 |
| license | MIT |
| author | Jeremy Longshore <jeremy@intentsolutions.io> |
| tags | ["saas","anthropic","claude","ai"] |
| compatibility | Designed for Claude Code |
Anthropic Install & Auth
Overview
Set up the Anthropic SDK and configure your API key to start using Claude models.
Prerequisites
- Node.js 18+ or Python 3.10+
- Anthropic account at console.anthropic.com
- API key from Settings → API Keys (starts with
sk-ant-)
Instructions
Step 1: Install SDK
npm install @claude-ai/sdk
pip install anthropic
Step 2: Configure API Key
export ANTHROPIC_API_KEY="sk-ant-api03-..."
echo 'ANTHROPIC_API_KEY=sk-ant-api03-...' >> .env
Important: Never hardcode API keys. Use environment variables or a secrets manager. Keys start with sk-ant-.
Step 3: Verify Connection
import Anthropic from '@claude-ai/sdk';
const client = new Anthropic();
const message = await client.messages.create({
model: 'claude-sonnet-4-20250514',
max_tokens: 64,
messages: [{ role: 'user', content: 'Say "connected" in one word.' }],
});
console.log(message.content[].);