SkillAgentSearch skills...

anth-install-auth

'Install and configure Anthropic Claude SDK authentication for Python

Install / Use

npx skills add jeremylongshore/tons-of-skills-marketplace --skill anth-install-auth

Installs into whichever agent you are using.

About this skill
📄

SKILL.md

Installable skill definition

Quality Score

87/100

Supported Platforms

Claude Code

Our assessment of anth-install-auth

anth-install-auth scores 87/100 on our quality scale, 1470th of 3,845 Development & Engineering skills we index (top 39%).

Its SKILL.md is 4.7 KB long, well organised into 24 sections with 5 code examples: a solid amount of guidance for an agent.

With 2,785 GitHub stars, it is one of the more widely adopted skills in the catalogue.

Substance
26/30
Structure
20/20
Description
12/15
Adoption
15/20
Freshness
15/15

Maintenance, license and trust

  • The repository was last updated 6 days ago, so anth-install-auth is actively maintained.
  • It is released under the MIT license, a permissive license that allows use, modification and commercial use with attribution.
  • Its trust signals score 100/100, with no cautions. These come from repository metadata, not a code audit — read the skill file before letting an agent act on it.

anth-install-auth compared with similar skills

All 4 of these similar skills score higher than anth-install-auth; compare them before choosing.

SkillScoreStarsUpdatedFormat
anth-install-auth (this skill)by jeremylongshore872.8k6d agoSKILL.md
Agent-Reachby Panniantong10086.3k14d agoCLAUDE.md
headroomby headroomlabs-ai10074.1ktodayCLAUDE.md
rufloby ruvnet10073.6ktodayCLAUDE.md
ai-job-searchby MadsLorentzen10044.5ktodayCLAUDE.md

Frequently asked questions

How do I install anth-install-auth?
Run npx skills add jeremylongshore/tons-of-skills-marketplace --skill anth-install-auth. The install tabs above show the steps for each supported agent.
Which AI agents does anth-install-auth work with?
It is written for Claude Code, as a SKILL.md file. Other agents that read the same format can often use it too.
Is anth-install-auth safe to use?
It is MIT-licensed and scores 100/100 on trust signals. Skills are instructions an agent will follow, so read the file before installing it and do not approve commands you do not understand.
Is anth-install-auth still maintained?
The repository was last updated 6 days ago, so anth-install-auth is actively maintained.

name: anth-install-auth description: '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".

' allowed-tools: Read, Write, Edit, Bash(npm:), Bash(pip:), Grep version: 1.7.0 license: MIT author: Jeremy Longshore jeremy@intentsolutions.io tags:

  • saas
  • ai
  • anthropic compatibility: Designed for Claude Code

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
  • API key from Console > API Keys

Instructions

Step 1: Install SDK

# Python
pip install anthropic

# TypeScript / Node.js
npm install @anthropic-ai/sdk

# With pnpm
pnpm add @anthropic-ai/sdk

Step 2: Configure API Key

# Set environment variable (recommended)
export ANTHROPIC_API_KEY="sk-a…[redacted]"

# Or add to .env file
echo 'ANTHROPIC_API_KEY=sk-a…[redacted]' >> .env

# Verify it's set
echo $ANTHROPIC_API_KEY | head -c 15
# Expected: sk-ant-api03-...

Step 3: Verify Connection (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)

import Anthropic from '@anthropic-ai/sdk';

const client = new Anthropic();  // reads ANTHROPIC_API_KEY from env

const message = await client.messages.create({
  model: 'claude-sonnet-4-20250514',
  max_tokens: 64,
  messages: [{ role: 'user', content: 'Say hello in exactly 5 words.' }],
});

if (message.content[0].type === 'text') {
  console.log(message.content[0].text);
}
console.log(`Stop reason: ${message.stop_reason}`);

Output

  • Installed SDK package (anthropic for Python, @anthropic-ai/sdk for TS)
  • Environment variable ANTHROPIC_API_KEY configured
  • Successful API response confirming authentication works

Examples

For local Python development, install anthropic in the project virtual environment, export ANTHROPIC_API_KEY only in the current shell, then run the Step 3 script. Its successful text response confirms both package resolution and authentication without adding a secret to the repository. For a Node service, set the same variable in the deployment platform's secret manager and run the TypeScript check once in a non-production environment; keep the key out of source, logs, and client-side bundles.

Error Handling

| Error | HTTP Code | Cause | Solution | |-------|-----------|-------|----------| | authentication_error | 401 | Invalid or missing API key | Verify key starts with sk-ant-api03- | | permission_error | 403 | Key lacks required scope | Generate new key in Console | | not_found_error | 404 | Invalid API endpoint | Ensure SDK is latest version | | ModuleNotFoundError | N/A | SDK not installed | Run pip install anthropic or npm install @anthropic-ai/sdk | | connection_error | N/A | Network/firewall blocking | Ensure HTTPS to api.anthropic.com is allowed |

Enterprise Configuration

# Custom base URL (for proxied environments)
client = anthropic.Anthropic(
    api_key="sk-ant-...",
    base_url="https://your-proxy.internal.com/v1",
    timeout=60.0,
    max_retries=3
)

# With explicit headers
client = anthropic.Anthropic(
    default_headers={"anthropic-beta": "messages-2024-12-19"}
)

Security Considerations

  • Never commit API keys to source control
  • Use .env files with .gitignore exclusion
  • Rotate keys periodically via Console > API Keys
  • Use separate keys per environment (dev/staging/prod)
  • Consider Anthropic's Workspace feature for team key isolation

Resources

Next Steps

After successful auth, proceed to anth-hello-world for your first Messages API call.

Related Skills

View on GitHub
GitHub Stars2.8k
CategoryDevelopment
Updated6d ago
Forks404

Languages

Python

Trust signals

100/100

From repository metadata: license, adoption, age and documentation. Not a code audit — see the Safety scan above for what the skill file itself contains.

No cautions