A flexible Streamlit app that integrates with OpenAI's Agents SDK to power a conversational AI agent with tools, multi-agent, and multi-LLM support.
Supports Anthropic, OpenAI, and xAI (Grok).
ex_double_smm.mov
streamlit-agent-ai/
│── src/
│ │── ui/
│ │ │── streamlit_app.py # Streamlit UI for interaction
│ │ │── utils.py # helper functions
│ │── agent/
│ │ │── agent.py # multi-agent example
│── requirements.txt
│── README.md
│── .gitignore
- Create Virtual Environments:
python -m venv .venv # Create a virtual environment named .venv
source .venv/bin/activate # Activate on Mac/Linux
.venv\Scripts\activate # Activate on Windows
pip install -r requirements.txt # Install dependencies
- Copy local secrets file
Run this in your terminal:
cp .streamlit/secrets.example.toml .streamlit/secrets.toml
- Start Streamlit
python -m streamlit run src/ui/steamlit_app.py
- Define LLM API Key(s)
a. Get API keys for each provider you would like to use:
-
Anthropic: https://console.anthropic.com/settings/keys
-
xAI (Grok via api.x.ai): https://x.ai (Log in and access your developer console)
b. [Optional] Update .streamlit/secrets.toml with your API keys. Alternatively, you can enter keys in the streamlit UI.
Do whatever you want with it!