Python module and CLI for interacting with Pipecat Cloud.
- Python 3.11+
- Docker and a Docker repository (e.g. Docker Hub)
- Active Pipecat Cloud account
Documentation for Pipecat Cloud is available here.
The Pipecat Cloud CLI ships as part of the Pipecat CLI — its commands are available under pipecat cloud. Install the Pipecat CLI:
uv tool install pipecat-ai-clipipecat cloud --help
pipecat cloud auth login! All CLI commands have a --help flag that will display the command usage and options.
To use Pipecat Cloud programmatically (without the CLI), install the package directly with uv add pipecatcloud and see Usage in Python scripts.
-
Create an account at Pipecat Cloud
-
Login to your account
pipecat cloud auth login -
Generate secrets
pipecat cloud secrets set -
Build and deploy your agent
pipecat cloud deploy
If want to programmatically start an agent within a Python script, you can use the pipecatcloud.session module.
from pipecatcloud.session import Session
from pipecatcloud.exception import AgentStartError
import asyncio
async def main():
session = Session(
agent_name="your-agent-name",
api_key="pk_...",
)
try:
await session.start()
except AgentStartError as e:
print(e)
except Exception as e:
raise (e)
if __name__ == "__main__":
asyncio.run(main())If pipecat cloud auth login fails with an SSL certificate verification error, your Python
installation may not have access to the macOS system certificate store. This is
common with Python installed via pyenv, conda, or the python.org installer.
To diagnose:
import ssl, sys, os
print(ssl.get_default_verify_paths())
print(os.path.realpath(sys.executable))To fix, install certifi and point Python to its certificates:
pip install certifi
export SSL_CERT_FILE=$(python -c "import certifi; print(certifi.where())")For the python.org installer, you can also run the bundled
Install Certificates.command script found in /Applications/Python X.Y/.
-
Clone the repository and navigate to it:
git clone https://github.com/daily-co/pipecat-cloud.git cd pipecat-cloud -
Install development and testing dependencies:
uv sync --group dev
-
Install the git pre-commit hooks:
uv run pre-commit install
To run all tests, from the root directory:
uv run pytestRun a specific test suite:
uv run pytest tests/test_name.py