{"_id":"@ai-sdk/anthropic@4.0.97","bugs":{"url":"https://github.com/vercel/ai/issues"},"dist":{"shasum":"aac7cadbf9ea3374fbc34df6807eec9ac22dfdf6","tarball":"http://registry-npm.ywwl.com/@ai-sdk/anthropic/download/@ai-sdk/anthropic-4.0.97.tgz","fileCount":64,"integrity":"sha512-LqCxnaKd4FsKChgBiS26Dgu1kC35jVeuH9OclhRJ6/Hg56kmJSbKlwu6Om6cfCmLgDUiIbn2r3w4um6bz7BivQ==","signatures":[{"sig":"MEQCIDkoOpk+f1frv1l3uXYbkW2qppBXcYT/sbfyp3keOuXFAiANMBjeqGFMyuJSWFqxqsV64qLIeEj0X+OvWTYN7AznRQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIFgP/eTd20RJkeDZmPOCtzvramnkVJLfWhhGskOlCLUSAiEA8ZeOLyqkgmcjkQf8QiXUyAujKuRzR4ZPV0wckPbkx8k="}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@ai-sdk%2fanthropic@4.0.97","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":2553597,"size":463881,"noattachment":false,"key":"/@ai-sdk/anthropic/-/@ai-sdk/anthropic-4.0.97.tgz"},"main":"./dist/index.js","name":"@ai-sdk/anthropic","type":"module","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"},"license":"Apache-2.0","scripts":{"test":"pnpm test:node && pnpm test:edge","build":"pnpm clean && tsdown","clean":"del-cli 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 && tsdown --watch","test:update":"pnpm test:node -u"},"version":"4.0.97","_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"cbfcca7f-1db0-4b41-b880-3e0de6dc99ff"}},"homepage":"https://ai-sdk.dev/docs","keywords":["ai"],"repository":{"url":"https://github.com/vercel/ai","type":"git","directory":"packages/anthropic"},"directories":{"doc":"./docs"},"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"}],"sideEffects":false,"dependencies":{"@ai-sdk/provider":"4.0.36","@ai-sdk/provider-utils":"5.0.75"},"publishConfig":{"access":"public","provenance":true},"_hasShrinkwrap":false,"devDependencies":{"zod":"3.25.76","tsdown":"^0.23.0","typescript":"6.0.3","@types/node":"22.19.19","@ai-sdk/test-server":"2.0.4","@vercel/ai-tsconfig":"0.0.0","@vercel/ai-tsdown-config":"0.0.0"},"peerDependencies":{"zod":"^3.25.76 || ^4.1.8"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/anthropic_4.0.97_1793841100853_0.7415187376917557"},"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":1793841100981,"_cnpm_publish_time":1793841100981,"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"}}