AgentKit GitHub

AgentKit

A native AI conversation, inside your Mac app.

AgentKit puts a full AI conversation inside your macOS app, powered by the Claude Code, Codex or other agent CLI already installed on the Mac.

Read the docsVersion 1.20.1

Built for AI-first apps

Your app describes what it can do, and the agent does it through your own tools. AgentKit brings the conversation, streaming, model selection, tool results and sessions, and the same tools work with Claude Code and Codex.

Everything a conversation needs

Streaming replies with Markdown, code, tables, math and diagrams. A composer with attachments, model and reasoning choices, approvals, questions and a prompt queue. Replies stream in as they are written, and long conversations load their earlier messages as people scroll back. Conversations and drafts are saved, so people pick up where they left off after a relaunch.

Your app stays in charge

When your app hands the agent its own tools, the provider's built-in tools are switched off or kept read-only. Your app checks every request and makes each change through its own editing and undo. When it quits, AgentKit saves the conversation and stops the agent.

Runs on what is already there

AgentKit talks to the agent CLIs installed on the Mac, with the accounts people already use. It bundles no model and leaves sign-in to each CLI, and its example app runs an offline demo with no account at all.

Every agent, every account

Run Claude Code, Codex, Antigravity, Gemini CLI, OpenCode, Grok, Kiro or any Agent Client Protocol agent, and more than one account of each. A conversation can move from one to another partway through. AgentKit checks that each CLI is installed and signed in, installs or updates it, says why one can't run, and reads Claude and Codex plan limits.

At work in Filmatte and SuperRoutine

Filmatte, a native video editor, lets an agent add text and cut the timeline through the editor's own tools, and SuperRoutine's Mac planner lets one plan the day through the same actions as its interface. Both connect the same package through their own tool catalogs, as the docs show. AgentKit began as the conversation in Tab, with its interface, runtime and saved sessions, made into a Swift package any app on macOS 14 or later can use.

Free to use

AgentKit is open source under the MIT license. Code and artwork adapted from other projects keep their own licenses, listed in the third-party notices.