Fastapicloud Deploy logo

Fastapicloud Deploy

Organization
fastapicloud
fastapicloud-deploy

Prepare and deploy FastAPI apps to FastAPI Cloud. Use when the user asks to deploy a project, create, link, or update a FastAPI Cloud app, log in before deployment, set up CI/CD, a GitHub Actions deploy workflow, or GitHub-linked auto-deploys, manage deploy tokens, validate deployment inputs, inspect app IDs, review `.fastapicloudignore`, or update commands that invoke `fastapi deploy` or `fastapi cloud deploy`.

Overview

Publisherfastapicloud
Repositoryskills
Skill namefastapicloud-deploy
Stars
29
Forks
0
Bundled files
1
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 1 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by fastapicloud on GitHub. Read the source before you install it.

Installation

Install the Fastapicloud Deploy AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/fastapicloud/skills/tree/main/fastapicloud-deploy
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/fastapicloud/skills.git /tmp/skills
mkdir -p .claude/skills
cp -r /tmp/skills/fastapicloud-deploy .claude/skills/fastapicloud-deploy
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Fastapicloud Deploy in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Fastapicloud Deploy on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Fastapicloud Deploy is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

FastAPI Cloud Deploy

Overview

Deploy a local FastAPI project to FastAPI Cloud.

CLI Baseline

Assume the released project CLI is correct and start with the fastapi cloud ... command needed for the task, such as:

bash
uv run fastapi cloud deploy --help

Only check the CLI version after a uv run fastapi cloud ... command fails because fastapi, cloud, or the requested subcommand is missing, or because the output suggests an incompatible CLI:

bash
uv run fastapi cloud --version
uv run fastapi cloud --help

If fastapi is missing or the cloud command surface is stale, install or update fastapi[standard]; do not install fastapi-cli directly as the executable source. The fastapi[standard] extra provides the fastapi command and the FastAPI Cloud CLI integration. These commands change project files, so ask the user before running them in an existing project.

bash
uv add -U "fastapi[standard]"
uv lock --upgrade-package fastapi --upgrade-package fastapi-cloud-cli

If there is no project environment, create a temporary uv project and install the same dependency constraints before checking the command surface.

If the project cloud CLI reports a version older than 0.21.0, update the project environment before retrying.

JSON Output

Use --json whenever the command supports it. Parse stdout directly as the CLI's structured JSON envelope; treat other stdout as an incompatible or stale command surface.

Workflow

Inspect the project:

bash
rg --files -g 'pyproject.toml' -g '.fastapicloud/**' -g '.fastapicloudignore' -g '.gitignore'
uv run fastapi cloud deploy --help

Check auth and linked app state:

bash
uv run fastapi cloud whoami --json
uv run fastapi cloud apps get --json

If auth is missing or stale, ask before starting the login flow. If the project is not linked, inspect apps first; create or link only when the user asks.

Authentication

Prefer the JSON device flow over plain login output:

bash
uv run fastapi cloud auth login --no-open --json

Surface the returned verification_uri_complete or verification_uri plus user_code to the user. Then wait with the returned device_code:

bash
uv run fastapi cloud auth wait --device-code DEVICE_CODE --interval 5 --timeout 300 --json

Deploy only after the user has requested deployment:

bash
uv run fastapi cloud deploy . --json

Use --app-id APP_ID or FASTAPI_CLOUD_APP_ID for a specific target. --json deploy output implies non-waiting behavior; for non-JSON deploy commands, use --no-wait only when the user wants the command to return before the deployment reaches a terminal state.

Check Deployment Status

After a non-waiting deploy, use the returned deployment ID to check progress:

bash
uv run fastapi cloud deployments get DEPLOYMENT_ID --app-id APP_ID --json

Inspect data.deployment.status. Successful submission is not deployment success. Unless the user requested submission only, continue checking until the deployment reaches a terminal state; report an in-progress status if you cannot establish completion.

With CLI 0.26.0 or newer, data.deployment.failure contains backend build-failure guidance when available: error_code, error_title, error_message, and error_hint. Surface the title, message, and any non-empty hint before investigating further. If guidance is absent or more detail is needed, use the fastapicloud-logs workflow:

