Skip to content

Hasan8123/AI-Finance-Agent-with-xAI-Grok

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

📊 AI Finance Agent with xAI Grok

This application creates a financial analysis agent powered by xAI's Grok model, combining real-time stock data with web search capabilities. It provides structured financial insights through an interactive playground interface.

Features

  • Powered by xAI's Grok-4-1-Fast model
  • Real-time stock data analysis via YFinance
  • Web search capabilities through DuckDuckGo
  • Formatted output with tables for financial data
  • Interactive playground interface

How to get Started?

  1. Clone or download the project files.

  2. Install the required dependencies:

pip install -r requirements.txt
  1. Get your xAI API Key
  • Sign up for an xAI API account
  • Set your XAI_API_KEY environment variable.

Windows (PowerShell):

$env:XAI_API_KEY='your-api-key-here'

Linux/macOS:

export XAI_API_KEY='your-api-key-here'
  1. Run the AI Agent
python xai_finance_agent.py
  1. Open your web browser and navigate to the URL provided in the console output to interact with the AI financial agent through the playground interface.

Connecting Your AgentOS

To manage, monitor, and interact with your financial agent through the Agno Control Plane, you need to connect your running AgentOS instance.

About

This project is an AI-powered financial assistant built with the Agno framework and xAI's Grok model, integrating real-time stock data from YFinance and web search via DuckDuckGo. It features an interactive playground UI that provides structured, table-formatted financial insights and real-time market news for professional-grade analysis.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages