v1.0 now available

Build AI Agents in TypeScript

The open-source framework for building production-ready AI agents. Type-safe, composable, and designed for the modern AI stack.

Everything you need

🔷

Type-Safe by Design

Full TypeScript support with inference. Your agents are type-checked end-to-end, from tools to responses.

🧩

Composable Agents

Build complex systems from simple parts. Chain agents, orchestrate workflows, and handle handoffs naturally.

🔌

Provider Agnostic

Works with OpenAI, Anthropic, Google, and any LLM provider. Switch models without changing your code.

🛠️

Built-in Tools

Ready-to-use tools for web browsing, code execution, file operations, and more. Or build your own.

Simple to start

Build your first agent in minutes.

agent.ts
import { Agent, tool } from 'agentkit';

const weatherTool = tool({
  name: 'getWeather',
  description: 'Get the weather for a location',
  parameters: { location: 'string' },
  execute: async ({ location }) => {
    // Your implementation
    return { temp: 72, condition: 'sunny' };
  }
});

const agent = new Agent({
  model: 'gpt-4o',
  tools: [weatherTool]
});

await agent.run('What's the weather in SF?');

Ready to build?

Start building AI agents today. Open source, MIT licensed.

npm create agentkit