{"_id":"@aurracloud/agentkit-vercel-ai-sdk","_rev":"3-28470031e91d3ca0e85498fb3998dc2b","name":"@aurracloud/agentkit-vercel-ai-sdk","dist-tags":{"latest":"0.2.1"},"versions":{"0.1.0":{"name":"@aurracloud/agentkit-vercel-ai-sdk","version":"0.1.0","keywords":["coinbase","sdk","crypto","cdp","agentkit","ai","agent","nodejs","typescript","vercel","ai-sdk"],"author":{"name":"Coinbase Inc."},"license":"Apache-2.0","_id":"@aurracloud/agentkit-vercel-ai-sdk@0.1.0","maintainers":[{"name":"yahya_aurracloud","email":"yahya@aurracloud.com"}],"homepage":"https://github.com/aurracloud/agentkit#readme","bugs":{"url":"https://github.com/aurracloud/agentkit/issues"},"dist":{"shasum":"579a9d8fe59f5e58856bc279c13d06fd34475181","tarball":"https://registry.npmjs.org/@aurracloud/agentkit-vercel-ai-sdk/-/agentkit-vercel-ai-sdk-0.1.0.tgz","fileCount":6,"integrity":"sha512-YgeASv/+MBceBFDryTsatEQQLj54IgK/KEKjcYDlXEQaeXMmrZoaoNcAssO98PVRzDDYTF+G7WfvrCxjMODjIQ==","signatures":[{"sig":"MEUCIAvryzeabNJbSVQKWJDgfG+CMhS79t6OCVKo4R9Qz5CWAiEA0HBjr0m1W2DzNmIYCva2rPNah3Hqad8n2xZZdGx7Bpw=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":6268},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"f43753b09e9ea8cbf88fa19325f1756bedd9978a","scripts":{"dev":"tsc --watch","docs":"typedoc --entryPoints ./src --entryPointStrategy expand --exclude ./src/tests/**/*.ts","lint":"eslint -c .eslintrc.json \"src/**/*.ts\"","test":"jest --no-cache --testMatch='**/*.test.ts'","build":"tsc","check":"tsc --noEmit","clean":"rm -rf dist/*","format":"prettier -c .prettierrc --write \"**/*.{ts,js,cjs,json,md}\"","prepack":"tsc","lint:fix":"eslint -c .eslintrc.json \"src/**/*.ts\" --fix","docs:serve":"http-server ./docs","test:types":"tsd --files src/tests/types.test-d.ts","format:check":"prettier -c .prettierrc --check \"**/*.{ts,js,cjs,json,md}\""},"_npmUser":{"name":"yahya_aurracloud","email":"yahya@aurracloud.com"},"repository":{"url":"git+https://github.com/aurracloud/agentkit.git","type":"git"},"_npmVersion":"10.9.0","description":"Vercel AI SDK extension of CDP Agentkit","directories":{},"_nodeVersion":"23.3.0","dependencies":{"zod":"^3.22.4"},"_hasShrinkwrap":false,"devDependencies":{"@coinbase/agentkit":"workspace:*"},"peerDependencies":{"ai":"^4.1.16","@coinbase/agentkit":">=0.1.0"},"_npmOperationalInternal":{"tmp":"tmp/agentkit-vercel-ai-sdk_0.1.0_1753265159635_0.27886063066321487","host":"s3://npm-registry-packages-npm-production"}},"0.1.1":{"name":"@aurracloud/agentkit-vercel-ai-sdk","version":"0.1.1","keywords":["coinbase","sdk","crypto","cdp","agentkit","ai","agent","nodejs","typescript","vercel","ai-sdk"],"author":{"name":"Coinbase Inc."},"license":"Apache-2.0","_id":"@aurracloud/agentkit-vercel-ai-sdk@0.1.1","maintainers":[{"name":"yahya_aurracloud","email":"yahya@aurracloud.com"}],"homepage":"https://github.com/aurracloud/agentkit#readme","bugs":{"url":"https://github.com/aurracloud/agentkit/issues"},"dist":{"shasum":"3c3d18d25610b2c9e79eb648a9b5fbf73bbbaa5f","tarball":"https://registry.npmjs.org/@aurracloud/agentkit-vercel-ai-sdk/-/agentkit-vercel-ai-sdk-0.1.1.tgz","fileCount":6,"integrity":"sha512-T0r5WcpoFsbEezz0WjB3CDL8gM4KQ7CB9REim9r21gvFbo5e+erfVSLjHqKw1YlImKklBUGpik4ogtjnZysUxw==","signatures":[{"sig":"MEUCICc0aAxcEfd3bUKm1fDEEsGjo2g7qFypz8xEwHCX30tWAiEAptxVC5qowdZAYASRbXwqSDJGfwR6Qm9h6GkDQtNoP6I=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":6272},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"abf55c9f7bc75ecfd669033e5e54e45ff05a1fe2","scripts":{"dev":"tsc --watch","docs":"typedoc --entryPoints ./src --entryPointStrategy expand --exclude ./src/tests/**/*.ts","lint":"eslint -c .eslintrc.json \"src/**/*.ts\"","test":"jest --no-cache --testMatch='**/*.test.ts'","build":"tsc","check":"tsc --noEmit","clean":"rm -rf dist/*","format":"prettier -c .prettierrc --write \"**/*.{ts,js,cjs,json,md}\"","prepack":"tsc","lint:fix":"eslint -c .eslintrc.json \"src/**/*.ts\" --fix","docs:serve":"http-server ./docs","test:types":"tsd --files src/tests/types.test-d.ts","format:check":"prettier -c .prettierrc --check \"**/*.{ts,js,cjs,json,md}\""},"_npmUser":{"name":"yahya_aurracloud","email":"yahya@aurracloud.com"},"repository":{"url":"git+https://github.com/aurracloud/agentkit.git","type":"git"},"_npmVersion":"10.9.0","description":"Vercel AI SDK extension of CDP Agentkit","directories":{},"_nodeVersion":"23.3.0","dependencies":{"zod":"^3.22.4"},"_hasShrinkwrap":false,"devDependencies":{"@aurracloud/agentkit":"workspace:*"},"peerDependencies":{"ai":"^4.1.16","@aurracloud/agentkit":">=0.1.0"},"_npmOperationalInternal":{"tmp":"tmp/agentkit-vercel-ai-sdk_0.1.1_1753265519471_0.9171130695593448","host":"s3://npm-registry-packages-npm-production"}},"0.2.1":{"name":"@aurracloud/agentkit-vercel-ai-sdk","version":"0.2.1","description":"Vercel AI SDK extension of CDP Agentkit","repository":{"type":"git","url":"git+https://github.com/aurracloud/agentkit.git"},"author":{"name":"Coinbase Inc."},"license":"Apache-2.0","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"build":"tsc","lint":"eslint -c .eslintrc.json \"src/**/*.ts\"","lint:fix":"eslint -c .eslintrc.json \"src/**/*.ts\" --fix","format":"prettier -c .prettierrc --write \"**/*.{ts,js,cjs,json,md}\"","format:check":"prettier -c .prettierrc --check \"**/*.{ts,js,cjs,json,md}\"","check":"tsc --noEmit","test":"jest --no-cache --testMatch='**/*.test.ts'","test:types":"tsd --files src/tests/types.test-d.ts","clean":"rm -rf dist/*","prepack":"tsc","docs":"typedoc --entryPoints ./src --entryPointStrategy expand --exclude ./src/tests/**/*.ts","docs:serve":"http-server ./docs","dev":"tsc --watch"},"keywords":["coinbase","sdk","crypto","cdp","agentkit","ai","agent","nodejs","typescript","vercel","ai-sdk"],"dependencies":{"zod":"^3.25.76"},"devDependencies":{"@aurracloud/agentkit":"../../agentkit"},"peerDependencies":{"@aurracloud/agentkit":">=0.1.0","ai":"^5.0.26"},"_id":"@aurracloud/agentkit-vercel-ai-sdk@0.2.1","gitHead":"6e2736d9084e270c6d6ef61fa4d17a28ceeb8a93","bugs":{"url":"https://github.com/aurracloud/agentkit/issues"},"homepage":"https://github.com/aurracloud/agentkit#readme","_nodeVersion":"23.3.0","_npmVersion":"10.9.0","dist":{"integrity":"sha512-9EnKstVOTS2JTfxMv4kbGSugkf8ZAz/2GSy3xaggzA1DdSCNDeB1YOFxyMl8Z1vp/opNUcuUdlGjnzZQEhRxXw==","shasum":"714791fe885720ed2688df5350033e02a2d05652","tarball":"https://registry.npmjs.org/@aurracloud/agentkit-vercel-ai-sdk/-/agentkit-vercel-ai-sdk-0.2.1.tgz","fileCount":6,"unpackedSize":6291,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIF9MMoNZTDk7Pv7A6TTNnSjesCxrRqYdy1jddpCIzx60AiBwYmAAtYZFjP7sphx/HJBZ8sESuiM+VssvOiGKWwKppg=="}]},"_npmUser":{"name":"yahya_aurracloud","email":"yahya@aurracloud.com"},"directories":{},"maintainers":[{"name":"yahya_aurracloud","email":"yahya@aurracloud.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/agentkit-vercel-ai-sdk_0.2.1_1758117159849_0.4870199744215542"},"_hasShrinkwrap":false}},"time":{"created":"2025-07-23T10:05:59.527Z","modified":"2025-09-17T13:52:40.218Z","0.1.0":"2025-07-23T10:05:59.810Z","0.1.1":"2025-07-23T10:11:59.648Z","0.2.1":"2025-09-17T13:52:40.046Z"},"bugs":{"url":"https://github.com/aurracloud/agentkit/issues"},"author":{"name":"Coinbase Inc."},"license":"Apache-2.0","homepage":"https://github.com/aurracloud/agentkit#readme","keywords":["coinbase","sdk","crypto","cdp","agentkit","ai","agent","nodejs","typescript","vercel","ai-sdk"],"repository":{"type":"git","url":"git+https://github.com/aurracloud/agentkit.git"},"description":"Vercel AI SDK extension of CDP Agentkit","maintainers":[{"name":"yahya_aurracloud","email":"yahya@aurracloud.com"}],"readme":"# Coinbase Agentkit Extension - Vercel AI SDK\n\nThis package is an extension used to easily plug [AgentKit](https://docs.cdp.coinbase.com/agentkit/docs/welcome) into [AI SDK by Vercel](https://sdk.vercel.ai/docs/introduction).\n\n## Installation\n\nFor a single command to install all necessary dependencies, run:\n\n```bash\nnpm install @aurracloud/agentkit-vercel-ai-sdk @aurracloud/agentkit ai @ai-sdk/openai\n```\n\nTo break it down, this package is:\n\n```bash\nnpm install @aurracloud/agentkit-vercel-ai-sdk\n```\n\nThis package is used alongside AgentKit and AI SDK, so these will need to be installed as well.\n\n```bash\nnpm install @aurracloud/agentkit ai\n```\n\nFinally, install the model provider you want to use. For example, to use OpenAI, install the `@ai-sdk/openai` package. See [here](https://sdk.vercel.ai/docs/foundations/providers-and-models#ai-sdk-providers) for a list of supported model providers.\n\n```bash\nnpm install @ai-sdk/openai\n```\n\n## Usage\n\nThe main export of this package is the `getVercelAITools` function. This function takes an AgentKit instance and returns an object containing the tools for the AgentKit agent. This object can then be passed to AI SDK.\n\nHere's a snippet of code that shows how to use the `getVercelAITools` function to get the tools for the AgentKit agent.\n\n###### chatbot.ts\n\n```typescript\nimport { getVercelAITools } from \"@aurracloud/agentkit-vercel-ai-sdk\";\nimport { AgentKit } from \"@aurracloud/agentkit\";\nimport { generateText } from \"ai\";\nimport { openai } from \"@ai-sdk/openai\";\n\n// Get your Coinbase Developer Platform API key from the Portal: https://portal.cdp.coinbase.com/\n// Or, check out one of the other supported wallet providers: https://github.com/coinbase/agentkit/tree/main/typescript/agentkit\nconst agentKit = await AgentKit.from({\n  cdpApiKeyId: process.env.CDP_API_KEY_ID,\n  cdpApiKeySecret: process.env.CDP_API_KEY_SECRET,\n});\n\nconst tools = await getVercelAITools(agentKit);\n\n// There are multiple methods to generate text with AI SDK.\n// See here for more information: https://sdk.vercel.ai/docs/ai-sdk-core/generating-text\nconst { text } = await generateText({\n  model: openai(\"gpt-4o-mini\"), // Make sure to have OPENAI_API_KEY set in your environment variables\n  system: \"You are an onchain AI assistant with access to a wallet.\",\n  prompt: \"Print wallet details\",\n  tools,\n  // Allow multi-step tool usage\n  // See: https://sdk.vercel.ai/docs/foundations/agents#multi-step-tool-usage\n  maxSteps: 10,\n});\n\nconsole.log(text);\n```\n\nFor a full example, see the [AgentKit AI SDK Chatbot Example](https://github.com/coinbase/agentkit/tree/main/typescript/examples/vercel-ai-sdk-smart-wallet-chatbot).\n\n## Contributing\n\nWe welcome contributions of all kinds! Please see our [Contributing Guide](https://github.com/coinbase/agentkit/blob/main/CONTRIBUTING.md) for detailed setup instructions and contribution guidelines.\n","readmeFilename":"README.md"}