connecting-streamlit-to-snowflake

Connect Streamlit apps to Snowflake using st.connection and secrets.toml.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/n-elia/barbarapp --skill connecting-streamlit-to-snowflake
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: connecting-streamlit-to-snowflake
Source: https://github.com/n-elia/barbarapp/tree/main/.skills/developing-with-streamlit/skills/connecting-streamlit-to-snowflake
Command: npx skills add https://github.com/n-elia/barbarapp --skill connecting-streamlit-to-snowflake

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill simplifies connecting Streamlit apps to Snowflake, enabling secure access to data sources, streamlined credential management, and straightforward querying from within a UI.

Core Features & Use Cases

  • Unified connections: Manage multiple Snowflake connections and secrets from a Streamlit app.
  • Secure credentials: Use st.secrets and .streamlit/secrets.toml to store credentials safely.
  • Query and write data: Execute SQL queries and write results directly from Streamlit interfaces.
  • Use Case: Build dashboards that show live Snowflake data with per-user access control using caller's rights when needed.

Quick Start

Configure a Streamlit app to connect to Snowflake by defining st.connection("snowflake"), storing credentials in .streamlit/secrets.toml, and running the app to fetch and display results.

Frequently Asked Questions about connecting-streamlit-to-snowflake

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

FAQPage Schema
How do I connect Streamlit to a Snowflake database?

Yes, you can manage multiple Snowflake connections in Streamlit by defining them in your .streamlit/secrets.toml file. This allows you to securely query and write data across different Snowflake databases from a single Streamlit application interface.

How do I securely store Snowflake credentials in a Streamlit app?

You can securely store Snowflake credentials in a Streamlit app by using st.secrets and placing your connection details in a .streamlit/secrets.toml configuration file. This prevents hardcoding sensitive information directly in your application code.

Do I need a secrets.toml file to query Snowflake from Streamlit?

This approach supports building data dashboards with live Snowflake data and per-user access control using caller's rights. It is suitable for multi-tenant Snowflake access within Streamlit apps, allowing you to execute SQL queries and write results directly from the interface.

Can I build a multi-tenant Streamlit dashboard with Snowflake access control?

Yes, you can build multi-tenant Streamlit dashboards with Snowflake access control using caller's rights. This approach enables secure data querying and per-user access management within your Streamlit application interface using st.connection and st.secrets.