connecting-streamlit-to-snowflake

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

Updated Feb 19, 2026
One-click install
npx skills add https://github.com/guihousun/NTL-GPT-Clone --skill connecting-streamlit-to-snowflake-guihousun
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: connecting-streamlit-to-snowflake
Source: https://github.com/guihousun/NTL-GPT-Clone/tree/main/skills/developing-with-streamlit/skills/connecting-streamlit-to-snowflake
Command: npx skills add https://github.com/guihousun/NTL-GPT-Clone --skill connecting-streamlit-to-snowflake-guihousun

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Enable Streamlit apps to securely access Snowflake and run queries.

Core Features & Use Cases

  • Connect Streamlit apps to Snowflake using st.connection to establish connections securely.
  • Manage secrets with st.secrets and support multiple connections for different environments.
  • Query Snowflake from a Streamlit app and optionally leverage Cortex for AI-assisted responses.

Quick Start

Connect your Streamlit app to Snowflake using st.connection("snowflake") and start querying data.

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 Snowflake securely?

You can manage multiple Snowflake connections in Streamlit by configuring distinct environment profiles within st.secrets. This allows your Streamlit app to securely switch between different database setups, such as development and production environments, using st.connection.

How do I run parameterized queries from Streamlit to Snowflake?

Run parameterized queries from Streamlit to Snowflake by using st.connection to initiate the session and passing variables safely to your SQL execution method. This prevents SQL injection by separating the query structure from the data values.

Does Streamlit work with Snowflake Cortex for AI-assisted responses?

Yes, Streamlit works with Snowflake Cortex to provide AI-assisted responses. After setting up your database connection with st.connection, you can query Snowflake and optionally leverage Cortex to process and return AI-generated results within your app.

Do I need st.secrets to manage Snowflake credentials in Streamlit?

Yes, you need st.secrets to manage Snowflake credentials in Streamlit for secure local and deployed application environments. It safely stores your connection parameters, ensuring your database access keys are not hardcoded in your repository.