{"_id":"@anygpt/anthropic","_rev":"3-4f8797bcffa90702991cd799b6623580","name":"@anygpt/anthropic","dist-tags":{"latest":"0.3.1"},"versions":{"0.1.0":{"name":"@anygpt/anthropic","version":"0.1.0","keywords":["anthropic","claude","connector","ai","llm"],"author":{"name":"AnyGPT Contributors"},"license":"MIT","_id":"@anygpt/anthropic@0.1.0","maintainers":[{"name":"theplenkov-npm","email":"petr.plenkov@gmail.com"}],"homepage":"https://github.com/genai-tools/anygpt#readme","bugs":{"url":"https://github.com/genai-tools/anygpt/issues"},"dist":{"shasum":"fba1e845e12e2716aa86546a3425b34edbfdda28","tarball":"https://registry.npmjs.org/@anygpt/anthropic/-/anthropic-0.1.0.tgz","fileCount":6,"integrity":"sha512-PO0HLHjHFxSr0AwUN2v1/sZIMj38dRmo2zFUs6LbZA31W8fcOF+0QC1C2Nm76KHBQttLptRF1ZZmVpgyjhWNKQ==","signatures":[{"sig":"MEQCIApMiATASQIcfOPiAMhOSP9w0fayDsYG+z6WMyW7h9lNAiA7FyLcBECahrDziub2RiWg2x4EnwFp/z5uAhA22nDP8A==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":41815},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","default":"./dist/index.js"},"./package.json":"./package.json"},"gitHead":"a6449019274244c118f478b3c2e182e9a3503d02","_npmUser":{"name":"theplenkov-npm","email":"petr.plenkov@gmail.com"},"repository":{"url":"git+https://github.com/genai-tools/anygpt.git","type":"git","directory":"packages/connectors/anthropic"},"_npmVersion":"11.6.0","description":"Anthropic connector for AnyGPT - integrates native Anthropic API with the router","directories":{},"_nodeVersion":"24.9.0","dependencies":{"@anygpt/router":"0.4.0","@anthropic-ai/sdk":"^0.65.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/anthropic_0.1.0_1760222997075_0.7479149859049705","host":"s3://npm-registry-packages-npm-production"}},"0.2.0":{"name":"@anygpt/anthropic","version":"0.2.0","keywords":["anthropic","claude","connector","ai","llm"],"author":{"name":"AnyGPT Contributors"},"license":"MIT","_id":"@anygpt/anthropic@0.2.0","maintainers":[{"name":"theplenkov-npm","email":"petr.plenkov@gmail.com"}],"homepage":"https://github.com/genai-tools/anygpt#readme","bugs":{"url":"https://github.com/genai-tools/anygpt/issues"},"dist":{"shasum":"572b477aefd1a5b353faae5fbd16ade7fb87fd3d","tarball":"https://registry.npmjs.org/@anygpt/anthropic/-/anthropic-0.2.0.tgz","fileCount":6,"integrity":"sha512-n92dVKRd4r9pF7Q0OJ9ILTkSmxDpxTbAF2DJrcSRzOwwDRw3aHKIrzNt7LofQ2IBGj3/gZZLL1akbH9Q7poo3w==","signatures":[{"sig":"MEQCIHJ8zfevvsUmWpQNXvcbSMM5RE0DDl50zpv9qxw5cG2YAiABAWp7mJL0g1wDfkFDCnr6PlYhx7LSHg+7/E3zRPZOJg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":41945},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","default":"./dist/index.js"},"./package.json":"./package.json"},"gitHead":"6cd81e0e51813dca22fe3fd30f707d7b42a52e15","_npmUser":{"name":"theplenkov-npm","email":"petr.plenkov@gmail.com"},"repository":{"url":"git+https://github.com/genai-tools/anygpt.git","type":"git","directory":"packages/connectors/anthropic"},"_npmVersion":"11.6.1","description":"Anthropic connector for AnyGPT - integrates native Anthropic API with the router","directories":{},"_nodeVersion":"24.10.0","dependencies":{"@anygpt/router":"0.5.0","@anthropic-ai/sdk":"^0.65.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/anthropic_0.2.0_1760436827033_0.190981711694018","host":"s3://npm-registry-packages-npm-production"}},"0.3.1":{"name":"@anygpt/anthropic","version":"0.3.1","description":"Anthropic connector for AnyGPT - integrates native Anthropic API with the router","type":"module","main":"./dist/index.js","module":"./dist/index.js","types":"./dist/index.d.ts","exports":{"./package.json":"./package.json",".":{"types":"./dist/index.d.ts","import":"./dist/index.js","default":"./dist/index.js"}},"repository":{"type":"git","url":"git+https://github.com/genai-tools/anygpt.git","directory":"packages/connectors/anthropic"},"keywords":["anthropic","claude","connector","ai","llm"],"author":{"name":"AnyGPT Contributors"},"license":"MIT","bugs":{"url":"https://github.com/genai-tools/anygpt/issues"},"homepage":"https://github.com/genai-tools/anygpt#readme","publishConfig":{"access":"public"},"dependencies":{"@anygpt/router":"0.6.1","@anthropic-ai/sdk":"^0.65.0"},"gitHead":"694856d0f9aa5bafc05fbf934367a8add2fddb59","_id":"@anygpt/anthropic@0.3.1","_nodeVersion":"24.10.0","_npmVersion":"11.6.1","dist":{"integrity":"sha512-U+VH2yvbf0qlUJBwEGmX03fep5mJvflZDPMm7LT9Wu3rPXVZx6CseGtZYsbOkjPjZdTyhCtTFrqJ1WlKGOvisA==","shasum":"ad33360789c71a37ff8085038e017dc4499df347","tarball":"https://registry.npmjs.org/@anygpt/anthropic/-/anthropic-0.3.1.tgz","fileCount":6,"unpackedSize":60943,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIHXuz/Vf7eesBd/S39DHiMyAZmb0gD48vwlRoU4FVaEoAiBcg6mO0NKnjVo9Is03xxjxk42bs++q0CEgs3NFAUWfSw=="}]},"_npmUser":{"name":"theplenkov-npm","email":"petr.plenkov@gmail.com"},"directories":{},"maintainers":[{"name":"theplenkov-npm","email":"petr.plenkov@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/anthropic_0.3.1_1761046515192_0.2838001013710394"},"_hasShrinkwrap":false}},"time":{"created":"2025-10-11T22:49:56.980Z","modified":"2025-10-21T11:35:15.642Z","0.1.0":"2025-10-11T22:49:57.266Z","0.2.0":"2025-10-14T10:13:47.200Z","0.3.1":"2025-10-21T11:35:15.420Z"},"bugs":{"url":"https://github.com/genai-tools/anygpt/issues"},"author":{"name":"AnyGPT Contributors"},"license":"MIT","homepage":"https://github.com/genai-tools/anygpt#readme","keywords":["anthropic","claude","connector","ai","llm"],"repository":{"type":"git","url":"git+https://github.com/genai-tools/anygpt.git","directory":"packages/connectors/anthropic"},"description":"Anthropic connector for AnyGPT - integrates native Anthropic API with the router","maintainers":[{"name":"theplenkov-npm","email":"petr.plenkov@gmail.com"}],"readme":"# @anygpt/anthropic\n\nAnthropic connector for the AnyGPT router system. This package provides a connector implementation that allows the router to communicate with Anthropic's native Claude API.\n\n## Features\n\n- **Native Anthropic API Support**: Full support for Anthropic's Messages API\n- **Extended Thinking**: Support for Claude's extended thinking models\n- **Custom Endpoints**: Works with corporate Anthropic gateways\n- **Flexible Configuration**: Support for custom base URLs and API keys\n- **Type Safety**: Full TypeScript support with proper type definitions\n\n## Installation\n\n```bash\nnpm install @anygpt/anthropic @anygpt/router\n```\n\n## Usage\n\n```typescript\nimport {\n  AnthropicConnector,\n  AnthropicConnectorFactory,\n} from '@anygpt/anthropic';\nimport { ConnectorRegistry } from '@anygpt/router';\n\n// Register the connector\nconst registry = new ConnectorRegistry();\nregistry.registerConnector(new AnthropicConnectorFactory());\n\n// Create a connector instance\nconst connector = registry.createConnector('anthropic', {\n  apiKey: 'your-api-key',\n  baseURL: 'https://api.anthropic.com', // Optional: for custom endpoints\n});\n\n// Use the connector\nconst response = await connector.chatCompletion({\n  model: 'claude-sonnet-4-5',\n  messages: [{ role: 'user', content: 'Hello!' }],\n});\n```\n\n## Configuration\n\nThe Anthropic connector accepts the following configuration options:\n\n- `apiKey`: Your Anthropic API key (required for most endpoints)\n- `baseURL`: Custom API endpoint URL (useful for corporate gateways)\n- `timeout`: Request timeout in milliseconds (default: 30000)\n- `maxRetries`: Maximum number of retries (default: 3)\n- `logger`: Custom logger instance\n\n## Corporate Gateways\n\nThis connector works with corporate Anthropic gateways:\n\n```typescript\nconst connector = new AnthropicConnector({\n  apiKey: 'dummy-key', // Some gateways use static keys\n  baseURL: 'https://your-corporate-gateway.com/anthropic',\n});\n```\n\n## Dependencies\n\nThis package depends on:\n\n- `@anygpt/router`: Provides the base connector class and types\n- `@anthropic-ai/sdk`: Official Anthropic SDK for API communication\n","readmeFilename":"README.md"}