Build with AI agents

Streamlit is the agent-native data app framework. Agents build each app in plain, readable Python, and the people accountable for the numbers can review every line. Agents also take part in the rest of the app's life: they verify their own work, update the app as requirements change, and use the finished app as a tool.

smart_toy

Build with coding agents explains how to set up Claude Code, Cursor, Codex, Snowflake CoCo, and other coding agents with Streamlit's bundled expert skills, how to prompt them, and how they verify their work without a browser.

hub

Agent-accessible apps explains how AI agents use your Streamlit app as a tool over MCP or HTTP, through the same logic as the browser and with no more access. Connect your app to Claude, ChatGPT, Cursor, VS Code, Snowflake CoCo, or any MCP client.

  • A compact API that models already know. More than a million public repositories depend on Streamlit, so models have seen many Streamlit apps and know its API well.
  • Expert skills in every release. The bundled agent skills are written by the team that builds Streamlit and match the version you installed, so agents write for the version you actually run.
  • Less code to own, fewer places to break. An app is plain Python, with no frontend, backend, or API contract to write. That's a fraction of the code a custom stack needs, so each app has less to maintain and fewer places to break, and it costs fewer tokens to write and to change.
  • Batteries included. Widgets, charts, data tables, forms, layouts, navigation, state, caching, sign-in, theming, chat, and testing are built in and work together. Agents don't pick a different combination of libraries on every run.
  • Verification without a browser. Agents drive the running app over HTTP and read tables, charts, and metrics back as data. They can also leave behind AppTest tests that run in CI.
  • Stable for years. Breaking changes are extremely rare, so the apps agents build keep running on new releases, and every upgrade makes them better.

A Streamlit app packages the queries, the calculations, the definitions, and the rules about who may see what. People use it in the browser. Agents use it as a tool, with the same numbers, and with no more access than the browser. A custom stack needs a UI and a separate API for the same result, both built, secured, and kept in sync. With Streamlit, you can ask your forecast app what happens at a 5% price increase, or let an agent fill in an approval form for your review.

Agents can also live inside your app. Build an AI assistant that answers questions over your data with st.chat_input and st.chat_message, stream its answers with st.write_stream, show each step it takes with st.status, and let people rate its answers with st.feedback. The assistant works through your Python code, so you can call any model or agent framework, or Cortex AI on Snowflake. To see one in action, try the agent app demo. To get started, see Build LLM apps.

forum

Still have questions?

Our forums are full of helpful information and Streamlit experts.