Skip to main content

Datalayer

Become a Sponsor

🤖 🚀 Agent Runtimes

Github Actions Status PyPI - Version

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.

An agent answering in the chat, its code execution shown

Install

pip install agent-runtimes        # Python 3.11 or later: the server and the `loop` CLI
npm install @datalayer/agent-runtimes   # the React components

Run

With a model key in the environment (for example ANTHROPIC_API_KEY, OPENAI_API_KEY or AWS Bedrock credentials):

loop --local -a example-simple

loop 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.

The loop CLI: a question, a code execution, the answer

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 with loop 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 :3000

Documentation

Everything else is on the documentation site: agent-runtimes.datalayer.tech. It covers the CLI, endpoints, agentspecs, integrations, sessions, plugins and the API references.

License

BSD 3-Clause.

Metadata

Release files for agent-runtimes 1.6.36

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for agent-runtimes 1.6.36
File Size Uploaded Provenance Actions
agent_runtimes-1.6.36.tar.gz 3.4 MB With provenance Details for agent_runtimes-1.6.36.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for agent-runtimes 1.6.36
File Interpreter ABI Platform Actions
agent_runtimes-1.6.36-py3-none-any.whl Python 3 none any Details for agent_runtimes-1.6.36-py3-none-any.whl

Total release size: 25.4 MB

Release files / agent_runtimes-1.6.36.tar.gz

Download URL agent_runtimes-1.6.36.tar.gz
Size 3.4 MB
Tags Source
SHA-256 checksum
How to use checksums
76a9a3c8179bcdededfa43bbff9a08955d658d90ec0d3b39ccbf76c9741b7dd5
BLAKE2b-256 checksum
How to use checksums
a7e18be244d72c93ea4a56bf6bb83c5e1c4740bf6f41e8108a686bbbf9678c7d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 13, 2026.

Transparency log

Release files / agent_runtimes-1.6.36-py3-none-any.whl

Download URL agent_runtimes-1.6.36-py3-none-any.whl
Size 22.1 MB
Tags Python 3
SHA-256 checksum
How to use checksums
71e7e58c10fb567cf6db1da31d75440917683328f0ce4716deccef6578fca878
BLAKE2b-256 checksum
How to use checksums
a0c0455e363fb26aefb02079aed1c1a2a1a7c1229ac3fe237947c61bfe1b8ee0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 13, 2026.

Transparency log

Security for agent-runtimes 1.6.36

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for agent_runtimes-1.6.36.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 13, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.6.36 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page