managing-streamlit-apps

Create, deploy, and operate Streamlit apps in PostHog via MCP tools.

713|118|Updated Aug 11, 2020
One-click install
npx skills add https://github.com/PostHog/posthog-foss --skill managing-streamlit-apps
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: managing-streamlit-apps
Source: https://github.com/PostHog/posthog-foss/tree/main/products/streamlit_apps/skills/managing-streamlit-apps
Command: npx skills add https://github.com/PostHog/posthog-foss --skill managing-streamlit-apps

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Managing the full lifecycle of Streamlit data apps inside PostHog requires coordinating multiple MCP tool calls in the right order, and mistakes like forgetting to restart after a source update leave apps serving stale code or stuck in error states.

Core Features & Use Cases

  • Full lifecycle management: Create an app, set its Python source, start and stop the sandbox, poll status, list versions, update sizing, and delete apps using the streamlit-apps MCP tools.
  • Troubleshooting guidance: Diagnose error statuses, feature-flag 403 responses, stale code after updates, and query failures with concrete remediation steps.
  • Use Case: A user asks to ship a dashboard app; the Skill walks through creating the app with CPU and memory limits, uploading app.py as version 1, starting the sandbox, polling until running, and sharing the PostHog URL with the team.

Quick Start

Create a Streamlit app named sales-dashboard, set its source code, start it, and give me the link to share with my team.

Frequently Asked Questions about managing-streamlit-apps

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I deploy a Streamlit app in PostHog?

Create the app with streamlit-apps-create, upload the complete app.py source with streamlit-apps-set-source, then call streamlit-apps-start. Poll streamlit-apps-status until it reports running, then share the returned PostHog URL with your team.

How do I update the code of a running Streamlit app?

Call streamlit-apps-set-source again, which creates a new immutable version and activates it while stopping the running sandbox. You must call streamlit-apps-start afterwards to serve the new version, otherwise the app stays stopped.

Why does my Streamlit app show an error status in PostHog?

An error status with a Start failed message means the sandbox failed to provision or boot. Retry streamlit-apps-start once; if it persists, surface the last_error to the user since provisioning failures are usually platform-side.

Can I share a PostHog Streamlit app publicly?

No, there is no public URL. The app renders in an authenticated iframe at its PostHog URL, so viewers must be logged into PostHog with access to the project to see it.

What are the CPU and memory limits for PostHog Streamlit apps?

Apps accept 0.25 to 8 CPU cores and 0.5 to 16 GB of memory, defaulting to 0.5 cores and 1 GB. Note the 256 MB HogQL query bridge cap is server-side and does not increase with sandbox sizing.