Installation
Install ADK-TS and set up your development environment
Prerequisites
Before you begin, ensure your development environment meets the following requirements:
- Node.js:
v22.0or higher - Package Manager:
npm,yarn, orpnpm - TypeScript:
v5.3or higher (optional but recommended)
Installation Methods
You can install ADK-TS in two ways: using our CLI for a new project, or adding it manually to an existing one.
Method 1: Use the CLI (Recommended)
The following command will guide you through creating a new project.
npx @iqai/adk-cli newYou can also install the CLI globally and use it from anywhere:
npm install -g @iqai/adk-cli
adk newyarn global add @iqai/adk-cli
adk newpnpm add -g @iqai/adk-cli
adk newMethod 2: Manual Installation
To add ADK-TS to an existing project, use your preferred package manager:
npm install @iqai/adkyarn add @iqai/adkpnpm add @iqai/adkCommon Errors
If you run into trouble, here are a few common issues and their solutions:
Node.js Version Mismatch
Errors during installation are often caused by an incompatible Node.js
version. Verify you are using v22.0 or higher: node --version
TypeScript Compatibility
For TypeScript projects, using a version lower than v5.3 may cause
type-related errors. Check your version with: npx tsc --version
API Key Configuration Issues
If you get authentication errors, ensure:
- You have imported and configured dotenv in your agent file:
import * as dotenv from "dotenv"; dotenv.config(); - Your API key is correctly set in the
.envfile - You have access to the model you're trying to use
- The
.envfile is in the project root directory
Next Steps
Now that you have ADK-TS installed, you're ready to start building. Where to next?
🚀 Quickstart
Build your first fully-functional agent and understand the core concepts.
🤖 Explore Agents
Learn about the different types of agents you can build, from simple to complex.
🛠️ Discover Tools
See how to add capabilities to your agents using built-in and custom tools.
📊 Run Examples
Browse working code examples to deepen your understanding.
How is this guide?