claude-api

Official

|-

anthropics ↓ 52k
Claude Code
View source ↗

What it does

  • .py, requirements.txt, pyproject.toml, setup.py, Pipfile → Python — read from python/
  • .ts, .tsx, package.json, tsconfig.json → TypeScript — read from typescript/
  • .js, .jsx (no .ts files present) → TypeScript — JS uses the same SDK, read from typescript/
  • .java, pom.xml, build.gradle → Java — read from java/
  • .kt, .kts, build.gradle.kts → Java — Kotlin uses the Java SDK, read from java/
  • .scala, build.sbt → Java — Scala uses the Java SDK, read from java/
  • .go, go.mod → Go — read from go/

Requirements & configuration

  • This skill helps you build LLM-powered applications with Claude. Choose the right surface based on your needs, detect the project language, then read the relevant language-specific documentation.
  • If AskUserQuestion is unavailable, default to Python examples and note: "Showing Python examples. Let me know if you need a different language."
  • 5. If user needs cURL/raw HTTP examples, read from curl/.
  • Full auth details (named profiles, scopes, the API-key-shadows-profile trap, refresh-token expiry): shared/anthropic-cli.md.
  • After detecting the language, read the relevant files based on what the user needs.

Configuration: POSTANTHROPIC_API_KEYANTHROPIC_AUTH_TOKENANTHROPIC_PROFILEANTHROPIC_BASE_URLANTHROPIC_FEDERATION_RULE_IDANTHROPIC_ORGANIZATION_IDANTHROPIC_SERVICE_ACCOUNT_ID

Derived from the skill's own SKILL.md documentation · extracted 2026-07-23

claude-api FAQ

What does the claude-api skill do?

|- Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER — read BEFORE opening the target file; don't skip because it "looks like a one-liner" — whenever: the prompt names Claude/Anthropic in any form (Claude, Anthropic, Fable, Opus, Sonnet, Haiku, `anthropic`, `@anthropic-ai`, `claude-*`, `us.anthropic.*`, `[1m]`); the user asks about an LLM (pricing/model choice/limits/caching) — never answer from memory; OR the task is LLM-shaped with provider unstated (agent/MCP/tool-definition/multi-agent/RAG/LLM-judge/computer-use; generate/summarize/extract/classify/rewrite/converse over NL; debugging refusals/cutoffs/streaming/tool-calls/tokens). SKIP only when another provider is being worked on (overrides all triggers): OpenAI/GPT/Gemini/Llama/Mistral/Cohere/Ollama named in the query; OR `grep -rE 'openai|langchain_openai|google.generativeai|genai|mistralai|cohere|ollama'` over the project hits (run this grep FIRST if no provider named — don't Read the file). .py, requirements.txt, pyproject.toml, setup.py, Pipfile → Python — read from python/ .ts, .tsx, package.json, tsconfig.json → TypeScript — read from typescript/

What does claude-api require?

This skill helps you build LLM-powered applications with Claude. Choose the right surface based on your needs, detect the project language, then read the relevant language-specific documentation. If AskUserQuestion is unavailable, default to Python examples and note: "Showing Python examples. Let me know if you need a different language." 5. If user needs cURL/raw HTTP examples, read from curl/. Full auth details (named profiles, scopes, the API-key-shadows-profile trap, refresh-token expiry): shared/anthropic-cli.md. After detecting the language, read the relevant files based on what the user needs. Configuration keys: POST, ANTHROPIC_API_KEY, ANTHROPIC_AUTH_TOKEN, ANTHROPIC_PROFILE, ANTHROPIC_BASE_URL, ANTHROPIC_FEDERATION_RULE_ID, ANTHROPIC_ORGANIZATION_ID, ANTHROPIC_SERVICE_ACCOUNT_ID.

How do I install claude-api?

Run: npx -y skills add https://github.com/anthropics/skills --skill claude-api --agent claude-code — the source lives at github.com/anthropics/skills.

Maintain claude-api?

Let people know it's listed here — add the badge (live metrics, light/dark aware) or a plain link to your README or docs.

claude-api on getagentictools
[![claude-api on getagentictools](https://getagentictools.com/badge/skills/anthropics-skills-claude-api.svg)](https://getagentictools.com/skills/anthropics-skills-claude-api?ref=badge)
npx agentictools info skills/anthropics-skills-claude-api

The second line is the CLI lookup for this page — handy in READMEs and docs.