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,266 stars 315 forks Updated today 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
7 months ago
Last Updated
today
Language
Python
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category

AI & Automation Featured

clade-install-auth

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".

2,266 Updated today
jeremylongshore
AI & Automation Featured

anth-hello-world

Create a minimal working Anthropic Claude Messages API example. Use when starting a new Claude integration, testing your setup, or learning basic Messages API patterns for text, vision, and streaming. Trigger with phrases like "anthropic hello world", "claude api example", "anthropic quick start", "simple claude code", "first messages api call".

2,266 Updated today
jeremylongshore
AI & Automation Featured

clade-sdk-patterns

Production-ready Anthropic SDK patterns — client config, retries, timeouts, Use when working with sdk-patterns patterns. error handling, TypeScript types, and async patterns. Trigger with "anthropic sdk", "claude client setup", "anthropic typescript", "anthropic python patterns".

2,266 Updated today
jeremylongshore
AI & Automation Listed

claude-api

Anthropic Claude API patterns for Python and TypeScript. Covers Messages API, streaming, tool use, vision, extended thinking, batches, prompt caching, and Claude Agent SDK. Use when building applications with the Claude API or Anthropic SDKs.

0 Updated today
CodeWithBehnam
AI & Automation Featured

anth-upgrade-migration

Upgrade Anthropic SDK versions and migrate between Claude API versions. Use when upgrading the Python/TypeScript SDK, migrating from Text Completions to Messages API, or adopting new API features like tool use or batches. Trigger with phrases like "upgrade anthropic sdk", "anthropic migration", "update claude sdk", "migrate to messages api".

2,266 Updated today
jeremylongshore