{"_id":"@coopah/bentley-provider-anthropic","_rev":"4-d8b8a776bea486f453c2a1f8586c0f07","name":"@coopah/bentley-provider-anthropic","dist-tags":{"latest":"0.3.0"},"versions":{"0.2.0":{"name":"@coopah/bentley-provider-anthropic","version":"0.2.0","keywords":["ai","agent","llm","bentley"],"license":"MIT","_id":"@coopah/bentley-provider-anthropic@0.2.0","maintainers":[{"name":"coopah","email":"tibo6c04@gmail.com"}],"homepage":"https://github.com/CoopahG/bentley#readme","bugs":{"url":"https://github.com/CoopahG/bentley/issues"},"dist":{"shasum":"8b9c9f8a931bb8182c77bc95edbc81511f970930","tarball":"https://registry.npmjs.org/@coopah/bentley-provider-anthropic/-/bentley-provider-anthropic-0.2.0.tgz","fileCount":14,"integrity":"sha512-IGJQGCviPDA04mo2kbSfIrCz+maUSOG0fP3QvoYtXkLiI2s65yzUWeMM9Z/zPLCoPmTzRSrnw7oy4oMZVnR5Ow==","signatures":[{"sig":"MEUCIQDFCEd3D8q3AkH/Go5GWs+84PCDcbraGQdLwPS897PTawIgFqsbSQQZmZivJ8DuLvgaeNrxSEtXKKx9qPxkV1bW6gA=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":5845},"main":"dist/index.js","type":"module","_from":"file:coopah-bentley-provider-anthropic-0.2.0.tgz","types":"dist/index.d.ts","engines":{"node":">=20.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"scripts":{"dev":"tsc --watch","lint":"eslint src","build":"tsc","clean":"rm -rf dist","typecheck":"tsc --noEmit"},"_npmUser":{"name":"coopah","email":"tibo6c04@gmail.com"},"_resolved":"/private/var/folders/k4/9fdyr38j4gv59whg5k3w4fgm0000gn/T/1d8a3d02b120506a69b7db6cf175b4ad/coopah-bentley-provider-anthropic-0.2.0.tgz","_integrity":"sha512-IGJQGCviPDA04mo2kbSfIrCz+maUSOG0fP3QvoYtXkLiI2s65yzUWeMM9Z/zPLCoPmTzRSrnw7oy4oMZVnR5Ow==","repository":{"url":"git+https://github.com/CoopahG/bentley.git","type":"git","directory":"packages/providers/anthropic"},"_npmVersion":"10.9.4","description":"Anthropic LLM provider for Bentley","directories":{},"_nodeVersion":"22.22.0","dependencies":{"ai":"^6.0.116","@ai-sdk/anthropic":"^3.0.58","@coopah/bentley-core":"0.2.0"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.9.3","@types/node":"^25.3.5"},"_npmOperationalInternal":{"tmp":"tmp/bentley-provider-anthropic_0.2.0_1773093157288_0.46357771219914534","host":"s3://npm-registry-packages-npm-production"}},"0.2.1":{"name":"@coopah/bentley-provider-anthropic","version":"0.2.1","keywords":["ai","agent","llm","bentley"],"license":"MIT","_id":"@coopah/bentley-provider-anthropic@0.2.1","maintainers":[{"name":"coopah","email":"tibo6c04@gmail.com"}],"homepage":"https://github.com/CoopahG/bentley#readme","bugs":{"url":"https://github.com/CoopahG/bentley/issues"},"dist":{"shasum":"59d33acf596d4f525f1434bc5cf5c4f2e4837f58","tarball":"https://registry.npmjs.org/@coopah/bentley-provider-anthropic/-/bentley-provider-anthropic-0.2.1.tgz","fileCount":15,"integrity":"sha512-TlhNDrRABcHIUO112HkrDb2G7ppbJZYljI6gEKNu311OBFc8K/EJR0i4nseZrUMBoWH4w7JTBhi5US8lyyObhA==","signatures":[{"sig":"MEUCIQCm2aFG0qqInMm1RJvwqb4RungTj5RxvMxMnkTeeiK7ygIgYn2gg4JFLAvfwslsflfDH5/92o2n01P2dLeo5KYv2ag=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":6552},"main":"dist/index.js","type":"module","_from":"file:coopah-bentley-provider-anthropic-0.2.1.tgz","types":"dist/index.d.ts","engines":{"node":">=20.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"scripts":{"dev":"tsc --watch","lint":"eslint src","build":"tsc","clean":"rm -rf dist","typecheck":"tsc --noEmit"},"_npmUser":{"name":"coopah","email":"tibo6c04@gmail.com"},"_resolved":"/private/var/folders/k4/9fdyr38j4gv59whg5k3w4fgm0000gn/T/205bc22bc0f278c94445389e65207d83/coopah-bentley-provider-anthropic-0.2.1.tgz","_integrity":"sha512-TlhNDrRABcHIUO112HkrDb2G7ppbJZYljI6gEKNu311OBFc8K/EJR0i4nseZrUMBoWH4w7JTBhi5US8lyyObhA==","repository":{"url":"git+https://github.com/CoopahG/bentley.git","type":"git","directory":"packages/providers/anthropic"},"_npmVersion":"10.9.4","description":"Anthropic LLM provider for Bentley","directories":{},"_nodeVersion":"22.22.0","dependencies":{"ai":"^6.0.116","@ai-sdk/anthropic":"^3.0.58","@coopah/bentley-core":"0.2.1"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.9.3","@types/node":"^25.3.5"},"_npmOperationalInternal":{"tmp":"tmp/bentley-provider-anthropic_0.2.1_1773093588219_0.7195096999249191","host":"s3://npm-registry-packages-npm-production"}},"0.2.2":{"name":"@coopah/bentley-provider-anthropic","version":"0.2.2","keywords":["ai","agent","llm","bentley"],"license":"MIT","_id":"@coopah/bentley-provider-anthropic@0.2.2","maintainers":[{"name":"coopah","email":"tibo6c04@gmail.com"}],"homepage":"https://github.com/CoopahG/bentley#readme","bugs":{"url":"https://github.com/CoopahG/bentley/issues"},"dist":{"shasum":"bfa277b2feee13483a5028129da3e56270641484","tarball":"https://registry.npmjs.org/@coopah/bentley-provider-anthropic/-/bentley-provider-anthropic-0.2.2.tgz","fileCount":15,"integrity":"sha512-cJcpkcBt1ArxDLwYPtFaQqMP336cJEqL8RWvP65venStfMlV+rG+m/FcfVT3GMEpRX6MBFtNp+a3EPufG01IRA==","signatures":[{"sig":"MEQCICFwRqCJnQp5XmKIttXCPfbTbBUxB3gj7xHCoSJD5kNNAiAtgTN2OtDnI6aIv+zdK8C0WrJa68wjAbxCMl9PbtWhog==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":7630},"main":"dist/index.js","type":"module","_from":"file:coopah-bentley-provider-anthropic-0.2.2.tgz","types":"dist/index.d.ts","engines":{"node":">=20.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"scripts":{"dev":"tsc --watch","lint":"eslint src","build":"tsc","clean":"rm -rf dist","typecheck":"tsc --noEmit"},"_npmUser":{"name":"coopah","email":"tibo6c04@gmail.com"},"_resolved":"/private/var/folders/k4/9fdyr38j4gv59whg5k3w4fgm0000gn/T/7752b53b57f8ad496c73cfef58eb8988/coopah-bentley-provider-anthropic-0.2.2.tgz","_integrity":"sha512-cJcpkcBt1ArxDLwYPtFaQqMP336cJEqL8RWvP65venStfMlV+rG+m/FcfVT3GMEpRX6MBFtNp+a3EPufG01IRA==","repository":{"url":"git+https://github.com/CoopahG/bentley.git","type":"git","directory":"packages/providers/anthropic"},"_npmVersion":"10.9.4","description":"Anthropic LLM provider for Bentley","directories":{},"_nodeVersion":"22.22.0","dependencies":{"ai":"^6.0.116","@ai-sdk/anthropic":"^3.0.58","@coopah/bentley-core":"0.2.2"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.9.3","@types/node":"^25.3.5"},"_npmOperationalInternal":{"tmp":"tmp/bentley-provider-anthropic_0.2.2_1773093912633_0.5251244618523454","host":"s3://npm-registry-packages-npm-production"}},"0.3.0":{"name":"@coopah/bentley-provider-anthropic","version":"0.3.0","type":"module","main":"dist/index.js","types":"dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"dependencies":{"@ai-sdk/anthropic":"^3.0.58","ai":"^6.0.116","@coopah/bentley-core":"0.3.0"},"devDependencies":{"@types/node":"^25.4.0","typescript":"^5.9.3"},"description":"Anthropic LLM provider for Bentley","license":"MIT","repository":{"type":"git","url":"git+https://github.com/CoopahG/bentley.git","directory":"packages/providers/anthropic"},"engines":{"node":">=20.0.0"},"keywords":["ai","agent","llm","bentley"],"scripts":{"build":"tsc","dev":"tsc --watch","lint":"eslint src","typecheck":"tsc --noEmit","clean":"rm -rf dist"},"_id":"@coopah/bentley-provider-anthropic@0.3.0","bugs":{"url":"https://github.com/CoopahG/bentley/issues"},"homepage":"https://github.com/CoopahG/bentley#readme","_integrity":"sha512-wTwdBFc6rW0ZH85rUHiGg8VyBb7wQmytpGCHC8cb6T9IyRcYtD9cIi6g/XW+k4RZD8n/UM8TWDGflj4F/aiaEw==","_resolved":"/private/var/folders/k4/9fdyr38j4gv59whg5k3w4fgm0000gn/T/3db9844f907350b5aa0fc6e66002cd79/coopah-bentley-provider-anthropic-0.3.0.tgz","_from":"file:coopah-bentley-provider-anthropic-0.3.0.tgz","_nodeVersion":"22.22.0","_npmVersion":"10.9.4","dist":{"integrity":"sha512-wTwdBFc6rW0ZH85rUHiGg8VyBb7wQmytpGCHC8cb6T9IyRcYtD9cIi6g/XW+k4RZD8n/UM8TWDGflj4F/aiaEw==","shasum":"cc6031e41b8ea157c47fcacad283c8d4307add0a","tarball":"https://registry.npmjs.org/@coopah/bentley-provider-anthropic/-/bentley-provider-anthropic-0.3.0.tgz","fileCount":15,"unpackedSize":7630,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQDMHSoKh9LFgA++cFzWGJppFjlZhPjlheOUtGS+oFTWqwIhAL5lu7w1PDcM9J49LTzb5uEZlRoUKaASuR24epZEnIis"}]},"_npmUser":{"name":"coopah","email":"tibo6c04@gmail.com"},"directories":{},"maintainers":[{"name":"coopah","email":"tibo6c04@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/bentley-provider-anthropic_0.3.0_1773178075944_0.17273381852175573"},"_hasShrinkwrap":false}},"time":{"created":"2026-03-09T21:52:37.200Z","modified":"2026-03-10T21:27:56.213Z","0.2.0":"2026-03-09T21:52:37.442Z","0.2.1":"2026-03-09T21:59:48.357Z","0.2.2":"2026-03-09T22:05:12.803Z","0.3.0":"2026-03-10T21:27:56.106Z"},"bugs":{"url":"https://github.com/CoopahG/bentley/issues"},"license":"MIT","homepage":"https://github.com/CoopahG/bentley#readme","keywords":["ai","agent","llm","bentley"],"repository":{"type":"git","url":"git+https://github.com/CoopahG/bentley.git","directory":"packages/providers/anthropic"},"description":"Anthropic LLM provider for Bentley","maintainers":[{"name":"coopah","email":"tibo6c04@gmail.com"}],"readme":"# @coopah/bentley-provider-anthropic\n\nAnthropic (Claude) LLM provider for [Bentley](https://github.com/CoopahG/bentley), built on the [Vercel AI SDK](https://sdk.vercel.ai).\n\n## Install\n\n```bash\npnpm add @coopah/bentley-provider-anthropic\n```\n\n### Dependencies\n\n- [`@coopah/bentley-core`](https://www.npmjs.com/package/@coopah/bentley-core)\n- `@ai-sdk/anthropic` ^3.0.58\n- `ai` ^6.0.116\n\n## Usage\n\n```ts\nimport { createBentley } from \"@coopah/bentley-core\";\nimport { bentleyAnthropicPlugin } from \"@coopah/bentley-provider-anthropic\";\n\nconst bentley = createBentley({\n  plugins: [\n    bentleyAnthropicPlugin(process.env.ANTHROPIC_API_KEY),\n    // or: bentleyAnthropicPlugin() — reads from ANTHROPIC_API_KEY env var\n  ],\n});\n```\n\nThe plugin registers a credential requirement for `ANTHROPIC_API_KEY` (category: `llm`), which is picked up by the server and Studio UI.\n\n## API\n\n- **`bentleyAnthropicPlugin(apiKey?)`** — `BentleyPlugin` that registers Anthropic as an LLM provider\n- **`createBentleyAnthropicProvider(apiKey?)`** — Low-level factory returning `(modelId: string) => LanguageModel`\n- **`ANTHROPIC_MODEL_COSTS`** — Cost-per-token constants for Anthropic models (used by cost tracking middleware)\n\n## Related Packages\n\n| Package | Role |\n|---------|------|\n| [`@coopah/bentley-core`](https://www.npmjs.com/package/@coopah/bentley-core) | Core runtime (required) |\n| [`@coopah/bentley-provider-openai`](https://www.npmjs.com/package/@coopah/bentley-provider-openai) | OpenAI provider |\n| [`@coopah/bentley-provider-ollama`](https://www.npmjs.com/package/@coopah/bentley-provider-ollama) | Ollama provider (local models) |\n| [`@coopah/bentley-provider-copilot`](https://www.npmjs.com/package/@coopah/bentley-provider-copilot) | GitHub Copilot provider |\n\n## License\n\nMIT\n","readmeFilename":"README.md"}