{"id":39350243,"url":"https://github.com/safhac/privemail","last_synced_at":"2026-02-28T09:04:15.709Z","repository":{"id":330837089,"uuid":"1124123208","full_name":"safhac/privemail","owner":"safhac","description":"**Privemail** is an open-source, local-first email client designed for privacy and speed.","archived":false,"fork":false,"pushed_at":"2026-02-21T09:09:38.000Z","size":216,"stargazers_count":3,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-02-21T15:39:44.967Z","etag":null,"topics":["email-client","gmail-api","local-llm","ollama","privacy","python","self-hosted","uv"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/safhac.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":"ROADMAP.md","authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-12-28T11:39:54.000Z","updated_at":"2026-02-21T09:09:41.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/safhac/privemail","commit_stats":null,"previous_names":["safhac/privemail"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/safhac/privemail","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/safhac%2Fprivemail","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/safhac%2Fprivemail/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/safhac%2Fprivemail/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/safhac%2Fprivemail/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/safhac","download_url":"https://codeload.github.com/safhac/privemail/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/safhac%2Fprivemail/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29929118,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-27T19:37:42.220Z","status":"online","status_checked_at":"2026-02-28T02:00:07.010Z","response_time":90,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["email-client","gmail-api","local-llm","ollama","privacy","python","self-hosted","uv"],"created_at":"2026-01-18T02:29:35.555Z","updated_at":"2026-02-28T09:04:15.681Z","avatar_url":"https://github.com/safhac.png","language":"Python","readme":"# Privemail\n\n**A private, local-first AI email assistant.**\n\nPrivemail runs entirely on your machine. It connects to Gmail, downloads your messages to a local encrypted database, and uses local AI models to draft replies, analyze tone, and prioritize your inbox—keeping your data 100% private.\n\n**Now Universal:** Works with **Ollama**, **LM Studio**, **LocalAI**, or any OpenAI-compatible local server.\n\n---\n\n### 📥 Download \u0026 Support\n**Not a developer?** You can support the project by purchasing the pre-compiled installer. It includes everything pre-configured (no Python or terminal required).\n\n[ **Download Installer for Windows ($10)** ](https://safhacster.gumroad.com/l/bnnpg)\n\n[ **Download Installer for Mac ($10)** ](https://safhacster.gumroad.com/l/kxwfcv)\n\n*Building from source is free (see below).*\n\n---\n\n## 🚀 Features\n\n* **Universal AI Backend**: Connect to **Ollama** (native), **LM Studio**, **vLLM**, or any OpenAI-compatible API.\n* **Zero Data Leakage**: Your email data never leaves your machine.\n* **Smart Prioritization**: AI analyzes email tone and urgency to score your inbox locally.\n* **Draft \u0026 Edit**: The AI proposes drafts based on your goals; you refine them before sending.\n* **Google Sync**: Connects securely to Gmail via OAuth.\n\n## 📂 Project Structure\n\nThis project uses a standard `src` layout:\n\n* `src/`: Application source code (`routes`, `database`, `core` logic).\n* `src/app_data/`: Stores your local database (`app.db`) and secrets.\n* `src/clients/`: AI Engine adapters.\n\n## 🛠️ Prerequisites\n\n1.  **Python 3.10+**\n2.  **Local AI Provider** (Choose one):\n    * **[Ollama](https://ollama.com/)** (Easiest): Install and run `ollama serve`.\n    * **[LM Studio](https://lmstudio.ai/)**: Start the \"Local Server\" on port 1234.\n    * **Any OpenAI-Compatible API**: Any local server that speaks the `/v1/chat/completions` protocol.\n\n    *Recommended Model:* `qwen2.5:3b` (Fast) or `mistral-nemo` (Smart).\n\n## 📦 Installation (Source)\n\n1.  **Install uv** (An extremely fast Python package manager)\n    * Mac/Linux: `curl -LsSf https://astral.sh/uv/install.sh | sh`\n    * Windows: `powershell -c \"irm https://astral.sh/uv/install.ps1 | iex\"`\n\n2.  **Run the App**\n    ```bash\n    uv run src/launcher.py\n    ```\n    *(This command will automatically create the virtual environment, install all dependencies, and launch the app in one step.)*\n\n## 🔑 Configuration (Google OAuth)\n\nTo access your Gmail, you need a `credentials.json` file from Google Cloud.\n\n1.  Go to the [Google Cloud Console](https://console.cloud.google.com/).\n2.  Create a project and enable the **Gmail API** and **People API**.\n3.  Configure the OAuth Consent Screen (Add `http://localhost:8080/` as a Redirect URI).\n4.  Create Credentials (**OAuth Client ID** -\u003e **Desktop App**).\n5.  Download the JSON file, rename it to `credentials.json`, and place it in the **`src/`** folder.\n\n## ▶️ Usage\n\n1.  Run `uv run src/launcher.py`.\n2.  The browser will open automatically.\n3.  Go to **Settings** to configure your AI Provider (Ollama is default).\n4.  On first run, you will be prompted to log in to Google to sync emails.","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsafhac%2Fprivemail","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsafhac%2Fprivemail","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsafhac%2Fprivemail/lists"}