claude-api

claude-api is a skill for Claude Code, Codex from Jignesh-Ponamwar/skills-mcp. It costs 88 tokens per session (2,416 once invoked), scanned A, original, Apache-2.0.

A software interface and official libraries for building applications that send requests to Anthropic’s Claude AI models. It supports tasks such as text generation, tool use, streaming responses, image input, and batch processing.

In plain words
What is it for?
Use it to add Claude-powered features to Python, TypeScript, Node.js, or Go applications, including model calls, streamed output, tool-based actions, vision, prompt caching, and managed agents.
Why use it?
It provides the code and patterns needed to connect an application to Claude without designing the request and response handling from scratch.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to add Claude-powered features to Python, TypeScript, Node.js, or Go applications, including model calls, streamed output, tool-based actions, vision, prompt caching, and managed agents.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/jignesh-ponamwar/skills-mcp/claude-api
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add Jignesh-Ponamwar/skills-mcp --skill claude-api
Clone the repo
git clone --depth 1 https://github.com/Jignesh-Ponamwar/skills-mcp

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for claude-api

README.md
[![agentmods](https://agentmods.dev/badge/skills/jignesh-ponamwar/skills-mcp/claude-api/github.svg)](https://agentmods.dev/skills/jignesh-ponamwar/skills-mcp/claude-api)
Your own site
<a href="https://agentmods.dev/skills/jignesh-ponamwar/skills-mcp/claude-api"><img src="https://agentmods.dev/badge/skills/jignesh-ponamwar/skills-mcp/claude-api/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for claude-api

Your own site · 80×15
<a href="https://agentmods.dev/skills/jignesh-ponamwar/skills-mcp/claude-api"><img src="https://agentmods.dev/badge/skills/jignesh-ponamwar/skills-mcp/claude-api.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 88 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,416 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00088 $0.02416
Opus 5 $0.00044 $0.01208
Sonnet 5 $0.00018 $0.00483
Haiku 4.5 $0.00009 $0.00242

Measured 10d ago against content hash 9471e67c0507, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

claude-api scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 10d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skill_mcp/skills_data/claude-api/SKILL.md · 363 lines

How it starts

The opening of the file, as written. The whole thing — 363 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Claude API Skill (Anthropic SDK)

Step 1: Detect Language and Install SDK

Scan the project for package.json, requirements.txt, pyproject.toml, build.gradle, or go.mod to identify the language.

# Python
pip install anthropic

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

# Go
go get github.com/anthropics/anthropic-sdk-go

Step 2: Choose the Right Model

Model Best For Speed Cost
claude-opus-4-5 Complex reasoning, coding, research Slower Higher
claude-sonnet-4-5 Balanced - most tasks Medium Medium
claude-haiku-3-5 Fast, lightweight tasks, classification Fast Lower

Default to claude-opus-4-5 for new implementations unless the user specifies otherwise or speed/cost is a constraint.


Step 3: Basic API Call

Python

import anthropic
import os

client = anthropic.Anthropic(api_key=os.environ["ANTHROPIC_API_KEY"])

message = client.messages.create(
    model="claude-opus-4-5",
    max_tokens=1024,
    messages=[
        {"role": "user", "content": "Explain the CAP theorem in simple terms."}
    ]
)
print(message.content[0].text)

TypeScript / Node.js

import Anthropic from '@anthropic-ai/sdk'

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

const message = await client.messages.create({
  model: 'claude-opus-4-5',
  max_tokens: 1024,
  messages: [
    { role: 'user', content: 'Explain the CAP theorem in simple terms.' }
  ],
})
console.log(message.content[0].text)

Step 4: System Prompts and Multi-Turn Conversations

conversation_history = []

def chat(user_message: str) -> str:
    conversation_history.append({"role": "user", "content": user_message})

    response = client.messages.create(
        model="claude-opus-4-5",
        max_tokens=2048,
        system="You are a senior software engineer. Be concise and precise.",
        messages=conversation_history
    )

    assistant_message = response.content[0].text
    conversation_history.append({"role": "assistant", "content": assistant_message})
    return assistant_message

Read the full file on GitHub · 363 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 10d ago First seen · 363 lines · 88 tokens per session scan A 9471e67c0507

Subscribe to this mod's changes

claude-api is a skill published in the GitHub repository Jignesh-Ponamwar/skills-mcp (7 stars, last pushed 3mo ago), licensed Apache-2.0. It adds 88 tokens to every session and 2,416 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.