Skip to content

jup313/MYLLM

Repository files navigation

MyLLM Banner

πŸ€– MyLLM – Personal AI Stack on Your Mac

Run a complete private AI ecosystem locally using Ollama, Open WebUI, and purpose-built tools for email, finance, 3D generation, image generation, speech-to-text, and social media marketing. No cloud. No subscriptions. No data leaving your machine.

Architecture


🧰 Tools in This Stack

Tool Purpose Port
πŸ’¬ Open WebUI + SearXNG Chat UI with private web search :3000 / :8080
πŸ“ˆ Quant AI Stock & crypto analysis + portfolio tracker :8000
πŸ“¬ Gmail AI Manager AI email triage, summarize, draft replies + Calendar :5051
🎨 Stable Diffusion Local text-to-image generation · Apple Silicon MPS :5050
🧊 TripoSR 3D Pipeline Image β†’ 3D mesh (Apple Silicon) :5050
πŸ€– Tax AI Social AI social media content engine for tax/accounting firms :5055
πŸŽ™οΈ Whisper STT 100% local speech-to-text for Open WebUI :9000

πŸ—οΈ Architecture

                    πŸ¦™ Ollama (localhost:11434)
                    mistral:7b Β· deepseek-coder:6.7b
                    Apple Silicon MPS Β· ~4-10GB RAM
                           β”‚
        β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
        β”‚                  β”‚                      β”‚
        β–Ό                  β–Ό                      β–Ό
  πŸ’¬ Open WebUI      πŸ“ˆ Quant AI           πŸ“¬ Gmail AI
  :3000              :8000                 :5051
  + SearXNG          FastAPI+ChromaDB      Gmail API
  :8080              vectorbt              Auto-triage

        β”‚                  β”‚
        β–Ό                  β–Ό
  🧊 TripoSR         πŸ€– Tax AI Social
  :5050              :5055
  Image→3D           Instagram/Facebook/TikTok
  OBJ/GLB export     Compliance + Auto-Post

πŸ“‹ Requirements

  • macOS (Apple Silicon M1/M2/M3/M4 recommended) or Linux
  • 16 GB RAM recommended (8GB minimum for basic use)
  • Docker Desktop β€” https://www.docker.com/products/docker-desktop/
  • 15+ GB free disk space (for models + tools)
  • Internet connection (for initial setup only)

πŸš€ Quick Start

Step 1 β€” Clone the repo

git clone https://github.com/jup313/MYLLM.git
cd MYLLM

Step 2 β€” Run setup

chmod +x setup.sh install-tools.sh
./setup.sh

This will:

Step 3 β€” Create your account

  1. Open http://localhost:3000
  2. Click Sign Up and create your admin account
  3. The first account is automatically admin

πŸ’¬ Tool 1 β€” Open WebUI + SearXNG

Chat with local AI models + private web search.

URL Description
http://localhost:3000 Chat interface
http://localhost:8080 SearXNG search engine

Enable web search

  1. Click the ✨ sparkle icon in chat input
  2. Toggle Web Search ON
  3. Ask any question β€” AI searches privately via SearXNG

Install Shopping Search Tool

./install-tools.sh your@email.com yourpassword

πŸ“ˆ Tool 2 β€” Quant AI

AI-powered stock and crypto analysis running 100% locally.

cd quant_api
pip install -r requirements.txt
python main.py
  • FastAPI + ChromaDB vector database
  • vectorbt for backtesting
  • curl-cffi for market data
  • Ask natural language questions about stocks and crypto

πŸ“¬ Tool 3 β€” Gmail AI Manager

Local AI that reads, summarizes, categorizes, and drafts replies to your emails.

cd gmail-ai-manager
bash setup.sh
bash start.sh
# Open: http://localhost:5051

Features:

  • βœ… Auto-summarize inbox (no email ever leaves your machine)
  • βœ… Categorize by priority (urgent / action / info / promo)
  • βœ… Draft AI replies with one click
  • βœ… Unsubscribe detection
  • βœ… Requires Gmail OAuth credentials (stays 100% local)

🧊 Tool 4 β€” TripoSR 3D Pipeline

Generate 3D meshes from images using Apple Silicon GPU (MPS).

cd triposr-pipeline
bash setup.sh     # First time only β€” installs TripoSR
bash start-ui.sh
# Open: http://localhost:5050

Pipeline:

Your prompt β†’ Stable Diffusion image β†’ TripoSR β†’ OBJ/GLB mesh
  • Uses Apple Silicon MPS (Metal Performance Shaders)
  • Memory usage: ~6–10GB
  • Output: OBJ + GLB files ready for Blender, Unity, web
  • Best open-source 3D model for Mac 16GB

πŸ€– Tool 5 β€” Tax AI Social ⭐ NEW

AI-powered social media content engine for tax preparation, tax resolution, and bookkeeping firms.

