New:Microsoft Teams Notifications Are Now Available in Socket.Learn more
Get Started

@agentkit-js/claude-agent-sdk

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@agentkit-js/claude-agent-sdk

Drop agentkit-js sandbox kernels into the Anthropic Claude Agent SDK — edge-safe code execution with one capability manifest, reusing your MCP server policy

latest
Source
npmnpm
Version
0.1.0
Version published
Maintainers
1
Created
Source

@agentkit-js/claude-agent-sdk

Drop agentkit-js sandbox kernels into the Anthropic Claude Agent SDK as native tools. Edge-safe code execution, one CapabilityManifest shared with your MCP servers, no external sandbox provider.

Open in StackBlitz

Why this exists

Claude Agent SDK (formerly the Anthropic agent runtime) is Anthropic's first-party way to build agents that target Claude Code, the desktop, or any hosted Claude application. It ships with a clean tool registration model — but no sandbox. If your model generates code, you have to either trust it (don't), spin up a container (latency, ops cost), or write a node:vm shim (bans you from edge runtimes).

This package gives you a ClaudeAgentTool backed by an agentkit kernel (QuickJSKernel, PyodideKernel, WasmtimeKernel, or RemoteSandboxKernel). Pick a tier; pick a manifest; the tool drops straight into the agent SDK's tools array.

Install

npm install @anthropic-ai/sdk @agentkit-js/claude-agent-sdk @agentkit-js/kernel-quickjs \
  quickjs-emscripten @jitl/quickjs-wasmfile-release-sync zod

One-shot snippet evaluation

import { sandboxedJsClaudeTool } from "@agentkit-js/claude-agent-sdk";
import { QuickJSKernel } from "@agentkit-js/kernel-quickjs";

const tool = sandboxedJsClaudeTool({
  kernel: new QuickJSKernel(),
  capabilities: { allowedHosts: ["api.example.com"], cpuMs: 5000 },
});

// Hand the tool to the Claude Agent SDK alongside any other tools.
// The model can now call `evaluate_javascript({ code: "..." })`.

Code-mode: collapse N tools

import { codeModeClaudeTool } from "@agentkit-js/claude-agent-sdk";
import { ToolRegistry } from "@agentkit-js/core";

const tools = new ToolRegistry();
// register your downstream tools here…

const tool = codeModeClaudeTool({
  kernel: new QuickJSKernel(),
  tools,
  capabilities: { allowedHosts: ["api.github.com"] },
});
// The model now sees ONE tool and calls `callTool(...)` from inside scripts.

Capability manifest

Same CapabilityManifest as every other agentkit kernel — see docs/guides/code-mode.md.

See also

Keywords

claude

FAQs

Package last updated on 15 Jun 2026

Related posts