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

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.5.121
File Size Uploaded Provenance Actions
agent_runtimes-1.5.121.tar.gz 3.0 MB With provenance Details for agent_runtimes-1.5.121.tar.gz

Built distribution (wheel)

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

Total release size: 24.6 MB

Release files / agent_runtimes-1.5.121.tar.gz

Download URL agent_runtimes-1.5.121.tar.gz
Size 3.0 MB
Tags Source
SHA-256 checksum
How to use checksums
b85078decd898b840932266b6dd083340ab4da0bd57bf736e382b9b282577b92
BLAKE2b-256 checksum
How to use checksums
85a671bf3442527952664207179b8d948f50d8e55da6bd5dfe48fd83b4d562d8
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 8, 2026.

Transparency log

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

Download URL agent_runtimes-1.5.121-py3-none-any.whl
Size 21.6 MB
Tags Python 3
SHA-256 checksum
How to use checksums
64830f3b7c89b8d7c096d2578cbf0a824b3781a6ea9bbca515fcf6bd3bcc9ff5
BLAKE2b-256 checksum
How to use checksums
c69a01a7c5f2c815d254df3f6fd0ce3a6c45ea061f6870c2b67e238249a31728
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 8, 2026.

Transparency log

Security for agent-runtimes 1.5.121

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.5.121.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 8, 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.5.121 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