An agent in your CI
Wire it into a workflow, hand it the diff, get a PR description back. Runs inline against the working tree.
A TypeScript SDK. Apache-2.0 local runtime. Your AI provider keys. Walk away anytime.
28 AI providers. Local or cloud. Same Agent and Run API across both.
$ npm install @theokit/sdkThere is a version of your agent that doesn't sit in a chat window. You don't open a panel. You don't type a prompt. You commit code, and the agent runs — the same way every other piece of your stack runs. That agent is built with `@theokit/sdk` — and when you decide to leave, the runtime leaves with you.
Wire it into a workflow, hand it the diff, get a PR description back. Runs inline against the working tree.
A cron expression and a prompt — runs every morning, every commit, every Friday at 5. POSIX cron with IANA timezones.
Stream events into a WebSocket, surface tool calls to your UI, retain conversation across turns.
Multi-provider underneath — Anthropic, OpenAI, Google. Local agents run end-to-end against your keys.
SDK Apache-2.0. Local runtime Apache-2.0. Cloud opt-in. Walk-away cost zero.
import { Agent } from "@theokit/sdk";
const agent = await Agent.create({
apiKey: process.env.THEOKIT_API_KEY!,
model: { id: "composer-2" },
local: { cwd: process.cwd() },
});
const run = await agent.send("Summarize what this repository does");
for await (const event of run.stream()) {
if (event.type === "assistant") console.log(event.message.content);
}One file. Local runtime. Streaming events. Same shape on the cloud.
The agent SDK shape is converging across the ecosystem — Agent, Run, streaming events look the same whether you reach for Claude's SDK, Cursor's SDK, or this one. The difference is what runs underneath.
| Capability | @theokit/sdk | Claude Agent SDK | Cursor SDK | Vercel AI SDK |
|---|---|---|---|---|
| SDK source | Apache-2.0 | Open | Proprietary | Open (MIT) |
| Local agent runtime | Apache-2.0 (via pi/) | Anthropic-hosted | Cursor-hosted | Caller-provided |
| LLM provider | Multi-provider — bring your own keys | Anthropic-only | OpenAI + Anthropic (vendor-routed) | Multi (caller wraps) |
| Cloud runtime | Opt-in (self-host or TheoCloud) | Anthropic cloud only | Cursor cloud only | Caller-hosted |
| Walk-away cost | Zero — fork the runtime, keep shipping | Tied to Anthropic | Tied to Cursor | Low (you already host) |
Most agent SDKs ship open; most agent runtimes don't. This one does — end to end, real runtime not vendor cloud.
The SDK shape is converging — Agent, Run, streaming events look the same everywhere. The next fight is about which runtime sits underneath. We made ours Apache-2.0.
$ npm install @theokit/sdkRead the docs → github.com/usetheodev/theokit-sdk
Want managed runtime? theo login