---
title: Action Gateway PyDo SDK Reference (public)
description: PyDo modules for finding and running Action Gateway tools, executing code, and deciding pending approvals in a session from Python.
product: Managed Agents
url: https://docs.digitalocean.com/products/managed-agents/action-gateway/reference/pydo/
last_updated: "2026-11-11"
---

> **For AI agents:** The documentation index is at [https://docs.digitalocean.com/llms.txt](https://docs.digitalocean.com/llms.txt). Markdown versions of pages use the same URL with `index.html.md` in place of the HTML page (for example, append `index.html.md` to the directory path instead of opening the HTML document).

# Action Gateway PyDo SDK Reference (public)

Action Gateway connects applications and AI agents to tools through a managed MCP endpoint or SDK, with the accounts and permissions you choose. See [What You Can Build](https://docs.digitalocean.com/products/managed-agents/action-gateway/details/what-you-can-build/index.html.md) for standalone agent examples.

[PyDo](https://github.com/digitalocean/pydo) is the official DigitalOcean Python client library. Install it with `pip install pydo`.

The Action Gateway modules are:

- [Approvals](https://docs.digitalocean.com/reference/pydo/reference/gateway_approvals/index.html.md): Decide a pending approval, identifying the session by header.
- [Code](https://docs.digitalocean.com/reference/pydo/reference/gateway_code/index.html.md): Execute code in a session.
- [Session Approvals](https://docs.digitalocean.com/reference/pydo/reference/gateway_session_approvals/index.html.md): Decide a pending approval for a session.
- [Tools](https://docs.digitalocean.com/reference/pydo/reference/gateway_tools/index.html.md): List, search, and invoke the tools a session can call.

For install instructions and quickstart examples, see [PyDo](https://docs.digitalocean.com/reference/pydo/index.html.md).