🤖 🚀 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 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.
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 :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
Metadata
Release files for agent-runtimes 1.5.125
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| agent_runtimes-1.5.125.tar.gz | 3.0 MB | With provenance | Details for agent_runtimes-1.5.125.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| agent_runtimes-1.5.125-py3-none-any.whl | Python 3 | none | any | Details for agent_runtimes-1.5.125-py3-none-any.whl |
Total release size: 24.6 MB
Release files / agent_runtimes-1.5.125.tar.gz
| Download URL | agent_runtimes-1.5.125.tar.gz |
|---|---|
| Size | 3.0 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a8499fdb51508384c599844d97855808ff43705ce1f4612bdb4c094a5bccc6c3
|
|
BLAKE2b-256 checksum How to use checksums |
962220c52f8d14ccc15bdbdd9458cee0aa8f6c6d1b3cac2d596a312ddf4c18e3
|
| 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 logRelease files / agent_runtimes-1.5.125-py3-none-any.whl
| Download URL | agent_runtimes-1.5.125-py3-none-any.whl |
|---|---|
| Size | 21.6 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d530767b67de1bd378aed10a5d979ae713f59d3fcd1c683dfbe0d75ee1b09ab5
|
|
BLAKE2b-256 checksum How to use checksums |
cbc2736b6085168d7c1c13ff1580954a637688674b15c01e0aac4fa067f51116
|
| 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 logSecurity for agent-runtimes 1.5.125
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.
Attestation for agent_runtimes-1.5.125.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 logA 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.