{"name":"@ai-sdk/anthropic","version":"3.0.0-beta.43","keywords":["ai"],"license":"Apache-2.0","_id":"@ai-sdk/anthropic@3.0.0-beta.43","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":"6e877e7042d0e5b6e74cfb51d214150ef76b5247","tarball":"http://registry-npm.ywwl.com/@ai-sdk/anthropic/download/@ai-sdk/anthropic-3.0.0-beta.43.tgz","fileCount":17,"integrity":"sha512-RXlCOTXFqSC4rNuO7NwHllqJgDbrEOriHiBLdlkyQJmyvRAjENu+eKDGdMHh/8uXcSJuiXz9D9WBTG3gdC0CBg==","signatures":[{"sig":"MEYCIQDYBEQwLxiioQ3reY2AML5YDMXSfBKqT6nGILIqqH6AIQIhAM19gjo3wKY7HUYXcnqWk4Fj71WafbzM5vkhYdITaILs","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":1570040,"size":235817,"noattachment":false,"key":"/@ai-sdk/anthropic/-/@ai-sdk/anthropic-3.0.0-beta.43.tgz"},"main":"./dist/index.js","_from":"file:ai-sdk-anthropic-3.0.0-beta.43.tgz","types":"./dist/index.d.ts","module":"./dist/index.mjs","engines":{"node":">=18"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.js"},"./internal":{"types":"./dist/internal/index.d.ts","import":"./dist/internal/index.mjs","module":"./dist/internal/index.mjs","require":"./dist/internal/index.js"},"./package.json":"./package.json"},"scripts":{"lint":"eslint \"./**/*.ts*\"","test":"pnpm test:node && pnpm test:edge","build":"pnpm clean && tsup --tsconfig tsconfig.build.json","clean":"rm -rf dist *.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","prettier-check":"prettier --check \"./**/*.ts*\""},"_npmUser":{"name":"vercel-release-bot","email":"infra+release@vercel.com"},"_resolved":"/tmp/c683cab39fe398ffe87bc0f0c0432ba7/ai-sdk-anthropic-3.0.0-beta.43.tgz","_integrity":"sha512-RXlCOTXFqSC4rNuO7NwHllqJgDbrEOriHiBLdlkyQJmyvRAjENu+eKDGdMHh/8uXcSJuiXz9D9WBTG3gdC0CBg==","repository":{"url":"git+https://github.com/vercel/ai.git","type":"git"},"_npmVersion":"10.9.3","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":{},"sideEffects":false,"_nodeVersion":"22.20.0","dependencies":{"@ai-sdk/provider":"3.0.0-beta.12","@ai-sdk/provider-utils":"4.0.0-beta.26"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"zod":"3.25.76","tsup":"^8","typescript":"5.8.3","@types/node":"20.17.24","@ai-sdk/test-server":"1.0.0-beta.1","@vercel/ai-tsconfig":"0.0.0"},"peerDependencies":{"zod":"^3.25.76 || ^4.1.8"},"_npmOperationalInternal":{"tmp":"tmp/anthropic_3.0.0-beta.43_1761592493935_0.1098084888789208","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":1761592494175,"_cnpm_publish_time":1761592494175,"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"}}