Python module and CLI for interacting with Pipecat Cloud.
- Python 3.10+
- Docker and a Docker repository (e.g. Docker Hub)
- Active Pipecat Cloud account
Documentation for Pipecat Cloud is available here.
pip install pipecatcloud
pcc --version
pcc --help
# Note: you can use `pcc` or `pipecatcloud` interchangeably
pcc auth login! All CLI commands have a --help flag that will display the command usage and options.
-
Create an account at Pipecat Cloud
-
Login to your account
pcc auth login -
(Optional): Clone the quickstart repo here
-
Build your agent
docker build --platform linux/arm64 -t your-agent-name . -
Push your Docker image to your repository
docker push your-repository/your-agent-name:0.1 -
Deploy your agent
pcc deploy starter-agent your-repository/your-agent-name:0.1
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())-
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