A.D.A = Advanced Design Assistant
ADA V2 is a sophisticated AI assistant designed for multimodal interaction. It combines Google's Gemini 2.5 Native Audio with computer vision, gesture control, and 3D CAD generation in a Electron desktop application.
This build is owned by Jeffrey Llamas. ADA's default personality follows him.
| Feature | Description | Technology |
|---|---|---|
| π£οΈ Low-Latency Voice | Real-time conversation with interrupt handling | Gemini 2.5 Native Audio |
| π§ Parametric CAD | Editable 3D model generation from voice prompts | build123d β STL |
| π¨οΈ 3D Printing | Slicing and wireless print job submission | OrcaSlicer + Moonraker/OctoPrint |
| ποΈ Minority Report UI | Gesture-controlled window manipulation | MediaPipe Hand Tracking |
| ποΈ Face Authentication | Secure local biometric login | MediaPipe Face Landmarker |
| π Web Agent | Autonomous browser automation | Playwright + Chromium |
| π¬ Content Video Studio | Generates short-form scripts, preview videos, publishing copy, and upload shortcuts | Gemini + Pillow + MoviePy + pyttsx3 |
| π₯ Provider video | Saves a clip from Runway, InVideo, or Veo when that key is set | Runway, InVideo, Veo |
| π Digital products | Writes a local presentation, flyer, or document, and a Canva edit link when a token is set | PPTX, PNG, PDF, Canva |
| π£ Social posting | Posts or prepares a livestream on Facebook, Instagram, TikTok, and YouTube | Platform APIs |
| π Smart Home | Voice control for TP-Link Kasa devices | python-kasa |
| π Project Memory | Persistent context across sessions | File-based JSON storage |
ADA's "Minority Report" interface uses your webcam to detect hand gestures:
| Gesture | Action |
|---|---|
| π€ Pinch | Confirm action / click |
| β Open Palm | Release the window |
| β Close Fist | "Select" and grab a UI window to drag it |
Tip: Enable the video feed window to see the hand tracking overlay.
graph TB
subgraph Frontend ["Frontend (Electron + React)"]
UI[React UI]
THREE[Three.js 3D Viewer]
GESTURE[MediaPipe Gestures]
SOCKET_C[Socket.IO Client]
end
subgraph Backend ["Backend (Python 3.11 + FastAPI)"]
SERVER[server.py<br/>Socket.IO Server]
ADA[ada.py<br/>Gemini Live API]
WEB[web_agent.py<br/>Playwright Browser]
CAD[cad_agent.py<br/>CAD + build123d]
PRINTER[printer_agent.py<br/>3D Printing + OrcaSlicer]
KASA[kasa_agent.py<br/>Smart Home]
AUTH[authenticator.py<br/>MediaPipe Face Auth]
PM[project_manager.py<br/>Project Context]
end
UI --> SOCKET_C
SOCKET_C <--> SERVER
SERVER --> ADA
ADA --> WEB
ADA --> CAD
ADA --> KASA
SERVER --> AUTH
SERVER --> PM
SERVER --> PRINTER
CAD -->|STL file| THREE
CAD -->|STL file| PRINTER
If you want to open ADA from a Galaxy Z Fold, S24 Ultra, or another phone on the same Wi-Fi network:
# Terminal 1: backend. Defaults to 127.0.0.1:8000.
# Set ADA_HOST=0.0.0.0 when something other than this machine must reach port 8000.
ADA_HOST=0.0.0.0 ADA_PORT=8000 python backend/server.py
# Terminal 2: frontend on LAN
npm run dev:mobileThen open http://YOUR_COMPUTER_IP:5173 on the phone. With no VITE_SOCKET_URL, the page talks to that same Vite origin, and the dev server proxies /socket.io to http://127.0.0.1:8000. Set VITE_SOCKET_URL only when the browser should open the API port directly.
npm run apk:debug and npm run apk:release build the Capacitor app. They expect a local Android SDK (ANDROID_HOME) and a JDK on PATH. The SDK is not stored in this repository. The Android application id is com.jeffreyllamas.adav2. An install built with an older id will not update in place.
ADA can rotate across multiple Gemini API keys automatically when one key hits quota or rate limits.
Set your primary paid key as normal:
GEMINI_API_KEY=your_paid_keyThen add fallback keys using either a comma-separated list:
GEMINI_API_KEY_FALLBACKS=free_key_1,free_key_2,free_key_3or numbered variables:
GEMINI_API_KEY_1=free_key_1
GEMINI_API_KEY_2=free_key_2
GEMINI_API_KEY_3=free_key_3When a key returns quota or rate-limit errors, ADA cools that key down and switches to the next available Gemini key automatically.
ADA now includes a built-in content video feature for short-form content packs.
What it does:
- Generates a structured script and scene breakdown from your topic
- Supports niche presets, narrator tone presets, and video style presets such as cinematic, anime, realistic, documentary, and neon
- Enforces a 90-second minimum duration by default
- Supports intro and outro cards
- Builds a local preview video package with open-source tools
- Produces title, description, CTA, hashtags, and upload shortcuts for YouTube, Facebook, TikTok, and Instagram
Important notes:
- The video renderer uses local Python media libraries, not paid video APIs
- Narration uses
pyttsx3when available; if local TTS is unavailable, ADA still renders a silent preview video with script and scene cards - For best results, install the Python dependencies in
requirements.txt
ADA can also call the providers that were previously only named in the tool list.
- Runway saves an MP4 when
RUNWAYML_API_KEYis set. Clips are 2 to 10 seconds. - InVideo saves an MP4 when
INVIDEO_API_KEYis set and the provider returns a video URL. - Veo is unchanged and still uses
VEO_API_KEYorGEMINI_API_KEY. - Presentations, flyers, and documents are written on this computer (PowerPoint, PNG, or PDF). Connect Canva in Settings, or set
CANVA_ACCESS_TOKEN, and ADA also creates a Canva design and returns the edit link. The local file is the content. - Facebook, Instagram, TikTok, and YouTube post after you click Connect in Settings. A manual token in
.envstill overrides that saved login. Video uploads need a local video file. Livestream setup returns an RTMP address for YouTube and Facebook. Instagram and TikTok do not offer a public livestream start API, so ADA says so instead of pretending the stream is live.
In Settings β Connections, paste each service's id and secret. YouTube's Client ID and Meta's App ID are already filled in. The panel shows the redirect URL to register and a Copy button. Those values stay on this PC. A matching .env entry overrides the panel. ADA renews the access token before it expires. Details are in docs/CONNECT_ACCOUNTS.md. YouTube uploads default to private (YOUTUBE_PRIVACY=private). TikTok posts default to SELF_ONLY. Missing credentials produce an error and no success claim. Ask ADA which accounts are connected.
Click to expand quick setup commands
# 1. Clone and enter
git clone https://github.com/yjreffe-bit/ada_v2.git && cd ada_v2
# 2. Create Python environment (Python 3.11)
conda create -n ada_v2 python=3.11 -y && conda activate ada_v2
brew install portaudio # macOS only (for PyAudio)
pip install -r requirements.txt
playwright install chromium
# 3. Setup frontend
npm install
# 4. Create .env file
echo "GEMINI_API_KEY=your_key_here" > .env
# 5. Run!
conda activate ada_v2 && npm run devIf you have never coded before, follow these steps first!
Step 1: Install Visual Studio Code (The Editor)
- Download and install VS Code. This is where you will write code and run commands.
Step 2: Install Anaconda (The Manager)
- Download Miniconda (a lightweight version of Anaconda).
- This tool allows us to create isolated "playgrounds" (environments) for our code so different projects don't break each other.
- Windows Users: During install, check "Add Anaconda to my PATH environment variable" (even if it says not recommended, it makes things easier for beginners).
Step 3: Install Git (The Downloader)
- Windows: Download Git for Windows.
- Mac: Open the "Terminal" app (Cmd+Space, type Terminal) and type
git. If not installed, it will ask to install developer toolsβsay yes.
Step 4: Get the Code
- Open your terminal (or Command Prompt on Windows).
- Type this command and hit Enter:
git clone https://github.com/yjreffe-bit/ada_v2.git
- This creates a folder named
ada_v2.
Step 5: Open in VS Code
- Open VS Code.
- Go to File > Open Folder.
- Select the
ada_v2folder you just downloaded. - Open the internal terminal: Press
Ctrl + ~(tilde) or go to Terminal > New Terminal.
Once you have the basics above, continue here.
MacOS:
# Audio Input/Output support (PyAudio)
brew install portaudioWindows:
- No additional system dependencies required!
Create a single Python 3.11 environment:
conda create -n ada_v2 python=3.11
conda activate ada_v2
# Install all dependencies
pip install -r requirements.txt
# Install Playwright browsers
playwright install chromiumRequires Node.js 18+ and npm. Download from nodejs.org if not installed.
# Verify Node is installed
node --version # Should show v18.x or higher
# Install frontend dependencies
npm installTo use the secure voice features, ADA needs to know what you look like.
- Take a clear photo of your face (or use an existing one).
- Rename the file to
reference.jpg. - Drag and drop this file into the
ada_v2/backendfolder. - (Optional) You can toggle this feature on/off in
settings.jsonby changing"face_auth_enabled": true/false.
The system creates a settings.json file on first run. You can modify this to change behavior:
| Key | Type | Description |
|---|---|---|
face_auth_enabled |
bool |
If true, blocks all AI interaction until your face is recognized via the camera. |
tool_permissions |
obj |
Controls manual approval for specific tools. |
tool_permissions.generate_cad |
bool |
If true, requires you to click "Confirm" on the UI before generating CAD. |
tool_permissions.run_web_agent |
bool |
If true, requires confirmation before opening the browser agent. |
tool_permissions.write_file |
bool |
Critical: Requires confirmation before the AI writes code/files to disk. |
ADA V2 can slice STL files and send them directly to your 3D printer.
Supported Hardware:
- Klipper/Moonraker (Creality K1, Voron, etc.)
- OctoPrint instances
- PrusaLink (Experimental)
Step 1: Install Slicer ADA uses OrcaSlicer (recommended) or PrusaSlicer to generate G-code.
- Download and install OrcaSlicer.
- Run it once to ensure profiles are created.
- ADA automatically detects the installation path.
Step 2: Connect Printer
- Ensure your printer and computer are on the same Wi-Fi network.
- Open the Printer Window in ADA (Cube icon).
- ADA automatically scans for printers using mDNS.
- Manual Connection: If your printer isn't found, use the "Add Printer" button and enter the IP address (e.g.,
192.168.1.50).
ADA uses Google's Gemini API for voice and intelligence. You need a free API key.
- Go to Google AI Studio.
- Sign in with your Google account.
- Click "Create API Key" and copy the generated key.
- Create a file named
.envin theada_v2folder (same level asREADME.md). - Add this line to the file:
GEMINI_API_KEY=your_api_key_here - Replace
your_api_key_herewith the key you copied.
Note: Keep this key private! Never commit your
.envfile to Git.
You have two options to run the app. Ensure your ada_v2 environment is active!
The app is smart enough to start the backend for you.
- Open your terminal in the
ada_v2folder. - Activate your environment:
conda activate ada_v2 - Run:
npm run dev
- The backend will start automatically in the background.
Use this if you want to see the Python logs (recommended for debugging).
Terminal 1 (Backend):
conda activate ada_v2
python backend/server.pyTerminal 2 (Frontend):
# Environment doesn't matter here, but keep it simple
npm run dev- Voice Check: Say "Hello Ada". She should respond.
- Vision Check: Look at the camera. If Face Auth is on, the lock screen should unlock.
- CAD Check: Open the CAD window and say "Create a cube". Watch the logs.
- Web Check: Open the Browser window and say "Go to Google".
- Smart Home: If you have Kasa devices, say "Turn on the lights".
- "Switch project to [Name]"
- "Create a new project called [Name]"
- "Turn on the [Room] light"
- "Make the light [Color]"
- "Pause audio" / "Stop audio"
- Prompt: "Create a 3D model of a hex bolt."
- Iterate: "Make the head thinner." (Requires previous context)
- Files: Saves under the per-user projects folder, in
[ProjectName]/cad. See "Project files" below.
- Prompt: "Go to Amazon and find a USB-C cable under $10."
- Note: The agent will auto-scroll, click, and type. Do not interfere with the browser window while it runs.
- Auto-Discovery: ADA automatically finds printers on your network.
- Slicing: Click "Slice & Print" on any generated 3D model.
- Profiles: ADA intelligently selects the correct OrcaSlicer profile based on your printer's name (e.g., "Creality K1").
Symptoms: Error about camera access, or video feed shows black.
Solution:
- Go to System Preferences > Privacy & Security > Camera.
- Ensure your terminal app (e.g., Terminal, iTerm, VS Code) has camera access enabled.
- Restart the app after granting permission.
Symptoms: Backend crashes on startup with "API key not found".
Solution:
- Make sure your
.envfile is in the rootada_v2folder (not insidebackend/). - Verify the format is exactly:
GEMINI_API_KEY=your_key(no quotes, no spaces). - Restart the backend after editing the file.
Symptoms: websockets.exceptions.ConnectionClosedError: 1011 (internal error).
Solution: This is a server-side issue from the Gemini API. Simply reconnect by clicking the connect button or saying "Hello Ada" again. If it persists, check your internet connection or try again later.
Coming soon! Screenshots and demo videos will be added here.
ada_v2/
βββ backend/ # Python server & AI logic
β βββ ada.py # Gemini Live API integration
β βββ server.py # FastAPI + Socket.IO server
β βββ cad_agent.py # CAD generation orchestrator
β βββ printer_agent.py # 3D printer discovery & slicing
β βββ web_agent.py # Playwright browser automation
β βββ kasa_agent.py # TP-Link smart home control
β βββ authenticator.py # MediaPipe face auth logic
β βββ project_manager.py # Project context management
β βββ tools.py # Tool definitions for Gemini
β βββ reference.jpg # Your face photo (add this!)
βββ src/ # React frontend
β βββ App.jsx # Main application component
β βββ components/ # UI components
β βββ index.css # Global styles
βββ electron/ # Electron main process
β βββ main.js # Window & IPC setup
βββ android/ # Capacitor Android project (no SDK committed)
βββ scripts/ # Optional local diagnostics, not used at runtime
βββ projects/ # Legacy location only. New data lives outside the repo.
βββ .env # API keys (create this!)
βββ requirements.txt # Python dependencies
βββ package.json # Node.js dependencies
βββ README.md # You are here!
| Limitation | Details |
|---|---|
| macOS & Windows | Tested on macOS 14+ and Windows 10/11. Linux is untested. |
| Camera Required | Face auth and gesture control need a working webcam. |
| Gemini API Quota | Free tier has rate limits; heavy CAD iteration may hit limits. |
| Network Dependency | Requires internet for Gemini API (no offline mode). |
| Single User | Face auth recognizes one person (the reference.jpg). |
Contributions are welcome! Here's how:
- Fork the repository.
- Create a branch:
git checkout -b feature/amazing-feature - Commit your changes:
git commit -m 'Add amazing feature' - Push to the branch:
git push origin feature/amazing-feature - Open a Pull Request with a clear description.
- Run the backend separately (
python backend/server.py) to see Python logs. - Use
npm run devwithout Electron during frontend development (faster reload).
6E95
- Project files live outside the repo. Don't commit them.
CAD, chat history, and the browser profile are not stored in the repository. A checkout inside OneDrive or Documents made projects/temp undeletable (WinError 5), which used to abort startup. ADA now keeps that data here:
| System | Folder |
|---|---|
| Windows | %LOCALAPPDATA%\ADA\projects |
| macOS | ~/Library/Application Support/ADA/projects |
| Linux | $XDG_DATA_HOME/ADA/projects or ~/.local/share/ADA/projects |
Set ADA_PROJECTS_DIR to use a different folder. The first launch copies named projects out of a legacy projects/ directory next to the repo and leaves the originals in place. Temp cleanup clears the read-only bit and retries; if that still fails, startup continues with a fresh temp directory.
| Aspect | Implementation |
|---|---|
| API Keys | Stored in .env, never committed to Git. |
| Face Data | Processed locally, never uploaded. |
| Tool Confirmations | Write/CAD/Web actions can require user approval. |
| No Cloud Storage | All project data stays on your machine. |
Warning
Never share your .env file or reference.jpg. These contain sensitive credentials and biometric data.
- Google Gemini β Native Audio API for real-time voice
- build123d β Modern parametric CAD library
- MediaPipe β Hand tracking, gesture recognition, and face authentication
- Playwright β Reliable browser automation
This project is licensed under the MIT License β see the LICENSE file for details.
Owned by Jeffrey Llamas
Bridging AI, CAD, and Vision in a Single Interface