Metadata-Version: 2.1
Name: agent_runtimes
Version: 1.12.7
Summary: Agent Runtimes
Project-URL: Homepage, https://github.com/datalayer/agent-runtimes
Project-URL: Documentation, https://agent-runtimes.datalayer.tech
Project-URL: Repository, https://github.com/datalayer/agent-runtimes
Project-URL: Issues, https://github.com/datalayer/agent-runtimes/issues
Project-URL: Changelog, https://github.com/datalayer/agent-runtimes/blob/main/CHANGELOG.md
License: BSD-3-Clause
License-File: LICENSE
Classifier: Framework :: Jupyter
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: Science/Research
Classifier: Intended Audience :: System Administrators
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Requires-Python: >=3.11
Requires-Dist: agent-codemode>=1.1.0
Requires-Dist: agent-skills>=1.5.0
Requires-Dist: agent-teams<2,>=1.1.5
Requires-Dist: agentspecs>=0.5.2
Requires-Dist: code-sandboxes>=1.12.4
Requires-Dist: croniter
Requires-Dist: datalayer-agent-shield<0.3,>=0.2.18
Requires-Dist: datalayer-core>=1.2.34
Requires-Dist: datalayer-reactor>=1.4.0
Requires-Dist: datalayer-skills>=0.7.13
Requires-Dist: fastapi
Requires-Dist: fastmcp-slim[client]<5,>=4.0.0b3
Requires-Dist: filelock>=3.20.3
Requires-Dist: http-sfv<0.10,>=0.9.9
Requires-Dist: httpx
Requires-Dist: jsonschema>=4.18
Requires-Dist: jupyter-server<3,>=2.10
Requires-Dist: mcp<3,>=2
Requires-Dist: nbformat
Requires-Dist: opentelemetry-api<2.0.0,>=1.45.0
Requires-Dist: opentelemetry-exporter-otlp-proto-grpc<2.0.0,>=1.45.0
Requires-Dist: opentelemetry-exporter-otlp-proto-http<2.0.0,>=1.45.0
Requires-Dist: opentelemetry-instrumentation-httpx<1.0,>=0.66b0
Requires-Dist: opentelemetry-instrumentation<1.0,>=0.66b0
Requires-Dist: opentelemetry-sdk<2.0.0,>=1.45.0
Requires-Dist: opentelemetry-semantic-conventions<1.0,>=0.66b0
Requires-Dist: personal-agent-protocol[ui]<1.2,>=1.0.0
Requires-Dist: psycopg[binary]>=3.2.8
Requires-Dist: pydantic-ai-slim[mcp]<3,>=2.77
Requires-Dist: pydantic-graph<3,>=2.77
Requires-Dist: pydantic-settings>=2.14.2
Requires-Dist: pydantic[email]>=2.13.3
Requires-Dist: pyjwt[crypto]>=2.10
Requires-Dist: reactor-mcp-server>=1.3.9
Requires-Dist: tiktoken>=0.5.0
Requires-Dist: typer>=0.16.0
Requires-Dist: ucp-sdk<0.6,>=0.5.0
Requires-Dist: urllib3>=2.6.3
Requires-Dist: websockets>=13
Provides-Extra: a2a
Requires-Dist: a2a-sdk[all]<0.4.0,>=0.3.0; extra == 'a2a'
Requires-Dist: fasta2a<2.2,>=2.1.1; extra == 'a2a'
Provides-Extra: a2ui
Requires-Dist: a2ui-agent-sdk<0.13,>=0.12.0; extra == 'a2ui'
Requires-Dist: a2ui-core<0.8,>=0.7.0; extra == 'a2ui'
Provides-Extra: acp
Requires-Dist: agent-client-protocol>=0.7.1; extra == 'acp'
Provides-Extra: agent-sudo
Requires-Dist: agent-sudo>=0.4.0rc14; extra == 'agent-sudo'
Provides-Extra: all
Requires-Dist: agent-runtimes[a2a,a2ui,acp,anthropic,aws,cli,durable,google,memory,openai,ui]; extra == 'all'
Provides-Extra: anthropic
Requires-Dist: anthropic<3.0.0,>=1.15.0; extra == 'anthropic'
Requires-Dist: pydantic-ai-slim[anthropic]<3,>=2.77; extra == 'anthropic'
Provides-Extra: aws
Requires-Dist: boto3<2,>=1.42.96; extra == 'aws'
Requires-Dist: pydantic-ai-slim[bedrock]<3,>=2.77; extra == 'aws'
Provides-Extra: chat
Requires-Dist: jupyter-nbmodel-client; extra == 'chat'
Requires-Dist: keyring>=24.0.0; extra == 'chat'
Requires-Dist: pillow; extra == 'chat'
Requires-Dist: prompt-toolkit>=3.0.0; extra == 'chat'
Requires-Dist: requests; extra == 'chat'
Requires-Dist: rich>=13.0.0; extra == 'chat'
Requires-Dist: textual; extra == 'chat'
Provides-Extra: cli
Requires-Dist: ag-ui-protocol<1,>=0.1.19; extra == 'cli'
Requires-Dist: agent-client-protocol>=0.7.1; extra == 'cli'
Requires-Dist: build; extra == 'cli'
Requires-Dist: hatchling; extra == 'cli'
Requires-Dist: jupyter-nbmodel-client; extra == 'cli'
Requires-Dist: keyring>=24.0.0; extra == 'cli'
Requires-Dist: pillow; extra == 'cli'
Requires-Dist: prompt-toolkit>=3.0.0; extra == 'cli'
Requires-Dist: requests; extra == 'cli'
Requires-Dist: rich>=13.0.0; extra == 'cli'
Requires-Dist: textual; extra == 'cli'
Provides-Extra: docs
Requires-Dist: npdoc-to-md>=2.0.1; extra == 'docs'
Requires-Dist: pydoc-markdown>=4.0; extra == 'docs'
Provides-Extra: durable
Requires-Dist: dbos; extra == 'durable'
Requires-Dist: pydantic-ai-slim[dbos]<3,>=2.77; extra == 'durable'
Provides-Extra: examples
Requires-Dist: fastapi>=0.116.1; extra == 'examples'
Requires-Dist: pydantic>=2.11.7; extra == 'examples'
Requires-Dist: scikit-learn>=1.7.1; extra == 'examples'
Requires-Dist: streamlit>=1.47.1; extra == 'examples'
Requires-Dist: torch; extra == 'examples'
Requires-Dist: uvicorn; extra == 'examples'
Provides-Extra: google
Requires-Dist: google-api-core>=2.30.3; extra == 'google'
Requires-Dist: google-auth>=2.52.0; extra == 'google'
Requires-Dist: pydantic-ai-slim[google]<3,>=2.77; extra == 'google'
Provides-Extra: langchain
Requires-Dist: langchain-core<2,>=1.0.0; extra == 'langchain'
Provides-Extra: langgraph
Requires-Dist: langchain-core<2,>=1.0.0; extra == 'langgraph'
Requires-Dist: langgraph<2,>=1.0.0; extra == 'langgraph'
Provides-Extra: llamaindex
Requires-Dist: llama-index-core<0.15,>=0.14.0; extra == 'llamaindex'
Provides-Extra: logfire
Requires-Dist: logfire-api>=5.1.1; extra == 'logfire'
Requires-Dist: logfire>=5.1.1; extra == 'logfire'
Provides-Extra: memory
Requires-Dist: mem0ai>=2.0.1; extra == 'memory'
Requires-Dist: psycopg[binary,pool]>=3.2.8; extra == 'memory'
Provides-Extra: openai
Requires-Dist: openai<4.0.0,>=2.29.0; extra == 'openai'
Requires-Dist: pydantic-ai-slim[openai]<3,>=2.77; extra == 'openai'
Provides-Extra: test
Requires-Dist: agent-runtimes[a2a,a2ui,aws,cli,memory,openai]; extra == 'test'
Requires-Dist: cfn-lint>=1.20; extra == 'test'
Requires-Dist: coverage>=7.9.2; extra == 'test'
Requires-Dist: faiss-cpu>=1.8; extra == 'test'
Requires-Dist: hatchling; extra == 'test'
Requires-Dist: jiwer>=4.0.0; extra == 'test'
Requires-Dist: matplotlib; extra == 'test'
Requires-Dist: mypy>=1.16.1; extra == 'test'
Requires-Dist: pandas; extra == 'test'
Requires-Dist: pytest-asyncio>=1.1.0; extra == 'test'
Requires-Dist: pytest-cov>=6.2.1; extra == 'test'
Requires-Dist: pytest-jupyter>=0.10.1; extra == 'test'
Requires-Dist: pytest-tornasync; extra == 'test'
Requires-Dist: pytest>=8.4.1; extra == 'test'
Requires-Dist: python-dotenv>=1.1.1; extra == 'test'
Requires-Dist: types-requests>=2.32.4; extra == 'test'
Requires-Dist: typing-extensions>=4.15.0; extra == 'test'
Provides-Extra: ui
Requires-Dist: ag-ui-protocol<1,>=0.1.19; extra == 'ui'
Requires-Dist: agent-client-protocol>=0.7.1; extra == 'ui'
Requires-Dist: mcp-ui-server<1.1.0,>=1.0.0; extra == 'ui'
Provides-Extra: voice
Requires-Dist: faster-whisper<2,>=1.2.1; extra == 'voice'
Requires-Dist: kokoro-onnx<0.7,>=0.6.1; extra == 'voice'
Requires-Dist: sounddevice>=0.5.0; extra == 'voice'
Description-Content-Type: text/markdown

