Run autonomous agents in 5 lines — no UI, no boilerplate, just results.
init/dispose, AbortSignal cancellation, memory persistence, and AgentEvent emissions for observabilitynpm install @agentskit/runtime @agentskit/adapters
import { createRuntime } from '@agentskit/runtime'
import { openai } from '@agentskit/adapters'
import { webSearch, filesystem } from '@agentskit/tools'
const runtime = createRuntime({
adapter: openai({ apiKey: process.env.OPENAI_API_KEY, model: 'gpt-4o' }),
tools: [webSearch(), ...filesystem({ basePath: './workspace' })],
systemPrompt: 'You are a helpful research assistant.',
})
const result = await runtime.run('Research the latest advances in quantum computing')
console.log(result.content)
console.log(`Completed in ${result.steps} steps, ${result.durationMs}ms`)
import { createRuntime } from '@agentskit/runtime'
import { anthropic } from '@agentskit/adapters'
import { researcher } from '@agentskit/skills'
const runtime = createRuntime({
adapter: anthropic({ apiKey: process.env.ANTHROPIC_API_KEY!, model: 'claude-sonnet-4-6' }),
})
const result = await runtime.run('Summarize REST vs GraphQL', { skill: researcher })
console.log(result.content)
retriever from @agentskit/rag — see @agentskit/rag README@agentskit/observability observers for LangSmith or OpenTelemetry| Package | Role |
|---|---|
| @agentskit/core | createRuntime contracts, Retriever |
| @agentskit/adapters | LLM adapters |
| @agentskit/tools | Tool modules |
| @agentskit/skills | Pre-built skills |
| @agentskit/rag | retriever for context injection |