anth-install-auth

Featured

Install and configure Anthropic Claude SDK authentication for Python and TypeScript. Use when setting up a new Claude API integration, configuring API keys, or initializing the Anthropic SDK in your project. Trigger with phrases like "install anthropic", "setup claude api", "anthropic auth", "configure anthropic API key", "claude sdk setup".

AI & Automation 2,926 stars 433 forks Updated yesterday MIT

Install

View on GitHub

Quality Score: 99/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Anthropic Install & Auth ## Overview Set up the official Anthropic SDK for Python or TypeScript and configure API key authentication. The SDK wraps the Claude Messages API at `https://api.anthropic.com/v1/messages`. ## Prerequisites - Node.js 18+ or Python 3.8+ - Package manager (npm, pnpm, yarn, or pip) - Anthropic account with API access at [console.anthropic.com](https://console.anthropic.com) - API key from Console > API Keys ## Instructions ### Step 1: Install SDK ```bash # Python pip install anthropic # TypeScript / Node.js npm install @anthropic-ai/sdk # With pnpm pnpm add @anthropic-ai/sdk ``` ### Step 2: Configure API Key ```bash # Set environment variable (recommended) export ANTHROPIC_API_KEY="sk-ant-api03-..." # Or add to .env file echo 'ANTHROPIC_API_KEY=sk-ant-api03-your-key-here' >> .env # Verify it's set echo $ANTHROPIC_API_KEY | head -c 15 # Expected: sk-ant-api03-... ``` ### Step 3: Verify Connection (Python) ```python import anthropic client = anthropic.Anthropic() # reads ANTHROPIC_API_KEY from env message = client.messages.create( model="claude-sonnet-4-20250514", max_tokens=64, messages=[{"role": "user", "content": "Say hello in exactly 5 words."}] ) print(message.content[0].text) print(f"Model: {message.model}, Tokens: {message.usage.input_tokens}+{message.usage.output_tokens}") ``` ### Step 4: Verify Connection (TypeScript) ```typescript import Anthropic from '@anthropic-ai/sdk'; const client = new Anthropic(); // re...

Details

Author
jeremylongshore
Repository
jeremylongshore/claude-code-plugins-plus-skills
Created
1 years ago
Last Updated
yesterday
Language
Python
License
MIT

Integrates with

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category