Logo Deploy

Deploy

Tổ chức
pipecat-ai
deploy

Deploy an agent to Pipecat Cloud

Tổng quan

Nhà phát hànhpipecat-ai
Kho mãskills
Tên kỹ năngdeploy
Sao
29
Bản fork
5
Tệp đi kèm
Chỉ có hướng dẫn
Giấy phépBSD-2-Clause
Liên kết
  • Hướng dẫn bằng Markdown

    Tệp SKILL.md được mô hình tải khi cần, nên chỉ tốn token khi có yêu cầu thực sự phù hợp.

  • Dùng được với mọi LLM

    Kỹ năng AI là Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên dùng được với GPT, Claude, Gemini, Grok hoặc mô hình cục bộ.

  • Đầy đủ trong hướng dẫn

    Mọi thứ mô hình cần đều nằm trong hướng dẫn — không có tệp bổ sung cần đồng bộ.

  • Mã nguồn mở

    Được pipecat-ai công bố trên GitHub. Hãy đọc nội dung nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Deploy trong TypingMind để dùng với bất kỳ LLM nào, hoặc thêm vào một tác nhân AI khác có thể đọc SKILL.md.

1

Cài đặt trong TypingMind

TypingMind cài đặt kỹ năng trực tiếp từ thư mục GitHub — đọc SKILL.md, đóng gói các tệp tài nguyên và lưu kết quả trên máy.

  1. Mở ứng dụng và vào Plugin → Kỹ năng.
  2. Chọn "Cài đặt từ GitHub".
  3. Dán URL thư mục kỹ năng bên dưới và xác nhận.
    https://github.com/pipecat-ai/skills/tree/main/skills/deploy
  4. Bật kỹ năng trong từng cuộc trò chuyện mà bạn muốn sử dụng kỹ năng đó.
Plugin → Kỹ năng → Thêm kỹ năng → Từ URL GitHub, sau đó dán URL thư mục và nhấn Tiếp tục.
2

Cài đặt trong tác nhân AI khác

Bất kỳ tác nhân AI nào đọc được định dạng Agent Skills đều có thể dùng kỹ năng này — hãy sao chép thư mục vào thư mục kỹ năng của tác nhân AI đó.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/pipecat-ai/skills.git /tmp/skills
mkdir -p .claude/skills
cp -r /tmp/skills/skills/deploy .claude/skills/deploy
Khởi động lại Claude Code sau khi sao chép để ứng dụng nhận kỹ năng mới.

Sử dụng trong TypingMind

Bật Deploy trong bất kỳ cuộc trò chuyện nào trên TypingMind, mô hình sẽ tự xử lý phần còn lại. Tên và mô tả của kỹ năng nằm trong prompt hệ thống. Ngay khi có yêu cầu phù hợp, mô hình tự tải toàn bộ hướng dẫn — bạn không cần gọi thủ công và kỹ năng không tốn token cho đến khi thực sự được dùng.

Mô hình tự tải Deploy ngay khi có yêu cầu phù hợp.

Dùng được với mọi mô hình AI

Kỹ năng AI là các hướng dẫn Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên Deploy không bị giới hạn ở mô hình mà kỹ năng này được viết cho. Chỉ cần cài đặt một lần trong TypingMind rồi dùng với GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama hoặc mô hình cục bộ do bạn tự chạy — tất cả đều dùng khóa API của riêng bạn.

  • Chỉ tải khi cần

    Prompt hệ thống chỉ chứa tên và mô tả. Hướng dẫn được tải khi có yêu cầu phù hợp đầu tiên, nên kỹ năng chưa dùng không tốn chi phí.

  • Đổi mô hình ngay trong cuộc trò chuyện

    Vì kỹ năng là hướng dẫn chứ không phải mã, việc đổi mô hình không làm kỹ năng ngừng hoạt động — mô hình tiếp theo vẫn đọc cùng tệp SKILL.md.

Hướng dẫn của kỹ năng

Đây là nội dung SKILL.md mà mô hình tải. Hãy đọc trước khi cài đặt — kỹ năng là những hướng dẫn mà mô hình của bạn sẽ làm theo.

Deploy an agent to Pipecat Cloud. This skill walks through the full deployment process interactively, confirming each step with the user.

Arguments

/deploy [--config <PATH>] [--env <PATH>]
  • --config (optional): Path to pcc-deploy.toml. Defaults to pcc-deploy.toml in the current directory.
  • --env (optional): Path to .env file for creating secrets. If not provided, the skill will look for a .env file in the same directory as the config file.

Examples:

  • /deploy
  • /deploy --config examples/mybot/pcc-deploy.toml
  • /deploy --config examples/mybot/pcc-deploy.toml --env examples/mybot/.env

Prerequisites

