Deploy to Posit Connect
A staged playbook for deploying Python and R apps, APIs, documents, and scripts to a Posit Connect server with the right rsconnect commands.
Dev & CodingIntermediate★ 530⑂ 54AI score 8/10Last updated: Oct 7, 2026
What it does
- Detects the content type and framework from project files (
app.py,app.R,plumber.R,*.qmd,*.Rmd,*.ipynb,manifest.json, bare scripts). - Inventories available tooling (
rsconnect,uv,Rscript, the Rrsconnectpackage,quarto) and picks the best deployment route. - Runs
rsconnect deploy <framework>for Python,deployApp()/deployDoc()/deploySite()for R, and falls back to themanifest.jsonroute when R is unavailable. - Closes gaps in order: install tooling, generate a manifest, add script front matter, register a new server.
- Defaults to browser/OAuth login and explicitly forbids scavenging API keys from env vars,
.envfiles, or keychains. - Triages common failures: auth errors, the
-nvsCONNECT_SERVERconflict, missingrequirements.txt, self-signed TLS, missing server-side Quarto/Jupyter/rmarkdown.
Who it's for
- Data scientists and analysts publishing Shiny, Streamlit, Dash, Plumber, or Quarto content to Posit Connect.
- Engineers automating deploys in CI or headless shells who don't want to re-read rsconnect flags each time.
- Teams with mixed R and Python projects targeting one Connect server.
Examples
- "Deploy this Streamlit app to dogfood" → confirm framework →
rsconnect listto verify the account →rsconnect deploy streamlit ./my-app -t "Title". - "No R installed but I need this Shiny app up" → check for
manifest.json, deploy withrsconnect deploy manifest ./manifest.json, or report the blocker clearly. - "Schedule this Python ETL script on Connect" → add the
# %% [markdown]front matter with atitle, thenrsconnect deploy quarto script.py.
· · · Install guide · · ·
Try it now, no install
Paste this into Claude to use the skill without installing anything.
Read the instructions in this file and follow them to help me: https://raw.githubusercontent.com/posit-dev/skills/HEAD/connect/deploy-to-connect/SKILL.md What I want: (describe your task here)
If Claude can't open the link, open it yourself and paste the contents instead.
↓ If it works for you, download the ZIP below and install it. Then it runs on its own — no pasting each time.
Install in the Claude app (no terminal)
- Download the ZIP with the button below.
- In Claude, open Settings → Capabilities and turn on 'Code execution and file creation'. (one time)
- Go to Customize → Skills → + → 'Upload a skill' and upload the ZIP.
Install in Claude Code
Let Claude do it — paste this into Claude Code
Install the skill I found on Claude Skill Mart. Copy the connect/deploy-to-connect folder from the GitHub repo posit-dev/skills into my ~/.claude/skills/deploy-to-connect/. When it's done, tell me in one line what this skill can do.
Install with a command instead
git clone https://github.com/posit-dev/skills.git /tmp/posit-skills && mkdir -p ~/.claude/skills/deploy-to-connect && cp -r /tmp/posit-skills/connect/deploy-to-connect/* ~/.claude/skills/deploy-to-connect/⚠ This is a third-party skill. Check the source repository before installing.
- Open a terminal.
- Clone the skills repo:
git clone https://github.com/posit-dev/skills.git /tmp/posit-skills - Create the skill folder:
mkdir -p ~/.claude/skills/deploy-to-connect - Copy the files:
cp -r /tmp/posit-skills/connect/deploy-to-connect/* ~/.claude/skills/deploy-to-connect/ - Restart Claude Code, then ask something like "deploy this app to Posit Connect" to trigger the skill.
- (Recommended) Pre-install the tooling:
uv tool install rsconnect-pythonfor Python, orinstall.packages("rsconnect")in R. - For a new server, log in first with
rsconnect login https://connect.example.comso no API key ever enters the chat.
View source on GitHub ↗License: MIT