# Anthropic

Anthropic is a model provider option for building AI agents. Claude Opus, Sonnet and Haiku. Strong tool use and long-horizon agentic work.

## Facts

- Layer: Model provider (What thinks)
- Vendor: Anthropic
- Licence: proprietary
- Pricing: usage based
- Self-hostable: no
- SDKs: ts, py
- Install: `npm install @anthropic-ai/sdk`
- Requires: `ANTHROPIC_API_KEY`
- Docs: https://docs.claude.com/en/docs/about-claude/models
- Last verified: 2026-08-21

## When to reach for it

- You are choosing a model provider component — what thinks.
- You are happy to depend on a hosted service and would rather not operate this yourself.

## Worth knowing

Enable prompt caching on the system prompt and tool definitions — it is the single biggest cost lever.

## Published benchmark scores

- SWE-bench Verified: 96% — leaderboard, SWE-bench Verified leaderboard, 2026-08-18. https://benchlm.ai/benchmarks/sweVerified

## Alternatives in the model provider layer

| Option | What it does | Licence | Self-host |
| --- | --- | --- | --- |
| OpenAI | GPT and o-series via the Responses API. | proprietary | no |
| Google Gemini | Gemini models with very long context and native multimodality. | proprietary | no |
| Amazon Bedrock | Frontier models inside your AWS account, with IAM and VPC boundaries. | proprietary | no |
| Google Vertex AI | Claude and Gemini under GCP billing, IAM and regional controls. | proprietary | no |
| DeepSeek | Strong reasoning and coding at a fraction of frontier pricing, with the weights published so you can move off the API later. | proprietary | no |
| OpenRouter | One API key, several hundred models, automatic failover. | proprietary | no |
| Hugging Face | One OpenAI-compatible endpoint routed across Groq, Together, Fireworks, Cerebras and Replicate — with the open-weight catalogue behind it. | proprietary | no |
| Venice AI | Hosted open-weight inference with no prompt logging or retention, plus an anonymising proxy in front of the frontier APIs. | proprietary | no |
| LiteLLM | Self-hosted proxy that speaks one API to 100+ providers, with keys and budgets. | open source | yes |
| Groq | Open-weight models at very low latency. | proprietary | no |
| Ollama | Open-weight models on your own machine. Nothing leaves the box. | open source | yes |
| vLLM | High-throughput open-weight serving on your own GPUs. | open source | yes |

Head to head:

- https://newagent.build/compare/anthropic-vs-openai
- https://newagent.build/compare/anthropic-vs-google-gemini
- https://newagent.build/compare/anthropic-vs-bedrock
- https://newagent.build/compare/anthropic-vs-vertex
- https://newagent.build/compare/anthropic-vs-deepseek
- https://newagent.build/compare/anthropic-vs-openrouter
- https://newagent.build/compare/anthropic-vs-huggingface
- https://newagent.build/compare/anthropic-vs-venice

## Curated stacks using it

- Weekend prototype: Smallest thing that is still honest. Local, cheap, no accounts beyond one model key.
- Customer-facing support agent: Talks to strangers, remembers them, and is assumed hostile-adjacent by default.
- Long-running operations agent: Runs for hours, survives deploys, and stops to ask a human before it spends money.
- Research analyst: Reads the whole internet, writes something with citations, runs code to check itself.
- Browser automation: Drives real web apps that have no API, on behalf of a specific signed-in user.

## Add it to a stack

```bash
curl -fsSL "https://newagent.build/api/stack?model=anthropic&format=sh" | sh
```

## Machine interfaces

- `GET https://newagent.build/api/registry` — every component as JSON
- `GET https://newagent.build/api/vendors` — vendors, with the repo and releases feed to watch
- `GET https://newagent.build/api/advise?q=<plain english>` — recommended stack for a description
- `GET https://newagent.build/api/stack?<layer>=<id>&format=sh|json|md|yml|agents|env` — a stack as files
- `GET https://newagent.build/llms.txt` — the whole registry in one fetch

Any page here also returns markdown if you send `Accept: text/markdown`.