Phidata is a framework for building multi-modal agents and workflows. Build agents with memory, knowledge, tools and reasoning. Build teams of agents that can work together to solve problems. Interact with your agents and workflows using a beautiful Agent UI.
- Simple & Elegant
- Powerful & Flexible
- Multi-Modal by default
- Multi-Agent orchestration
- A beautiful Agent UI to chat with your agents
- Agentic RAG built-in
- Structured outputs
- Reasoning built-in
- Monitoring & Debugging built-in
Phidata is available on PyPI. You can install it using pip:
pip install -U phidata
Phidata Agents are simple and elegant, resulting in minimal, beautiful code. For example, you can create a web search agent in 10 lines of code. web_search.py
# web_search.py
from phi.agent import Agent
from phi.model.openai import OpenAIChat
from phi.tools.duckduckgo import DuckDuckGo
web_agent = Agent(
name="Web Agent",
model=OpenAIChat(id="gpt-4o"),
tools=[DuckDuckGo()],
instructions=["Always include sources"],
show_tool_calls=True,
markdown=True,
)
web_agent.print_response("Tell me about OpenAI Sora?", stream=True)When you run the above code, you will see the agent respond with information about OpenAI Sora, including sources from DuckDuckGo.
Setup
- Setup your virtual environment
Mac
Windows
python3 -m venv ~/.venvs/aienv source ~/.venvs/aienv/bin/activate
python -m venv %USERPROFILE%\.venvs\aienv %USERPROFILE%\.venvs\aienv\Scripts\activate
# Install libraries
python3 -m venv ~/.venvs/aienv
source ~/.venvs/aienv/bin/activate
# Windows
python -m venv %USERPROFILE%\.venvs\aienv
%USERPROFILE%\.venvs\aienv\Scripts\activate- Install libraries in Mac
pip install -U phidata openai duckduckgo-searchIn Windows
pip install -U phidata openai duckduckgo-search- Export your OpenAI key
Phidata works with most model providers but for these examples let’s use OpenAI.
Mac:
export OPENAI_API_KEY=sk-***Windows
set OPENAI_API_KEY=sk-***- Create a file named
.envin the root directory and add your OpenAI key
OPENAI_API_KEY=sk-***Run the agent
python web_search.pyYou should see the agent respond with information about OpenAI Sora, including sources from DuckDuckGo.
For more detailed documentation, including advanced features, multi-agent orchestration, and more examples, please visit the Phidata Documentation.


