🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@agentskit/runtime

Package Overview
Dependencies
Maintainers
1
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@agentskit/runtime

Standalone agent runtime with ReAct loop for AgentsKit.

Source
npmnpm
Version
0.4.7
Version published
Weekly downloads
396
-31.13%
Maintainers
1
Weekly downloads
 
Created
Source

@agentskit/runtime

Run autonomous agents in 5 lines — no UI, no boilerplate, just results.

npm version npm downloads bundle size license stability GitHub stars

Tags: ai · agents · llm · agentskit · openai · anthropic · ai-agents · autonomous-agents · react-loop · orchestration · multi-agent

Why runtime

  • ReAct loop handled for you — observe, think, act, repeat: the runtime drives the full cycle and stops when the agent decides it's done
  • Structured, inspectable results — every run returns the final content, step count, all tool calls made, and total duration; no black boxes
  • Production-ready lifecycle — lazy tool init/dispose, AbortSignal cancellation, memory persistence, and AgentEvent emissions for observability
  • Multi-agent delegation — pass a planner skill with named delegates and the runtime coordinates sub-agents automatically

Install

npm install @agentskit/runtime @agentskit/adapters

Quick example

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`)

With skills

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)

Features

  • createRuntime — single entry point for headless agent execution
  • ReAct loop: observe → think → act → repeat until done
  • Returns { content, steps, toolCalls, durationMs } — fully inspectable
  • AbortSignal cancellation support
  • Tool init / dispose lifecycle hooks
  • AgentEvent emissions for observability integrations
  • retriever option for RAG context injection

Ecosystem

PackageRole
@agentskit/corecreateRuntime contracts, Retriever
@agentskit/adaptersLLM adapters
@agentskit/toolsTool modules
@agentskit/skillsPre-built skills
@agentskit/ragretriever for context injection

Contributors

AgentsKit contributors

License

MIT — see LICENSE.

Docs

Full documentation · GitHub

Keywords

agentskit

FAQs

Package last updated on 18 Apr 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts