@jem-open/mbali-anthropic-managed
v0.6.0
Published
mbali AgentRuntime driver for Anthropic Claude Managed Agents (sessions API).
Readme
@jem-open/mbali-anthropic-managed
An mbali AgentRuntime driver backed by Anthropic Claude Managed Agents (the sessions API).
This is a port adapter for mbali, not a general-purpose Anthropic client. It implements the
AgentRuntime port from @jem-open/mbali-core — create, send, status, find, events — so
the engine can spin up and reconcile managed sessions. On its own it does nothing useful; plug it
into an Engine.
Install
pnpm add @jem-open/mbali-anthropic-managed
pnpm add @jem-open/mbali-core # peer dependency@anthropic-ai/sdk is a regular dependency, so the official client comes along.
Usage
import { AnthropicManagedRuntime } from "@jem-open/mbali-anthropic-managed";
const runtime = new AnthropicManagedRuntime({ apiKey: process.env.ANTHROPIC_API_KEY });
const engine = new Engine({ runtime, runStore });Bring your own client (or a fake in tests) via fromAnthropic(client) and the api option. find
correlates by scanning session metadata up to maxFindScan (default 500); past that, use the
"runstore" correlation strategy instead (ADR-0005).
Part of mbali — the control plane for fleets of remote AI agent sessions.
