-
Install Dependencies
pnpm install
-
Set up Environment Variables
- Copy
.env.localand add your API keys - At minimum, you need an OpenAI API key
- Copy
-
Run the Application
pnpm dev
- Get from: https://platform.openai.com/account/api-keys
- Add to
.env.local:OPENAI_API_KEY=your_key_here
- Get from: https://financialdatasets.ai/
- Add to
.env.local:FINANCIAL_DATASETS_API_KEY=your_key_here
The app can run without a database for basic functionality. If you want full features:
-
Option 1: Use Neon (Recommended)
- Sign up at https://neon.tech
- Create a database
- Copy connection string to
POSTGRES_URLin.env.local
-
Option 2: Use Supabase
- Sign up at https://supabase.com
- Create a project
- Copy connection string to
POSTGRES_URLin.env.local
-
Option 3: Local PostgreSQL
- Install PostgreSQL locally
- Create database:
createdb algostockgpt - Use:
postgresql://postgres:password@localhost:5432/algostockgpt
- The app will work without a database
- Database features (chat history, user accounts) will be disabled
- Just leave
POSTGRES_URLcommented out in.env.local
- Make sure your OpenAI API key is valid
- Check your API key has sufficient credits
- Restart the development server after adding keys
- ✅ Real-time stock price queries
- ✅ Financial news and analysis
- ✅ Company performance tracking
- ✅ Stock screening and filtering
- ✅ Dark/Light mode toggle
- ✅ Responsive design
- ✅ Interactive sample queries