llm-anthropic
LLM access to models by Anthropic, including the Claude series
What it is and what it does
llm-anthropic is a plugin that extends the LLM command-line tool with access to Anthropic's Claude models. It acts as a bridge between the LLM CLI and the Anthropic API, letting you run Claude models from the terminal or Python without writing API code directly. The plugin handles authentication via API keys, model selection, and parameter passing.
Beyond basic text prompts, it supports attachments (images and PDFs), structured output via schemas, web search and fetch tools for real-time information, code execution in a sandboxed environment, and integration with remote MCP (Model Context Protocol) servers. It depends on the llm and anthropic packages, and requires Python 3.10 or later.
Use it for:
- Run Claude models from the command line without writing Python code or managing API calls directly.
- Process images and PDFs with Claude by attaching them to prompts from the CLI.
- Retrieve real-time information by using web search and fetch tools within Claude conversations.
- Generate structured JSON output from Claude using schema definitions.
- Execute Python and bash code in a sandboxed container via Claude's code execution tool.
- Connect Claude to remote tools and services via MCP servers for extended capabilities.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
A plugin for the LLM command-line tool that adds access to Anthropic's Claude models, including support for image and PDF attachments, web search and fetch, code execution, and structured output schemas.
Yes. The package is actively maintained, has low install friction, carries a permissive license, and integrates cleanly into the LLM ecosystem. It is the standard way to access Claude models from the LLM CLI. Install it if you use LLM and want Claude access; the only prerequisite is an Anthropic API key.
Install
llm-anthropic on PyPI
pip
pip install llm-anthropicuv
uv add llm-anthropicpoetry
poetry add llm-anthropicInstalling llm-anthropic
Before you install
Low friction: pure Python wheel with only two runtime dependencies (llm and anthropic). Active maintenance with a release 10 days ago. Requires Python 3.10 or later.
License in practice
Apache-2.0 permissive license allows commercial and private use with minimal restrictions.
Quickstart
pip install llm-anthropic
llm keys set anthropic
# Paste your API key, then:
llm -m claude-sonnet-5 'Fun facts about walruses'
Requires an Anthropic API key (obtainable from https://console.anthropic.com/settings/keys) and Python 3.10 or later.
Verify before relying
- Whether all Claude model versions mentioned (opus-5, sonnet-5, haiku-4.5, sonnet-4.6) are currently available via the Anthropic API.
- Performance characteristics and rate limits when using web search, fetch, or code execution tools.
- Compatibility with Anthropic-compatible endpoints other than the official API.
Package facts
| License | Apache-2.0 (permissive) |
| Python support | supports the current Python release (>=3.10) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 2 — llm, anthropic |
| Maintenance | actively maintained — 10 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 132,233/month — #11,560 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: llm_anthropic-0.26-py3-none-any.whl
Tags
More Artificial Intelligence packages
LiteLLM provides a unified Python interface to…
permissive · top 100 on PyPI
huggingface-hubClient library and CLI tool for downloading,…
permissive · top 100 on PyPI
langchainLangChain provides a framework for building…
permissive · top 1,000 on PyPI
hf-xethf-xet provides chunk-based deduplication and…
permissive · top 1,000 on PyPI
tokenizersTokenizers converts raw text into token…
permissive · top 1,000 on PyPI
transformersTransformers provides a unified framework for…
permissive · top 1,000 on PyPI
anthropicProvides Python bindings to the Claude API,…
permissive · top 1,000 on PyPI
llama-index-llms-anthropicIntegrates Anthropic's Claude language models…
permissive · top 15,000 on PyPI
llmLLM is a CLI tool and Python library for…
permissive · top 15,000 on PyPI
claude-code-sdkPython SDK for querying Claude Code and…
permissive · top 15,000 on PyPI
llm-github-modelsA plugin for the llm command-line tool that…
permissive · top 15,000 on PyPI
langchain-anthropicProvides LangChain integration for Anthropic's…
permissive · top 1,000 on PyPI
livekit-plugins-anthropicIntegrates Anthropic's Claude models into…
permissive · top 5,000 on PyPI
claude-agent-sdkPython SDK for building and interacting with…
permissive · top 1,000 on PyPI
openinference-instrumentation-claude-agent-sdkAuto-instruments Claude Agent SDK calls to emit…
permissive · top 15,000 on PyPI
unclecode-litellmUnified Python interface to call many LLM…
permissive · top 5,000 on PyPI