@datalayer/agent-runtimes
v1.5.102
Published
<!-- ~ Copyright (c) 2025-2026 Datalayer, Inc. ~ ~ BSD 3-Clause License -->
Readme
🤖 🚀 Agent Runtimes
Agent Runtimes runs AI agents and serves them over the protocols the agent world speaks. It is a Python server that hosts agents built from agentspecs (Pydantic AI by default), with their MCP tools, skills, code sandbox and guardrails. It is also a set of React components (chat, floating assistant, the Loop workspace) that talk to them. It drives coding agents such as Claude Code as harnesses, behind the Shield. It runs on your machine with your own model keys, or on Datalayer runtimes.

Install
pip install agent-runtimes # Python 3.11 or later: the server and the `loop` CLI
npm install @datalayer/agent-runtimes # the React componentsRun
With a model key in the environment (for example ANTHROPIC_API_KEY, OPENAI_API_KEY or AWS Bedrock credentials):
loop --local -a example-simpleloop starts a local server with the example-simple agent and opens a chat in the terminal. agent-runtimes serve --port 8765 starts the server on its own, for the web components.

Features
The meta-harness. Coding agents run as harnesses, driven over the Agent Client Protocol (ACP): Claude Code, Codex, OpenCode and pi today. The runtime launches the harness, lends it tools through the MCP gateway and writes the skills into its workspace. It serves the harness over every protocol it serves its own agents on. The Shield surrounds it: the pod's egress boundary, the policies and the session's rules, the audit record and the trace. See Harnesses and the Shield.
Protocol integrations.
- Transports to a UI or another agent: AG-UI, the Vercel AI SDK, ACP and A2A (served, and called as a client), with A2UI and MCP-UI for generative UI.
- Tools: MCP, local servers over stdio and remote servers over Streamable HTTP.
- Identity, consent and commerce, each a Reactor plugin: Web Bot Auth (with a draft TAP profile), PAP (Personal Agent Protocol), PACT, UCP and the Agentic Commerce Protocol.
See Protocols.
Applications. An Appspec (or a Python
app.py) becomes a chat, a widget, a worker or a decision. You run it withloop apps run, deploy it at its own address and embed it in any page with the<datalayer-app>element. See Apps.Tools and code. MCP servers, skills, a code sandbox and Codemode, which calls tools from code. See Programmatic Tools.
Controls. Guardrails, tool approvals, budgets, hooks, monitoring and OpenTelemetry. See Identity and Hooks.
Sessions, subagents and teams. Sessions you can resume, clone, export and import. Subagents, and teams of agents over A2A. See Sessions and Subagents.
Chat UI. React chat components, a floating assistant with its avatar, voice, presence, and the Loop workspace in the browser. See Chat.
Agent Nodes. Your own machine registers as a node and is reached from Datalayer. See Agent Nodes.
Examples
npm install && pip install -e .
make examples # the local server on :8765 and the examples gallery on :3000Documentation
Everything else is on the documentation site: agent-runtimes.datalayer.tech. It covers the CLI, endpoints, agentspecs, integrations, sessions, plugins and the API references.