What it does

  • Automatically generates Instagram, Facebook, and TikTok posts daily at 6 AM
  • Uses your local Ollama LLM (mistral:7b) β€” no OpenAI API needed
  • 35+ compliance rules block misleading tax claims automatically
  • Human review dashboard β€” Approve βœ…, Edit ✏️, or Reject ❌ before posting
  • Auto-posts to Facebook/Instagram via Meta Graph API on approval
  • Business contact info (phone, WhatsApp, email, website) auto-appended to every post

Setup

cd tax-ai-social
bash setup.sh
cp .env.example .env
# Edit .env β€” add your firm info and Meta API credentials
bash start.sh
# Open: http://localhost:5055

Dashboard features

  • ⚑ Generate Now β€” single post or full daily batch (5 posts)
  • πŸ“‹ Posts tab β€” review drafts, approve, edit, or reject
  • βš™οΈ Business Settings tab β€” update firm name, phone, email, website, WhatsApp, fax, etc. without touching files
  • 6 AM auto-generation β€” every morning, 5 posts ready for review
  • Compliance checker β€” flags and blocks prohibited phrases before you see them

Platforms supported

Platform Type Auto-posts?
Instagram Image caption βœ… (with image URL)
Facebook Text post βœ…
TikTok Video script ❌ Manual (record yourself)

Specialties supported

  • Tax Preparation
  • Tax Resolution (IRS debt, payment plans, OIC)
  • Bookkeeping

πŸ€– AI Models

Model Size Best For
mistral:7b 4.4 GB General chat, posts, email, social media
deepseek-coder:6.7b 3.8 GB Code generation, debugging, quant analysis

Pull additional models

ollama pull llama3.2        # Meta's Llama 3.2 (3B)
ollama pull phi4            # Microsoft Phi-4 (14B)
ollama pull qwen2.5-coder   # Qwen coding model
ollama list                 # See all installed models

πŸ›‘ Stop / Start Services

# Stop Docker services (Open WebUI + SearXNG)
docker compose down

# Start Docker services
docker compose up -d

# View logs
docker compose logs -f

# Restart a specific service
docker compose restart open-webui

πŸ“ Project Structure

MYLLM/
β”œβ”€β”€ README.md                     # This file
β”œβ”€β”€ docker-compose.yml            # Open WebUI + SearXNG
β”œβ”€β”€ setup.sh                      # One-command setup
β”œβ”€β”€ install-tools.sh              # Install Open WebUI tools
β”œβ”€β”€ shopping_search_tool.py       # Amazon/eBay search tool
β”œβ”€β”€ quant_tool.py                 # Quant analysis Open WebUI tool
β”œβ”€β”€ searxng/                      # SearXNG config
β”œβ”€β”€ quant_api/                    # Quant AI FastAPI backend
β”œβ”€β”€ gmail-ai-manager/             # Gmail AI email manager
β”œβ”€β”€ triposr-pipeline/             # Image β†’ 3D mesh pipeline
β”‚   β”œβ”€β”€ architecture.svg          # Full stack diagram
β”‚   └── ...
β”œβ”€β”€ tax-ai-social/                # ⭐ Tax AI Social Media Engine
β”‚   β”œβ”€β”€ app/
β”‚   β”‚   β”œβ”€β”€ main.py               # Flask API + routes
β”‚   β”‚   β”œβ”€β”€ generator.py          # Post generation engine
β”‚   β”‚   β”œβ”€β”€ compliance.py         # 35+ tax compliance rules
β”‚   β”‚   β”œβ”€β”€ poster.py             # Meta Graph API posting
β”‚   β”‚   β”œβ”€β”€ scheduler.py          # 6 AM daily auto-generation
β”‚   β”‚   └── database.py           # SQLite post tracking
β”‚   β”œβ”€β”€ prompts/                  # 7 platform-specific prompts
β”‚   β”œβ”€β”€ templates/index.html      # Dark-mode dashboard
β”‚   β”œβ”€β”€ .env.example              # Config template
β”‚   β”œβ”€β”€ requirements.txt
β”‚   β”œβ”€β”€ setup.sh
β”‚   └── start.sh
└── whisper-stt/                  # ⭐ Local Voice / Speech-to-Text
    β”œβ”€β”€ server.py                 # OpenAI-compatible STT API
    β”œβ”€β”€ requirements.txt
    β”œβ”€β”€ setup.sh
    β”œβ”€β”€ start.sh
    └── README.md

πŸ”§ Troubleshooting

Ollama not connecting

ollama list          # Check if running
ollama serve         # Start if not running

Docker containers not starting

docker compose down
docker compose up -d
docker compose logs

Tax AI Social β€” Ollama model not found

ollama pull mistral:7b     # Download the model
ollama serve               # Make sure Ollama is running

Port conflicts

Edit docker-compose.yml or the relevant .env file to change ports.


πŸ”’ Privacy

Everything runs 100% locally:

  • No data sent to OpenAI, Anthropic, or any cloud service
  • SearXNG proxies web searches anonymously
  • Gmail AI only reads emails locally via OAuth β€” nothing uploaded
  • Tax AI Social posts never leave until you click Approve
  • All AI inference runs on your Mac's Apple Silicon chip