bash
uv run fastapi cloud deployments build-logs DEPLOYMENT_ID --no-follow --json

Parse stdout even if this command exits with code 1: a failed build can still return a valid JSON result containing logs and failure guidance. Deployment inspection requires a logged-in user session; a CI deploy token alone cannot authenticate these read commands.

App Creation, Linking, And Updates

Use read commands before write commands:

bash
uv run fastapi cloud teams list --json
uv run fastapi cloud apps list --team-id TEAM_ID --json
uv run fastapi cloud apps create --team-id TEAM_ID --name APP_NAME --link --path . --json
uv run fastapi cloud link APP_ID --path . --json

For a monorepo app, pass --directory DIRECTORY to apps create. This is the app's relative directory containing pyproject.toml; --path is the local directory where linking writes configuration.

Read the app before changing its configured directory. apps update requires CLI 0.22.0 or newer:

bash
uv run fastapi cloud apps get APP_ID --json
uv run fastapi cloud apps update APP_ID --directory DIRECTORY --json

Only update app metadata when the user asks. link writes .fastapicloud/cloud.json; use --force only when replacing a known stale link.

CI And Deploy Tokens

For non-interactive deploys (CI/CD), authenticate with a deploy token instead of the device flow. These commands require CLI 0.21.0 or newer. Read before mutating:

bash
uv run fastapi cloud tokens list --app-id APP_ID --json

Create or delete tokens only when the user asks. tokens create returns the secret value once — write it to a file with --output-file or capture it directly into a CI secret; never echo it in chat or shell history. Use --expires-in-days N to bound its lifetime:

bash
uv run fastapi cloud tokens create --app-id APP_ID --name NAME --output-file PATH --json
uv run fastapi cloud tokens delete TOKEN_ID --app-id APP_ID --json

GitHub Actions

Preview the generated workflow first; print-workflow is read-only and writes no files or secrets:

bash
uv run fastapi cloud ci print-workflow --json
uv run fastapi cloud ci print-workflow --branch BRANCH

ci setup is a mutating convenience: it writes .github/workflows/deploy.yml and sets the FASTAPI_CLOUD_TOKEN and FASTAPI_CLOUD_APP_ID GitHub Actions secrets via the gh CLI (creating a deploy token in the process). Run it only when the user asks; first confirm git and gh are installed and the repo has an origin remote, then surface what it will change:

bash
uv run fastapi cloud ci setup

FastAPI Cloud also supports native GitHub deployments — linking a repository so pushes deploy automatically. This is not available through the CLI yet; tell the user to set it up from their app's settings in the FastAPI Cloud dashboard.

Deployment Inputs

  • Ensure the project has a pyproject.toml with FastAPI dependencies.
  • Inspect .fastapicloudignore and .gitignore before deploy if large files or secrets may be included.
  • Keep access tokens in environment variables or CI secrets, not source files. App IDs may be passed explicitly with --app-id when needed.
  • After deploy, report the deployment ID/status and next diagnostic command if available.

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Fastapicloud Deploy AI skill do?

Prepare and deploy FastAPI apps to FastAPI Cloud. Use when the user asks to deploy a project, create, link, or update a FastAPI Cloud app, log in before deployment, set up CI/CD, a GitHub Actions deploy workflow, or GitHub-linked auto-deploys, manage deploy tokens, validate deployment inputs, inspect app IDs, review `.fastapicloudignore`, or update commands that invoke `fastapi deploy` or `fastapi cloud deploy`.

Why use Fastapicloud Deploy on TypingMind?

Because you install it once and use it with any model. Fastapicloud Deploy is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Fastapicloud Deploy in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/fastapicloud/skills/tree/main/fastapicloud-deploy. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Fastapicloud Deploy?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Fastapicloud Deploy?

As many as you like. As long as a model supports skills, you can use Fastapicloud Deploy with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Fastapicloud Deploy AI skill free?

Yes. It is published on GitHub by fastapicloud under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