{"id":51268177,"url":"https://github.com/alex72-py/openplex","last_synced_at":"2026-06-29T16:01:48.206Z","repository":{"id":361464439,"uuid":"1254539355","full_name":"Alex72-py/openplex","owner":"Alex72-py","description":"OpenPlex — open-source Perplexity Pro alternative for your terminal. Web search + RAG pipeline + cited answers. Supports NVIDIA NIM, Google AI Studio \u0026 OpenRouter. Runs on Termux and Linux.","archived":false,"fork":false,"pushed_at":"2026-06-22T07:54:11.000Z","size":81,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-06-22T09:29:35.072Z","etag":null,"topics":["cli","llm","perplexity","rag","termux"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Alex72-py.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-05-30T17:38:09.000Z","updated_at":"2026-06-22T07:54:16.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/Alex72-py/openplex","commit_stats":null,"previous_names":["alex72-py/openplex"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Alex72-py/openplex","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Alex72-py%2Fopenplex","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Alex72-py%2Fopenplex/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Alex72-py%2Fopenplex/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Alex72-py%2Fopenplex/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Alex72-py","download_url":"https://codeload.github.com/Alex72-py/openplex/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Alex72-py%2Fopenplex/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34933503,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-29T02:00:05.398Z","response_time":58,"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":["cli","llm","perplexity","rag","termux"],"created_at":"2026-06-29T16:01:47.226Z","updated_at":"2026-06-29T16:01:48.199Z","avatar_url":"https://github.com/Alex72-py.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# OpenPlex\n\n\u003e An open-source Perplexity Pro alternative for your terminal.\n\nOpenPlex gives you AI-powered answers grounded in real web results — with citations, source ranking, and a dual-pass RAG pipeline. No browser. No subscription. Runs on Termux and Linux with minimal dependencies.\n\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](LICENSE)\n[![Python](https://img.shields.io/badge/python-3.8%2B-blue)]()\n[![Termux](https://img.shields.io/badge/runs%20on-Termux-brightgreen)]()\n\n---\n\n## What's New\n\n- **Tavily Search Backend:** Tavily is now supported as an optional, drop-in search provider alongside DuckDuckGo. Set `OPENPLEX_SEARCH_PROVIDER=tavily` and add your API key to get richer, AI-optimised web results with no extra scraping needed.\n- **Pass-through RAG (2-Step Verification):** Deep research mode now uses a dual-pass system. First, it drafts an answer, then a separate verification pass checks every claim against the sources to eliminate hallucinations.\n- **Source Trust Engine:** Heuristics-based scoring that prioritizes high-authority domains (Official docs, .gov, .edu) and detects primary sources.\n- **Animated Terminal UI:** A new, polished interface with an animated ASCII logo and professional color palettes.\n- **Smart Orchestration:** Unified intent detection and query resolution for faster, more accurate searches.\n\n---\n\n## Core Pipeline\n\nOpenPlex works like Perplexity Pro, but natively in your terminal:\n\n1. **Orchestration:** Analyzes your question to decide if it needs a search or just a chat response.\n2. **Multi-Source Search:** Searches the web via DuckDuckGo (default) or Tavily (optional) and fetches content from multiple pages in parallel.\n3. **Trust Ranking:** Scores and ranks sources based on domain authority and content quality.\n4. **Drafting:** Generates an initial answer with inline citations.\n5. **Verification (Deep Mode):** Cross-references the draft against sources to ensure absolute accuracy.\n\n```\nQuestion → Intent → Search → Trust Rank → Draft → Verify → Final Answer\n```\n\n---\n\n## Install\n\n**Termux (Android)**\n```bash\npkg install python git\ngit clone https://github.com/Alex72-py/openplex.git\ncd openplex\npip install rich                     # required\npip install tavily-python            # optional — enables Tavily search\npython openplex.py\n```\n\n**Linux**\n```bash\ngit clone https://github.com/Alex72-py/openplex.git\ncd openplex\npip3 install rich                    # required\npip3 install tavily-python           # optional — enables Tavily search\npython3 openplex.py\n```\n\nOn first run, a setup wizard walks you through choosing a provider and entering your API key.\n\n---\n\n## Search Backends\n\nOpenPlex supports two web search backends. DuckDuckGo requires no API key; Tavily is opt-in and delivers richer content out of the box.\n\n| Backend | API Key Required | How to Enable |\n|---|---|---|\n| **DuckDuckGo** (default) | No | Nothing — works out of the box |\n| **Tavily** | Yes — [app.tavily.com](https://app.tavily.com) | Set `TAVILY_API_KEY` + `OPENPLEX_SEARCH_PROVIDER=tavily` |\n\n---\n\n## Providers \u0026 Models\n\nAll providers have **free tiers** — no paid subscription required.\n\n### NVIDIA NIM — [build.nvidia.com](https://build.nvidia.com)\nKey format: `nvapi-...` · Free tier available\n\n| Short Name | Model |\n|---|---|\n| `deepseek-r1` | DeepSeek R1 671B |\n| `llama-3.3-70b` | Llama 3.3 70B |\n| `nemotron-super` | Nemotron Ultra 253B |\n| `qwen-2.5-72b` | Qwen 2.5 72B |\n| `mistral-small` | Mistral Small 24B |\n\n### Google AI Studio — [aistudio.google.com](https://aistudio.google.com)\nKey format: `AIza...` · 15 req/min free\n\n| Short Name | Model |\n|---|---|\n| `gemini-2.5-flash` | Gemini 2.5 Flash |\n| `gemini-2.0-flash` | Gemini 2.0 Flash |\n| `gemini-2.0-flash-lite` | Gemini 2.0 Flash Lite |\n| `gemini-2.5-pro` | Gemini 2.5 Pro |\n\n### OpenRouter — [openrouter.ai](https://openrouter.ai/keys)\nKey format: `sk-or-...` · Free models available\n\n| Short Name | Model |\n|---|---|\n| `llama-3.3-70b-free` | Llama 3.3 70B (free) |\n| `deepseek-r1-free` | DeepSeek R1 (free) |\n| `deepseek-v3-free` | DeepSeek V3 (free) |\n| `gemma-3-27b-free` | Gemma 3 27B (free) |\n| `qwen3-235b-free` | Qwen3 235B (free) |\n| `mistral-7b-free` | Mistral 7B (free) |\n\n---\n\n## Commands\n\n```\n/provider list              browse all LLM providers\n/provider set \u003cname\u003e        switch active provider\n/provider key \u003ckey\u003e         update API credentials\n\n/model list                 view models for current provider\n/model set \u003cname\u003e           switch active model\n\n/deep \u003cquestion\u003e            in-depth research mode (2-step verification)\n/sources                    inspect sources from last answer\n/clear                      reset conversation state\n/config                     view current configuration\n/status                     display session analytics\n/help                       show this guide\n/exit                       terminate OpenPlex\n```\n\n---\n\n## Environment Variables\n\n```bash\nexport OPENPLEX_NVIDIA_KEY=\"nvapi-...\"\nexport OPENPLEX_GOOGLE_KEY=\"AIza...\"\nexport OPENPLEX_OPENROUTER_KEY=\"sk-or-...\"\nexport OPENPLEX_PROVIDER=\"google\"\nexport OPENPLEX_MODEL=\"models/gemini-2.5-flash\"\n\n# Tavily search (optional)\nexport TAVILY_API_KEY=\"tvly-...\"\nexport OPENPLEX_SEARCH_PROVIDER=\"tavily\"   # or \"duckduckgo\" (default)\n```\n\n---\n\n## Why OpenPlex?\n\n| Feature | Perplexity Pro | OpenPlex |\n|---|---|---|\n| **Cost** | $20/month | **Free** |\n| **Open Source** | ❌ | **✅** |\n| **Verification Pass** | ✅ | **✅ (Deep Mode)** |\n| **Trust Engine** | ✅ | **✅** |\n| **Terminal Native** | ❌ | **✅** |\n| **BYO Model** | ❌ | **✅** |\n| **BYO Search Backend** | ❌ | **✅ (DDG or Tavily)** |\n\n---\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falex72-py%2Fopenplex","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falex72-py%2Fopenplex","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falex72-py%2Fopenplex/lists"}