Skip to main content

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
Check your Node.js version with node --version

Installation methods

Choose the installation method that best fits your workflow:

LLM provider setup

ADK-TS supports multiple LLM providers. Configure the ones you plan to use:
Get your API key from Google AI Studio.
.env
GOOGLE_API_KEY=your_google_api_key_here
Available models:
  • gemini-2.5-flash (recommended for development)
  • gemini-2.5-pro
  • gemini-3-flash-preview
  • gemini-1.5-pro
  • gemini-1.5-flash
Example usage:
const response = await AgentBuilder
  .withModel("gemini-2.5-flash")
  .ask("Hello!");
Get your API key from OpenAI Platform.
.env
OPENAI_API_KEY=your_openai_api_key_here
Available models:
  • gpt-4
  • gpt-4-turbo
  • gpt-3.5-turbo
  • o1-preview
  • o1-mini
Example usage:
const response = await AgentBuilder
  .withModel("gpt-4")
  .ask("Hello!");
Get your API key from Anthropic Console.
.env
ANTHROPIC_API_KEY=your_anthropic_api_key_here
Available models:
  • claude-4-opus
  • claude-4-sonnet
  • claude-4.5-sonnet
  • claude-3-5-sonnet-20241022
Example usage:
const response = await AgentBuilder
  .withModel("claude-4.5-sonnet")
  .ask("Hello!");
For Google Cloud Vertex AI, you’ll need to set up authentication:
.env
GOOGLE_APPLICATION_CREDENTIALS=/path/to/service-account-key.json
VERTEX_PROJECT_ID=your-gcp-project-id
VERTEX_LOCATION=us-central1
Example usage:
const response = await AgentBuilder
  .withModel("gemini-1.5-pro-vertex")
  .ask("Hello!");

Optional dependencies

Install additional dependencies based on your use case:
For persistent session storage with PostgreSQL:
npm install pg
For SQLite:
npm install better-sqlite3
For MySQL:
npm install mysql2

CLI tools

The ADK CLI (@iqai/adk-cli) provides powerful commands for development:
adk
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
import { AgentBuilder } from "@iqai/adk";

async function test() {
  const response = await AgentBuilder
    .withModel("gemini-2.5-flash")
    .ask("Say hello!");
  
  console.log("ADK-TS is working!");
  console.log("Response:", response);
}

test().catch(console.error);
Run it:
node test.ts
If you see a response from the AI, you’re all set!

Clone and run examples

Explore the comprehensive examples in the repository:
1

Clone the repository

git clone https://github.com/IQAIcom/adk-ts.git
cd adk-ts
2

Install dependencies

pnpm install
3

Build the framework

pnpm build
4

Set up API keys

cd apps/examples
echo "GOOGLE_API_KEY=your_key_here" > .env
5

Run examples

pnpm start
Choose from:
  • 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

ADK-TS requires Node.js 22.0 or higher. Update Node.js:
# Using nvm
nvm install 22
nvm use 22

# Or download from nodejs.org
If you get authentication errors:
  1. Verify your API key is correct
  2. Check that your .env file is in the correct directory
  3. Ensure you’re using the right environment variable name
  4. Restart your terminal/IDE to load new environment variables
If you get module not found errors:
  1. Clear your node_modules: rm -rf node_modules package-lock.json
  2. Reinstall: npm install
  3. Check your TypeScript configuration
  4. Ensure you’re using a compatible Node.js version
For database-related errors:
  1. Ensure the database driver is installed (pg, mysql2, better-sqlite3)
  2. Check your connection configuration
  3. Verify database credentials in your .env file
  4. 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
Never commit API keys or sensitive credentials to version control. Always use environment variables and add .env to your .gitignore.

Build docs developers (and LLMs) love