Install the Package
Install the ACP TypeScript SDK using your preferred package manager:Install Peer Dependencies
The SDK requires Zod for runtime schema validation. Install it alongside the SDK:The SDK supports Zod versions
^3.25.0 or ^4.0.0. Make sure your project uses a compatible version.TypeScript Configuration
The ACP SDK is designed for modern TypeScript projects. Ensure yourtsconfig.json includes these recommended settings:
tsconfig.json
Node.js Version Requirements
The SDK requires Node.js 18+ for modern JavaScript features like:- Native
fetchAPI - Web Streams API
crypto.getRandomValues()
Verify Installation
Create a simple test file to verify the SDK is installed correctly:1
Create a test file
Create
test-acp.ts in your project:test-acp.ts
2
Run the test
Execute the file using
tsx or compile it with tsc:3
Check the output
You should see output similar to:
PROTOCOL_VERSION returns the protocol version number (currently 1), not the SDK package version.If you see the output above, the SDK is correctly installed and ready to use!
What’s Next?
Now that you have the SDK installed, follow the quickstart guide to build your first agent or client:Quickstart Guide
Build a working ACP agent or client in just a few minutes