Skip to content
/ vice Public

A stealthy AI overlay that lives on top of your screen, invisible to recorders, tuned for audio capture, and wired into Google Gemini for real-time text, image, and sound analysis. Think of it as your covert AI copilot, built purely for ethical and educational use (obviously).

Notifications You must be signed in to change notification settings

iiviie/vice

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

15 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Stealth AI Overlay

An AI-powered stealth overlay application with screen capture protection, system audio recording, and multimodal AI integration using Google Gemini.

๐Ÿš€ Features

  • Stealth Overlay: Content protection prevents screen capture in recordings/streams
  • System Audio Recording: Capture and analyze audio playing on your computer
  • Screenshot Analysis: AI-powered screen capture and analysis
  • Chat Interface: Clean chat UI for AI interactions
  • Global Hotkeys: Quick access from anywhere
  • Multimodal AI: Text, image, and audio processing with Google Gemini

๐Ÿ“‹ Prerequisites

1. Node.js and npm

Download and install from nodejs.org

2. FFmpeg

Windows:

  1. Download from ffmpeg.org
  2. Extract to C:\ffmpeg
  3. Add C:\ffmpeg\bin to your PATH environment variable

macOS:

brew install ffmpeg

Linux:

sudo apt install ffmpeg

3. SoX (Sound Processing)

Windows:

  1. Download from sox.sourceforge.net
  2. Install to default location
  3. Add SoX installation directory to PATH

macOS:

brew install sox

Linux:

sudo apt install sox

4. VB-Audio Virtual Cable

  1. Download from vb-audio.com
  2. Install the Virtual Cable driver
  3. Restart your computer after installation

5. Google Gemini API Key

  1. Visit Google AI Studio
  2. Create a new API key
  3. Copy the key for later use

๐Ÿ”ง Installation

1. Clone Repository

git clone <repository-url>
cd stealth-ai-overlay

2. Install Dependencies

npm install

3. Environment Configuration

Create a .env file in the root directory:

GEMINI_API_KEY=your_gemini_api_key_here
GEMINI_MODEL=gemini-1.5-pro-latest
OVERLAY_OPACITY=0.9
AUDIO_SAMPLE_RATE=16000
SCREENSHOT_FORMAT=jpeg
SCREENSHOT_QUALITY=0.8
LOG_LEVEL=info

๐ŸŽต VB-Audio Virtual Cable Setup

Windows Sound Control Panel Configuration

Playback Tab Setup:

  1. Right-click on sound icon in system tray โ†’ "Open Sound settings" โ†’ "Sound Control Panel"
  2. In Playback tab:
    • Right-click "CABLE Input (VB-Audio Virtual Cable)"
    • Select "Set as Default Device"
    • Select "Set as Default Communications Device"
    • Right-click "CABLE Input" โ†’ "Properties"
    • Go to "Listen" tab
    • โœ… Check "Listen to this device"
    • Select your Headphones/Speakers in dropdown
    • Click "Apply" and "OK"

Recording Tab Setup:

  1. In Recording tab:
    • Right-click "CABLE Output (VB-Audio Virtual Cable)"
    • Select "Set as Default Device"
    • Select "Set as Default Communications Device"

Expected Configuration:

๐Ÿ“ข PLAYBACK (Default): CABLE Input VB-Audio Virtual Cable
๐ŸŽค RECORDING (Default): CABLE Output VB-Audio Virtual Cable
๐ŸŽง LISTEN THROUGH: Your Headphones/Speakers

Audio Flow:

System Audio โ†’ CABLE Input โ†’ CABLE Output โ†’ App Recording
     โ†“
Your Headphones (for monitoring)

โ–ถ๏ธ Running the Application

Development Mode:

npm start

Production Build:

npm run build
npm run dist

๐ŸŽฎ Usage

Global Hotkeys:

  • Ctrl+Shift+H: Hide/Show overlay
  • Ctrl+Shift+A: Open/Close AI chat
  • Ctrl+Shift+S: Take screenshot + AI analysis
  • Ctrl+Shift+Space: Start/Stop system audio recording
  • Ctrl+\: Hide/Show ALL windows

Chat Interface:

  • ๐ŸŽต Audio Button: Record system audio
  • ๐Ÿ“ท Screenshot Button: Capture and analyze screen
  • Text Input: Ask AI questions
  • ๐Ÿ—‘๏ธ Clear: Clear chat history
  • ๐Ÿ“ค Export: Export chat as JSON