Before starting, verify these prerequisites and inform the user about any that are missing:

  1. Pipecat CLI: Check if pipecat is installed by running pipecat --version. If not installed, tell the user to install it with uv tool install pipecat-ai-cli and stop.

  2. Pipecat Cloud authentication: Check if pipecat cloud auth whoami succeeds. If not authenticated, do not try to run login yourself — pipecat cloud auth login opens a browser for an OAuth flow that Claude can't complete. Instead, tell the user to authenticate by running pipecat cloud auth login in their terminal (suggest the ! pipecat cloud auth login form so the output lands in the session). Wait for them to confirm, then re-run pipecat cloud auth whoami to verify before proceeding.

  3. Configuration file: Read the pcc-deploy.toml file (from --config argument or current directory). If it doesn't exist, tell the user they need a pcc-deploy.toml and stop. Parse and display the configuration to the user (agent_name, image, secret_set, etc.).

If any prerequisite fails, stop and clearly explain what needs to be fixed. Do not proceed to the next steps.

Deployment Method

After prerequisites pass, ask the user how they want to deploy using AskUserQuestion:

  • Cloud Build (Recommended): Pipecat Cloud builds your Docker image from source. No local Docker required.
  • Self-managed image: Build and push your own Docker image from your machine, then deploy.

Important: Running Commands

All pipecat cloud commands must be run from the directory containing the pcc-deploy.toml file. Use cd <dir> && <command> to ensure the correct working directory.

Several pipecat cloud commands prompt for interactive confirmation which doesn't work in this environment. Skip the prompts with these flags:

  • pipecat cloud deploy: Use --force (e.g., pipecat cloud deploy --force)
  • pipecat cloud secrets set: Use the --skip flag (e.g., pipecat cloud secrets set NAME --file .env --skip)

pipecat cloud docker build-push runs non-interactively and has no confirmation prompt, so no extra flag is needed.


Cloud Build Path

This path uses Pipecat Cloud to build your Docker image from source. No local Docker installation is required.

Step 1: Verify Dockerfile and Lockfile

Check that a Dockerfile exists in the build context directory (the directory containing pcc-deploy.toml, or the context_dir from the [build] section of the config). If no Dockerfile is found, tell the user they need one and stop.

If the Dockerfile references uv (e.g., uv sync, uv pip install, COPY uv.lock), check that a uv.lock file exists in the build context directory. If it doesn't exist, run uv lock to generate it. If it already exists, run uv lock to ensure it's up to date. The lockfile must be present and current because cloud builds run remotely and cannot generate it.

Step 2: Secrets Setup

Ask the user if they need to create or update secrets for this deployment.

  • If yes, determine the env file path (from --env argument, or look for .env in the same directory as the config file, or ask the user).

  • Read the secret_set name from the pcc-deploy.toml configuration.

  • Run: pipecat cloud secrets set {SECRET_SET_NAME} --file {ENV_FILE_PATH} --skip

  • Show the output to the user.

  • If no, skip this step.

Step 3: Deploy

Ask the user to confirm they want to deploy the agent.

  • Show a summary of what will be deployed (agent_name, secret_set from the config).
  • Run from the config directory: pipecat cloud deploy --force
  • Use a generous timeout (10 minutes) as the cloud build and deployment can take a while.
  • This command handles both the cloud build and the deployment automatically.
  • If the command times out but no error occurred, retrieve the build ID from the command output and run pipecat cloud build logs {BUILD_ID} to check build progress. Share the output with the user.
  • If the build succeeds but deployment times out, check agent logs with pipecat cloud agent logs {AGENT_NAME} and share with the user.
  • Show the deployment output and status to the user.

Cloud Build Error Handling

  • If the build fails, retrieve the build ID from the command output and run pipecat cloud build logs {BUILD_ID} to show the user what went wrong.
  • Common cloud build issues:
    • Missing or invalid Dockerfile
    • Build context too large (500MB limit) — check for large files that should be in .dockerignore
    • Build timeout — the build exceeded the maximum duration

Self-Managed Image Path

This path builds and pushes the Docker image from your machine. Requires Docker to be installed and running.

Step 1: Docker Prerequisites

Check these additional prerequisites:

  • Docker: Check if docker info succeeds (daemon running). If not, tell the user to start Docker and stop.
  • Docker login: Check if docker login succeeds. If not logged in, tell the user to run docker login and stop.

Step 2: Secrets Setup

Ask the user if they need to create or update secrets for this deployment.

  • If yes, determine the env file path (from --env argument, or look for .env in the same directory as the config file, or ask the user).

  • Read the secret_set name from the pcc-deploy.toml configuration.

  • Run: pipecat cloud secrets set {SECRET_SET_NAME} --file {ENV_FILE_PATH} --skip

  • Show the output to the user.

  • If no, skip this step.

Step 3: Build and Push Docker Image

Ask the user if they want to build and push the Docker image.

  • If yes:

    • First, check if uv.lock exists in the config directory. If so, run uv lock to ensure it's up to date before building.
    • Run from the config directory: pipecat cloud docker build-push
    • Use a generous timeout (5 minutes) as builds can take a while.
    • If the build fails due to a stale lockfile, run uv lock in the config directory and retry.
    • If the build fails for other reasons, show the error and ask the user how to proceed.
  • If no, skip this step (image may already be pushed).

Step 4: Deploy

Ask the user to confirm they want to deploy the agent.

  • Show a summary of what will be deployed (agent_name, image, secret_set from the config).
  • Run from the config directory: pipecat cloud deploy --force
  • Use a generous timeout (5 minutes) as deployment may take time to reach ready state.
  • If deployment times out but no error occurred, check logs with pipecat cloud agent logs {AGENT_NAME} and share with the user — the deployment may still be starting up.
  • Show the deployment output and status to the user.

Self-Managed Image Error Handling

  • Common issues:
    • Docker not logged in to the image registry (docker login)
    • Missing image field in pcc-deploy.toml
    • Stale uv.lock file — run uv lock to fix

General Error Handling

  • If any pipecat cloud command fails, show the full error output and explain what might have gone wrong.
  • Common issues for both paths:
    • Invalid or expired Pipecat Cloud authentication
    • Missing or malformed pcc-deploy.toml
    • Secret set name mismatch between config and what exists in Pipecat Cloud

Completion

After a successful deployment, summarize what was done:

  • Deployment method used (cloud build or self-managed image)
  • Secrets created/updated (if applicable)
  • Image built and pushed (if applicable)
  • Agent deployed with name from config

Câu hỏi thường gặp

Kỹ năng AI Deploy làm được gì?

Deploy an agent to Pipecat Cloud

Vì sao nên dùng Deploy trên TypingMind?

Vì bạn chỉ cần cài một lần rồi dùng với bất kỳ mô hình nào. Deploy là nội dung Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên cùng một kỹ năng có thể chạy trên GPT-5, Claude, Gemini, Grok hoặc mô hình trên thiết bị — và bạn có thể đổi mô hình ngay trong cuộc trò chuyện mà kỹ năng vẫn hoạt động. TypingMind dùng khóa API riêng của bạn, nên bạn thanh toán trực tiếp cho nhà cung cấp thay vì trả phí thuê bao theo suất người dùng, đồng thời kỹ năng và các cuộc trò chuyện vẫn nằm trong bộ lưu trữ của bạn.

Làm thế nào để cài Deploy trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/pipecat-ai/skills/tree/main/skills/deploy. TypingMind đọc tệp SKILL.md và cài đặt thành một kỹ năng mà bạn có thể bật cho từng cuộc trò chuyện.

Những mô hình AI nào có thể dùng Deploy?

Bất kỳ mô hình nào bạn kết nối trong TypingMind. Kỹ năng AI là các hướng dẫn bằng Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên GPT, Claude, Gemini, Grok và các mô hình chạy trên thiết bị đều có thể tải kỹ năng này khi có yêu cầu phù hợp.

Bạn có thể dùng Deploy với bao nhiêu mô hình AI?

Bao nhiêu cũng được. Miễn là mô hình hỗ trợ kỹ năng, bạn có thể dùng Deploy với mô hình đó — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama và nhiều mô hình khác — tất cả đều trên TypingMind với khóa API riêng của bạn.

Kỹ năng AI Deploy có miễn phí không?

Có. Kỹ năng này được pipecat-ai phát hành trên GitHub theo giấy phép BSD-2-Clause. Bạn chỉ trả tiền cho nhà cung cấp AI của mình theo số token đã dùng.

Kỹ năng AI là gì?

Kỹ năng AI là một gói hướng dẫn có thể tái sử dụng, chỉ cho mô hình AI cách thực hiện một tác vụ cụ thể. Kỹ năng tuân theo định dạng mở Agent Skills: một tệp SKILL.md chứa tên và mô tả, cùng các tập lệnh, mẫu hoặc tệp tham khảo mà mô hình có thể cần. Mô hình chỉ đọc hướng dẫn khi yêu cầu của bạn phù hợp với kỹ năng, nên kỹ năng đã cài đặt không phát sinh chi phí cho đến khi được sử dụng.

Kỹ năng AI khác gì với plugin hoặc máy chủ MCP?

Plugin hoặc máy chủ MCP cung cấp cho mô hình các công cụ mới để gọi — mã được chạy ở đâu đó và trả về kết quả. Còn kỹ năng AI cung cấp kiến thức và quy trình: cách tiếp cận tác vụ, các bước cần thực hiện và tiêu chí của đầu ra tốt. Kỹ năng chỉ là nội dung Markdown, nên không cần máy chủ, khóa API hay môi trường thực thi và hoạt động với mọi mô hình.

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