The open-source framework for building production-ready AI agents. Type-safe, composable, and designed for the modern AI stack.
Full TypeScript support with inference. Your agents are type-checked end-to-end, from tools to responses.
Build complex systems from simple parts. Chain agents, orchestrate workflows, and handle handoffs naturally.
Works with OpenAI, Anthropic, Google, and any LLM provider. Switch models without changing your code.
Ready-to-use tools for web browsing, code execution, file operations, and more. Or build your own.
Build your first agent in minutes.
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?');
Start building AI agents today. Open source, MIT licensed.
npm create agentkit