Mega Brain uses a .env file to store API keys and configuration. This file is automatically generated during setup and should never be committed to version control.
Never commit your .env file to git! It contains sensitive API keys. The file is automatically added to .gitignore during installation.
$ npx mega-brain-ai setup╔══════════════════════════════════════════════════════════════╗║ ║║ ███ ███ ███████ ██████ █████ ║║ ████ ████ ██ ██ ██ ██ ║║ ██ ███ ██ █████ ██ ███ ███████ ║║ ██ ██ ██ ██ ██ ██ ██ ║║ ██ ██ ███████ ██████ ██ ██ ║║ ║║ B R A I N S E T U P W I Z A R D ║║ ║╚══════════════════════════════════════════════════════════════╝ This wizard will configure Mega Brain for first-time use. It takes about 2 minutes.──────────────────────────────────────────────────────────────── [1/6] Checking Python 3────────────────────────────────────────────────────────────────✔ Python 3.10.12 detected (python3)──────────────────────────────────────────────────────────────── [2/6] Checking Node.js────────────────────────────────────────────────────────────────✔ Node.js 18.17.0 detected──────────────────────────────────────────────────────────────── [3/6] Python Dependencies────────────────────────────────────────────────────────────────✔ Python dependencies installed──────────────────────────────────────────────────────────────── [4/6] API Key Configuration──────────────────────────────────────────────────────────────── Enter your API keys below. Press Enter to skip optional ones. Keys are stored locally in .env (never committed to git). REQUIRED OPENAI_API_KEY - Whisper transcription for video/audio Get yours at: https://platform.openai.com/api-keys? OpenAI API Key: sk-proj-... RECOMMENDED VOYAGE_API_KEY - Semantic embeddings for RAG search Without this, semantic search uses mock vectors (degraded quality) Get yours at: https://dash.voyageai.com/api-keys? Voyage API Key (Enter to skip): pa-... OPTIONAL Google OAuth - Import transcriptions from Google Drive Without these, download files manually to inbox/ Setup at: https://console.cloud.google.com/apis/credentials? Google Client ID (Enter to skip): ──────────────────────────────────────────────────────────────── [5/6] Validating Configuration────────────────────────────────────────────────────────────────✔ OpenAI API key is valid✔ Voyage AI key is valid Google OAuth: not configured──────────────────────────────────────────────────────────────── [6/6] Summary & .env Generation────────────────────────────────────────────────────────────────✔ .env file generated ╭─────────────────────────────────────────────────────────╮ │ │ │ SETUP SUMMARY │ │ │ │ Tools │ │ Python 3 ........... OK 3.10.12 │ │ Node.js ............ OK 18.17.0 │ │ pip install ........ OK installed │ │ │ │ API Keys │ │ OPENAI_API_KEY ..... OK sk-... │ │ VOYAGE_API_KEY ..... OK pa-... │ │ Google OAuth ....... SKIP not set │ │ │ │ .env file ............ WRITTEN │ │ │ ╰─────────────────────────────────────────────────────────╯ ╭─────────────────────────────────────────────────────────╮ │ Setup complete! │ │ │ │ Next steps: │ │ 1. Open this project in Claude Code │ │ 2. Drop a YouTube URL or PDF into inbox/ │ │ 3. Tell JARVIS: /ingest │ │ │ │ JARVIS will handle the rest. │ ╰─────────────────────────────────────────────────────────╯