Requirements
Before installing ADK-TS, ensure your environment meets these requirements:Node.js
Version 22.0 or higher required
Package manager
npm, yarn, or pnpm
Installation methods
Choose the installation method that best fits your workflow:- CLI (Recommended)
- NPM
- Yarn
- PNPM
The ADK CLI provides the fastest way to create a new project with all dependencies configured:The interactive CLI will guide you through:
Create a new project
- Project name and location
- LLM provider selection
- Template selection
- Dependency installation
The CLI automatically sets up TypeScript configuration, installs dependencies, and creates example code to get you started.
LLM provider setup
ADK-TS supports multiple LLM providers. Configure the ones you plan to use:Google Gemini
Google Gemini
Get your API key from Google AI Studio.Available models:
.env
gemini-2.5-flash(recommended for development)gemini-2.5-progemini-3-flash-previewgemini-1.5-progemini-1.5-flash
OpenAI
OpenAI
Get your API key from OpenAI Platform.Available models:
.env
gpt-4gpt-4-turbogpt-3.5-turboo1-previewo1-mini
Anthropic Claude
Anthropic Claude
Get your API key from Anthropic Console.Available models:
.env
claude-4-opusclaude-4-sonnetclaude-4.5-sonnetclaude-3-5-sonnet-20241022
Google Vertex AI
Google Vertex AI
For Google Cloud Vertex AI, you’ll need to set up authentication:Example usage:
.env
Optional dependencies
Install additional dependencies based on your use case:- Database sessions
- Vector databases
- Observability
For persistent session storage with PostgreSQL:For SQLite:For MySQL:
CLI tools
The ADK CLI (@iqai/adk-cli) provides powerful commands for development:
The CLI includes a built-in web interface for testing and debugging agents with real-time interaction and event streaming.
Verify installation
Create a simple test file to verify your installation:test.ts
Clone and run examples
Explore the comprehensive examples in the repository:Run examples
- 01: Getting started with basic agents
- 02: Tools and state management
- 03: Multi-agent systems
- 04: Persistence and sessions
- 05: Planning and code execution
- 06: MCP and integrations
- 07: Guardrails and evaluation
- 08: Observability and plugins
- 09: Memory systems
- 10: Workflow suspend/resume
- 11: Unified memory
Troubleshooting
Node version errors
Node version errors
ADK-TS requires Node.js 22.0 or higher. Update Node.js:
API key issues
API key issues
If you get authentication errors:
- Verify your API key is correct
- Check that your
.envfile is in the correct directory - Ensure you’re using the right environment variable name
- Restart your terminal/IDE to load new environment variables
Module resolution errors
Module resolution errors
If you get module not found errors:
- Clear your node_modules:
rm -rf node_modules package-lock.json - Reinstall:
npm install - Check your TypeScript configuration
- Ensure you’re using a compatible Node.js version
Database connection issues
Database connection issues
For database-related errors:
- Ensure the database driver is installed (pg, mysql2, better-sqlite3)
- Check your connection configuration
- Verify database credentials in your
.envfile - Test database connectivity separately
Next steps
Quickstart
Build your first agent in minutes
Core concepts
Learn the fundamental concepts
Agent types
Explore different agent architectures
API reference
Browse the complete API documentation