@agentskit/runtime
Standalone agent runtime. ReAct loop, durable execution, multi-agent topologies, speculative execution, background agents.
@agentskit/runtime is where AgentsKit stops being “a chat integration” and becomes an agent system. This package owns the multi-step loop that lets a model inspect, act, reflect, and continue.
#When to reach for it
- You want an agent without a UI.
- You need durable execution (resume after a crash).
- You want ready-made multi-agent topologies.
- You want to race adapters (
speculate) or run on cron / webhooks.
#Best fit
- Start here when the task is more than one model call.
- Pair with
@agentskit/toolswhen the model needs to do work in the world. - Pair with
@agentskit/memorywhen context needs to persist across runs. - Pair with
@agentskit/observabilitybefore trusting the system in production.
#Install
npm install @agentskit/runtime @agentskit/adapters#Hello world
import { createRuntime } from '@agentskit/runtime'
import { anthropic } from '@agentskit/adapters'
const runtime = createRuntime({
adapter: anthropic({ apiKey: process.env.ANTHROPIC_API_KEY!, model: 'claude-sonnet-4-6' }),
})
const result = await runtime.run('Summarize the quarterly report.')
console.log(result.content)That one run() call is the center of the agent stack. Everything else in the ecosystem layers into or around it.
#Surface
createRuntime(config)— headless agent with tools / memory / skills / observers.createSharedContext— typed context across tools.createDurableRunner+createInMemoryStepLog/createFileStepLog— Temporal-style step log.supervisor·swarm·hierarchical·blackboard— multi-agent topologies.speculate— race adapters, abort losers.createCronScheduler+createWebhookHandler— background agents.
#Recipes
#Stability
- Version:
0.6.1 - Tier: beta
- Contract: evolving
- Roadmap: see packages roadmap for what this package needs to reach v1.0.
#Related
#Source
npm: @agentskit/runtime · repo: packages/runtime
Explore nearby
- PeerPackages overview
Every AgentsKit package at a glance — what it does, when to reach for it, where to read the deep dive.
- PeerRoadmap
Per-package stability status, current version, and what each package needs to reach v1.0.
- Peer@agentskit/core
Shared contract layer — TypeScript types, headless chat controller, stream helpers. Zero-dep, under 10 KB gzipped.