๐Ÿ”Š Discord/Google Meet Configuration

When using voice chat applications:

Discord Settings:

  1. Discord Settings โ†’ Voice & Video
  2. Input Device: "External Microphone" (your real mic)
  3. Output Device: "CABLE Input (VB-Audio Virtual Cable)"

Google Meet Settings:

  1. Click Settings gear in Google Meet
  2. Microphone: "External Microphone"
  3. Speakers: "CABLE Input (VB-Audio Virtual Cable)"

This allows you to:

  • โœ… Talk using your real microphone
  • โœ… Capture Discord/Meet audio with the app
  • โœ… Hear everything through your headphones

๐Ÿ› ๏ธ Troubleshooting

"No handler registered" Error:

  • Restart the application
  • Check if all dependencies are installed

Audio Recording Issues:

  1. Verify VB Cable Installation:

    • Check if "CABLE Input/Output" appear in Sound settings
    • Restart computer if just installed
  2. Check SoX Installation:

    sox --version
  3. Audio Configuration:

    • Ensure CABLE Input is default playback device
    • Ensure CABLE Output is default recording device
    • Test by playing music - you should hear it in headphones

Gemini API Errors:

  • Verify API key in .env file
  • Check internet connection
  • Ensure API key has proper permissions

Screen Capture Issues:

  • Run as administrator (Windows)
  • Check if other screen capture software is running
  • Verify FFmpeg installation

๐Ÿ“ Project Structure

stealth-ai-overlay/
โ”œโ”€โ”€ main.js                 # Main Electron process
โ”œโ”€โ”€ overlay.html            # Overlay window UI
โ”œโ”€โ”€ test-modal.html         # Chat interface UI
โ”œโ”€โ”€ package.json            # Dependencies and scripts
โ”œโ”€โ”€ .env                    # Environment variables
โ”œโ”€โ”€ src/
โ”‚   โ”œโ”€โ”€ ai/
โ”‚   โ”‚   โ””โ”€โ”€ gemini.js       # Gemini AI client
โ”‚   โ”œโ”€โ”€ audio/
โ”‚   โ”‚   โ””โ”€โ”€ recorder.js     # Audio recording module
โ”‚   โ”œโ”€โ”€ screen/
โ”‚   โ”‚   โ””โ”€โ”€ capturer.js     # Screen capture module
โ”‚   โ””โ”€โ”€ utils/
โ”‚       โ””โ”€โ”€ logger.js       # Logging utility
โ”œโ”€โ”€ temp/                   # Temporary files (auto-created)
โ””โ”€โ”€ logs/                   # Application logs (auto-created)

๐Ÿ”’ Security Features

  • Content Protection: Prevents screen capture of overlay windows
  • Stealth Mode: No persistent chat history
  • Temporary Files: Audio recordings automatically deleted
  • No External Dependencies: All processing done locally + Gemini API

๐Ÿ†˜ Support

Common Issues:

  1. "Recording already in progress":

    • Wait for current recording to finish
    • Restart application if stuck
  2. "No audio captured":

    • Check VB Cable configuration
    • Ensure system audio is playing
    • Verify default audio devices
  3. "API key error":

    • Check .env file format
    • Regenerate API key if needed

Testing Your Setup:

  1. Audio Test:

    • Play music on your computer
    • You should hear it in your headphones
    • Press Ctrl+Shift+Space to record
    • AI should describe the music
  2. Screenshot Test:

    • Press Ctrl+Shift+S
    • AI should describe what's on your screen
  3. Chat Test:

    • Press Ctrl+Shift+A
    • Type a message and press Enter
    • AI should respond

๐Ÿ“„ License

MIT License - See LICENSE file for details

๐Ÿค Contributing

  1. Fork the repository
  2. Create a feature branch
  3. Commit your changes
  4. Push to the branch
  5. Create a Pull Request

โš ๏ธ Important: This application captures system audio and screenshots. Use responsibly and in compliance with local laws and regulations.

About

A stealthy AI overlay that lives on top of your screen, invisible to recorders, tuned for audio capture, and wired into Google Gemini for real-time text, image, and sound analysis. Think of it as your covert AI copilot, built purely for ethical and educational use (obviously).

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •