{"name":"@ai-sdk/anthropic","version":"0.0.0-6b196531-20260710185421","keywords":["ai"],"license":"Apache-2.0","_id":"@ai-sdk/anthropic@0.0.0-6b196531-20260710185421","maintainers":[{"name":"vercel-release-bot","email":"infra+release@vercel.com"},{"name":"matheuss","email":"matheus.frndes@gmail.com"},{"name":"matt.straka","email":"matt.j.straka@gmail.com"}],"homepage":"https://ai-sdk.dev/docs","bugs":{"url":"https://github.com/vercel/ai/issues"},"dist":{"shasum":"e3487177f7c5b5f4798626dc0342cb92d2c4fcc6","tarball":"http://registry-npm.ywwl.com/@ai-sdk/anthropic/download/@ai-sdk/anthropic-0.0.0-6b196531-20260710185421.tgz","fileCount":52,"integrity":"sha512-MXKKgt4Y6kazj5ixdoB6L4KbJGlwPCtCUT5KEdD8JCRGzthr38NFbD1+1StdFVbQtWn0M/9knXeMXzumXldsdQ==","signatures":[{"sig":"MEUCID9YAyqM1FOx64EuAdbUS6CNQZ2pE/zlSO3SOYXV8AusAiEAmRCmHSttDOU6xY1Ym2hWrDDGQTsST5aI4nG0Reylioc=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@ai-sdk%2fanthropic@0.0.0-6b196531-20260710185421","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":1957460,"size":314511,"noattachment":false,"key":"/@ai-sdk/anthropic/-/@ai-sdk/anthropic-0.0.0-6b196531-20260710185421.tgz"},"main":"./dist/index.js","type":"module","_from":"file:ai-sdk-anthropic-0.0.0-6b196531-20260710185421.tgz","types":"./dist/index.d.ts","engines":{"node":">=22"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","default":"./dist/index.js"},"./internal":{"types":"./dist/internal/index.d.ts","import":"./dist/internal/index.js","default":"./dist/internal/index.js"},"./package.json":"./package.json"},"scripts":{"test":"pnpm test:node && pnpm test:edge","build":"pnpm clean && tsup --tsconfig tsconfig.build.json","clean":"del-cli dist docs *.tsbuildinfo","test:edge":"vitest --config vitest.edge.config.js --run","test:node":"vitest --config vitest.node.config.js --run","test:watch":"vitest --config vitest.node.config.js","type-check":"tsc --build","build:watch":"pnpm clean && tsup --watch --tsconfig tsconfig.build.json","test:update":"pnpm test:node -u"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:b068de4d-5fc0-4730-b041-19f5f7cc7943"}},"_resolved":"/tmp/f53cef64c39fc8b1ad7fcdd13bb3a120/ai-sdk-anthropic-0.0.0-6b196531-20260710185421.tgz","_integrity":"sha512-MXKKgt4Y6kazj5ixdoB6L4KbJGlwPCtCUT5KEdD8JCRGzthr38NFbD1+1StdFVbQtWn0M/9knXeMXzumXldsdQ==","repository":{"url":"git+https://github.com/vercel/ai.git","type":"git","directory":"packages/anthropic"},"_npmVersion":"11.16.0","description":"The **[Anthropic provider](https://ai-sdk.dev/providers/ai-sdk-providers/anthropic)** for the [AI SDK](https://ai-sdk.dev/docs) contains language model support for the [Anthropic Messages API](https://docs.anthropic.com/claude/reference/messages_post).","directories":{"doc":"./docs"},"sideEffects":false,"_nodeVersion":"24.18.0","dependencies":{"@ai-sdk/provider":"4.0.3","@ai-sdk/provider-utils":"0.0.0-6b196531-20260710185421"},"publishConfig":{"access":"public","provenance":true},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"zod":"3.25.76","tsup":"^8.5.1","typescript":"5.8.3","@types/node":"22.19.19","@ai-sdk/test-server":"2.0.0","@vercel/ai-tsconfig":"0.0.0"},"peerDependencies":{"zod":"^3.25.76 || ^4.1.8"},"_npmOperationalInternal":{"tmp":"tmp/anthropic_0.0.0-6b196531-20260710185421_1783710112265_0.14247676794820796","host":"s3://npm-registry-packages-npm-production"},"readme":"# AI SDK - Anthropic Provider\n\nThe **[Anthropic provider](https://ai-sdk.dev/providers/ai-sdk-providers/anthropic)** for the [AI SDK](https://ai-sdk.dev/docs) contains language model support for the [Anthropic Messages API](https://docs.anthropic.com/claude/reference/messages_post).\n\n> **Deploying to Vercel?** With Vercel's AI Gateway you can access Anthropic (and hundreds of models from other providers) — no additional packages, API keys, or extra cost. [Get started with AI Gateway](https://vercel.com/ai-gateway).\n\n## Setup\n\n```bash\nnpm i ai @ai-sdk/anthropic\n```\n\n## Skill for Coding Agents\n\nIf you use coding agents such as Claude Code or Cursor, we highly recommend adding the AI SDK skill to your repository:\n\n```shell\nnpx skills add vercel/ai\n```\n\n## Usage\n\n```ts\nimport { anthropic } from '@ai-sdk/anthropic';\nimport { generateText } from 'ai';\n\nconst { text } = await generateText({\n  model: anthropic('claude-haiku-5-5'),\n  prompt: 'Write a vegetarian lasagna recipe for 4 people.',\n});\n```\n\nSee the [Anthropic Provider documentation](https://ai-sdk.dev/providers/ai-sdk-providers/anthropic) for more information.\n","publish_time":1783710112460,"_cnpm_publish_time":1783710112460,"dist-tags":{"ai-v5":"2.0.113","ai-v6":"3.0.140","alpha":"2.0.0-alpha.15","beta":"4.0.0-beta.69","canary":"4.0.0-canary.66","latest":"4.0.99","snapshot":"0.0.0-f1630544-20260811180950"}}