Managing Streamlit apps
SkillCloud & inframanaging-streamlit-apps is an agent skill that walks an AI agent through creating, deploying, and operating Streamlit data apps hosted in PostHog. Using the streamlit-apps MCP tools, the agent can create an app, upload its Python source and extra files, start and stop its sandbox, poll until it runs, and share the resulting PostHog URL with humans.
Use Managing Streamlit apps in Claude, ChatGPT or Ahel Desktop
Free. Sign in, add Managing Streamlit apps and connect your AI. About a minute.
Also: Claude Code · Cursor · Codex
Then ask your AI: use the Managing Streamlit apps skill
Details
Instructions available. Your AI can read the instructions. Execution depends on the setup they require.
Account requirements not reviewed. Check the skill instructions before use; ahel provides instructions and does not run this skill.
No other account needed.
Have an agent environment with the streamlit-apps MCP tools available.
What your AI can do with it
- Create a Streamlit app with streamlit-apps-create, optionally setting cpu_cores
- Upload complete app source plus helper files and base64 assets
- Start and stop the app's sandbox and poll streamlit-apps-status until it runs
- List the newest 50 versions with streamlit-apps-versions and update code as new
- Troubleshoot startup errors by reading last_error, and delete apps
- Share the app with humans via its PostHog URL
Getting started
- Have an agent environment with the streamlit-apps MCP tools available.
- Install the managing-streamlit-apps skill so the agent knows the workflow.
- Ask the agent to create a Streamlit app, deploy a data app, or ship a dashboard app.
- The agent creates the app, sets its source, starts the sandbox, polls status, and returns the PostHog URL.
What this skill tells your AI
The instructions your AI receives, as published by posthog/posthog in products/streamlit_apps/skills/managing-streamlit-apps/SKILL.md and read by ahel’s review.
A Streamlit app is a Python data app running in an isolated sandbox inside PostHog.
Each app has immutable versions of its code; one version is active; a sandbox process serves the active version.
The full lifecycle is driven with the streamlit-apps-* MCP tools.
The happy path: create → set source → start → share
streamlit-apps-createwith aname(optionallydescription,cpu_cores0.25–8,memory_gb0.5–16, defaults 0.5 / 1). The app exists but has no code yet.streamlit-apps-set-sourcewith the completeapp.pysource as one string. Extra files ride along in the same call:filesmaps a project-relative path to text (helper modules, CSV, JSON),assetsmaps a path to base64 (Parquet, images). This creates version 1 and activates it. Write the source per thewriting-streamlit-appsskill — in particular useposthog_apps.query()for PostHog data, neverimport posthog.streamlit-apps-start. Returns immediately; the sandbox boots asynchronously.- Poll
streamlit-apps-statusuntilstatusisrunning(typically well under a minute). If it lands onerror, readlast_error— see Troubleshooting below. - Share the app: the
_posthogUrlreturned by create/get/start (/streamlit-apps/{short_id}) is the app's page in PostHog. That link is what you give humans. Viewers need to be logged into PostHog with access to the project (the app renders in an authenticated iframe; there is no public URL).
Whose data the app reads
The app's queries run with the data access of the person who authored the active version — set the source, and the app reads what you can read. Anyone who can view the app sees those results, so treat publishing an app as sharing that data with everyone on the project. An app whose version author has since been deleted can't start; upload a new version to fix it.
Updating code
Call streamlit-apps-set-source again: it creates the next version and activates it.
Every call ships the complete app, so pass files and assets again too; a version holds only what that call carried.
A running sandbox is stopped so it can't keep serving stale code — call streamlit-apps-start afterwards to serve the new version.
Versions are immutable, but not permanent: streamlit-apps-versions lists the newest 50, and non-active versions older than 30 days are deleted along with their code.
There is no rollback tool: to roll back, set the old source, files, and assets again, so a rollback needs a saved copy of the complete bundle.
Fetch that copy from your conversation or wherever it's kept — versions store the zip, not an inline source view.
Stopping, idling, and deleting
streamlit-apps-stopstops the sandbox; code and versions are untouched. Starting again later is cheap.- Idle sandboxes are stopped automatically after a period of no activity — a stopped app is normal, not an error. Start it again when needed.
streamlit-apps-deletestops any sandbox and soft-deletes the app. Confirm with the user before deleting anything you didn't create in this conversation.
Troubleshooting
status: errorwithlast_error: "Start failed: ..."— the sandbox failed to provision or boot. Retrystreamlit-apps-startonce; if it persists, surfacelast_errorto the user (provisioning failures are usually platform-side, not app-side).- Tool calls return 403 "Streamlit apps is not available." — the
streamlit-appsfeature flag is off for this organization. This is a rollout gate, not an error you can fix; tell the user. - App runs but a query inside it fails — that's an app-code concern; see
writing-streamlit-apps(bridge limits: 30s execution, 256 MB memory per query). - App shows old code after set-source — you skipped step "start after set-source"; the sandbox was stopped and needs a start.
Renaming and resizing
streamlit-apps-update changes an app's name, description, cpu_cores (0.25–8), or memory_gb (0.5–16); only the fields you pass change.
New sizing applies the next time the sandbox starts, so stop + start after resizing a running app.
Defaults (0.5 CPU / 1 GB) fit typical dashboard apps.
Raise memory_gb only when the app itself holds large DataFrames in memory — the 256 MB HogQL bridge query cap is server-side and does NOT change with sandbox sizing, so bigger sandboxes don't fix failing queries.
Signals
- GitHub stars
- 40k
- Forks
- 3k
- Last commit
- Sep 2026
Others that do the same job
Questions
- How do I share the app with others?
- Give people the _posthogUrl returned by create/get/start. Viewers must be logged into PostHog with access to the project; the app renders in an authenticated iframe and there is no public URL.
- How do I update the app's code?
- Call streamlit-apps-set-source again with the complete app, including files and assets. It creates and activates a new version; then call streamlit-apps-start to serve it.
Advanced
- Item type
- skill
- Key
managing-streamlit-apps- Source
- github.com/posthog/posthog
Related picks
Skill · wshobson
The pick for Pythonpython-pro
Skill · jeffallan
The pick for Pythonfind-skills
Skill · vercel-labs
More in Cloud & infravercel-react-best-practices
Skill · vercel-labs
More in Cloud & infraturborepo
Skill · vercel
More in Cloud & inframicrosoft-foundry
Skill · microsoft
More in Cloud & infra