<!--
  ~ Copyright (c) 2025-2026 Datalayer, Inc.
  ~
  ~ BSD 3-Clause License
-->

[![Datalayer](https://images.datalayer.io/legacy/datalayer-25.svg)](https://datalayer.ai)

[![Become a Sponsor](https://img.shields.io/static/v1?label=Become%20a%20Sponsor&message=%E2%9D%A4&logo=GitHub&style=flat&color=1ABC9C)](https://github.com/sponsors/datalayer)

# 🤖 🚀 Agent Runtimes

[![Github Actions Status](https://github.com/datalayer/agent-runtimes/actions/workflows/build.yaml/badge.svg)](https://github.com/datalayer/agent-runtimes/actions/workflows/build.yaml)
[![PyPI - Version](https://img.shields.io/pypi/v/agent-runtimes)](https://pypi.org/project/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](https://agentspecs.datalayer.tech) (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 Agent workspace) and a terminal, `agent`. 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](https://datalayer.ai) runtimes.

![The examples gallery: a card for each example, by protocol, chat component, agent and tool](https://images.datalayer.io/products/agent-runtimes/agent-runtimes-examples-1.png)

## Install

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

## Quickstart

```bash
export ANTHROPIC_API_KEY=...              # or OPENAI_API_KEY, or AWS Bedrock credentials
agent --local -a chat-agent               # a local server with the chat-agent agent, and a chat in the terminal
agent sessions ls                         # your sessions, each by its address <agent>:<session>
agent --resume <agent>:<session>          # go on with one of them
agent-runtimes serve local: --port 8765   # the server alone, for the web components

# From a checkout, the examples gallery:
npm install && pip install -e .
make examples                             # the local server on :8765 and the gallery on :3000
```

## Documentation

Everything else is on the documentation site, **[agent-runtimes.datalayer.tech](https://agent-runtimes.datalayer.tech)**:

- [Features](https://agent-runtimes.datalayer.tech/features/): what the runtime does, area by area.
- [Agents](https://agent-runtimes.datalayer.tech/agents/): an agent spec or a Python `app.py` run, deployed at its address and embedded in a page; [the examples](https://agent-runtimes.datalayer.tech/agents/examples).
- [Sessions](https://agent-runtimes.datalayer.tech/sessions/): several sessions on one agent, local or on Datalayer, resumed, forked, exported and imported.
- [Harnesses](https://agent-runtimes.datalayer.tech/harnesses/) and [the Shield](https://agent-runtimes.datalayer.tech/shield/): Claude Code, Codex, OpenCode and pi over ACP, inside the boundary, the rules, the audit and the trace.
- [Protocols](https://agent-runtimes.datalayer.tech/protocols/): AG-UI, the Vercel AI SDK, ACP, A2A, A2UI, MCP-UI, MCP and the agent protocols.
- [Programmatic Tools](https://agent-runtimes.datalayer.tech/programmatic-tools/): MCP servers, skills, the code sandbox and Codemode.
- [Identity](https://agent-runtimes.datalayer.tech/identity/) and [Hooks](https://agent-runtimes.datalayer.tech/hooks/): guardrails, tool approvals, budgets, monitoring and OpenTelemetry.
- [Chat](https://agent-runtimes.datalayer.tech/chat/): the React chat components, the floating assistant, voice and presence.
- [Subagents](https://agent-runtimes.datalayer.tech/subagents/), [Scenes](https://agent-runtimes.datalayer.tech/scenes/) and [Agent Nodes](https://agent-runtimes.datalayer.tech/agent-nodes/).
- [CLI](https://agent-runtimes.datalayer.tech/cli/), [endpoints](https://agent-runtimes.datalayer.tech/endpoints/), [agentspecs](https://agent-runtimes.datalayer.tech/agentspecs/), [integrations](https://agent-runtimes.datalayer.tech/integrations/) and [plugins](https://agent-runtimes.datalayer.tech/plugins/).

## License

[BSD 3-Clause](LICENSE).