πŸŽ™οΈ Tool 6 β€” Whisper STT ⭐ NEW

100% local speech-to-text for Open WebUI β€” talk to your AI instead of typing.

cd whisper-stt
bash start.sh
# Server starts at http://localhost:9000

First run downloads the Whisper small model (~460 MB, one time).

Connect to Open WebUI

  1. Open http://localhost:3000
  2. Profile icon β†’ Settings β†’ Audio
  3. Speech to Text:
    • Engine: OpenAI API
    • Base URL: http://localhost:9000/v1
    • API Key: local
  4. Save β€” click the 🎀 microphone in chat to speak!

Model options

Model Size Speed Best For
tiny ~75 MB ~0.3s Quick testing
base ~145 MB ~0.5s English-only
small ~460 MB ~1s Recommended βœ…
medium ~1.5 GB ~3s Best accuracy
WHISPER_MODEL=medium bash start.sh   # Use a larger model
  • βœ… 100% private β€” audio never leaves your Mac
  • βœ… Works offline after first setup
  • βœ… Multi-language support (auto-detects)
  • βœ… OpenAI-compatible API format

πŸ“ˆ Quant AI β€” Portfolio Tracker Dashboard

Track your stock/crypto holdings with live prices, gain/loss, and allocation chart.

Open: http://localhost:8000/portfolio

Feature Details
πŸ“Š Positions table Ticker, shares, avg cost, current price, gain/loss, day change
🍩 Allocation donut chart Visual portfolio breakdown (Chart.js)
πŸ‘οΈ Watchlist Track tickers without holding them
⟳ Live prices Auto-fetches via Yahoo Finance on page load
βž• Add / remove Simple form β€” no file editing needed
cd quant_api
python main.py
# Open: http://localhost:8000/portfolio

πŸ“… Gmail AI β€” Calendar Integration

Detect meetings in emails and add them to Google Calendar automatically.

Open: http://localhost:5051 β†’ click πŸ“… Calendar in sidebar

Feature Details
πŸ” Meeting detection Scans emails for Zoom, time mentions, meeting keywords
πŸ€– LLM extraction Uses Ollama to extract date/time/location from email body
πŸ“… One-click add Click πŸ“… Add to Calendar on any detected meeting email
βž• Manual events Create events directly from the dashboard
πŸ“‹ Upcoming view See next 7 days of Google Calendar events

Requires: Google Calendar API scope (enabled automatically when you re-connect Gmail OAuth)

⚠️ If you already connected Gmail, click πŸ”— Re-connect Gmail in Settings to add Calendar scope.


🎨 Tool 7 β€” Stable Diffusion Image Generation

100% local text-to-image generation on your Mac. No API key. No cloud. No limits.

cd stable-diffusion
bash setup.sh     # First time only (~2-3 min)
bash start.sh
# Open: http://localhost:5050
Feature Details
⚑ SDXL-Turbo Default model β€” ~3–8s per image on M1/M2/M3
🧠 6 Models SDXL-Turbo, SD 2.1, SD 1.5, DreamShaper, OpenJourney, Realistic Vision
πŸ“ Any size 512Γ—512 to 1280Γ—1280 with 1:1, 16:9, 9:16, 4:3 presets
🎲 Seed control Reproduce or vary any image
πŸ—‚οΈ History Browse all generated images
πŸ“± Social Post tab Auto-generate images for Tax AI Social posts

Tax AI Social Integration

When Stable Diffusion is running (:5050), Tax AI Social will automatically generate images for Instagram and Facebook posts. Just start both services:

# Terminal 1
cd stable-diffusion && bash start.sh

# Terminal 2
cd tax-ai-social && bash start.sh

Images are auto-selected based on post content (IRS/debt β†’ resolution style, family β†’ family style, etc.).

API

# Generate image
curl -X POST http://localhost:5050/api/generate \
  -H "Content-Type: application/json" \
  -d '{"prompt": "professional tax accountant, modern office, 4K", "model": "sdxl-turbo", "steps": 4}'

# Use in Python
from stable_diffusion.sd_client import generate_for_post
img_url = generate_for_post("Tax deadline April 15th", specialty="tax_preparation")

πŸ—ΊοΈ Roadmap

  • Stable Diffusion image generation β€” βœ… Done! (stable-diffusion/ + Tax AI Social integration)
  • LinkedIn support for Tax AI Social
  • Quant AI portfolio tracker dashboard β€” βœ… Done! (/portfolio)
  • Gmail AI calendar integration β€” βœ… Done! (Calendar tab)
  • Voice interface for Open WebUI β€” βœ… Done! (Whisper STT)

Built with ❀️ using Ollama · Open WebUI · SearXNG · TripoSR · Flask · Apple Silicon 🍎

About

πŸ€– Personal AI stack on Mac: Ollama + Open WebUI + Stable Diffusion + TripoSR 3D + Whisper STT + Tax AI Social + Gmail AI + Quant AI β€” 100% local, no cloud

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors