跳到正文
GitHub·· 9 天前AI 评分22

AI Studio Pro:隐私优先的 Windows 原生桌面 AI 客户端

reomar07/AI-Studio-Pro

AI 导读

AI Studio Pro 是一款隐私优先的 Windows 原生桌面 AI 客户端,基于 pywebview 构建,可连接 LM Studio、Ollama 等本地模型或 OpenRouter、OpenAI 等云端 API,数据与对话完全保留在本地。

正文

A powerful, privacy-first native desktop AI client for Windows.

AI Studio Pro is a lightweight pywebview application that connects to your favorite local offline models (LM Studio, Ollama) or cloud APIs (OpenRouter, OpenAI) while keeping your data, conversations, and files completely local.

✨ Key Features

  • 📁 Local Workspace RAG: Attach local folders to your chat. The app uses an offline BM25 retrieval engine to index PDFs, DOCX, and code files directly in memory without relying on external vector databases.
  • ▶️ Local Python Execution: Safely run LLM-generated Python scripts directly inside the chat interface using your system's Python interpreter.
  • 🌐 Live Web Search: Integrated DuckDuckGo (DDGS) search allows the AI to fetch real-time data and cite live web sources in its answers.
  • 🌿 Branching Conversations: Edit prior prompts and navigate alternative conversation timelines with step controls, backed by a non-linear JSON tree history.
  • 📚 Prompt & Persona Library: Save reusable system prompts and inject them instantly into your workflow.
  • ⚙️ Complete Provider Freedom: Configure custom Base URLs and API keys. Switch seamlessly between cloud inference and fully disconnected local models.

🛠️️ Tech Stack

  • Frontend: HTML5, Tailwind CSS (Dark Mode), Vanilla JavaScript, Marked.js, DOMPurify, Highlight.js
  • Backend: Python 3, Pywebview
  • AI & Search: openai Python SDK, rank_bm25, duckduckgo-search
  • Document Parsing: PyMuPDF (PDFs), python-docx

🚀 Installation & Development

To run this application from the source code, you will need Python 3 installed on your system.

1. Clone the repository:

git clone [https://github.com/reomar07/AI-Studio-Pro.git](https://github.com/reomar07/AI-Studio-Pro.git)
cd AI-Studio-Pro
  1. Install the required Python packages:
pip install pywebview openai rank_bm25 duckduckgo-search PyMuPDF python-docx
  1. Run the application:
python app.py
  • 📦 Building the Executable (.exe)
  • To package the application into a single standalone Windows executable, use PyInstaller. Make sure you have your assets folder (containing icon.ico and logo.png) in the root directory.
pip install pyinstaller
pyinstaller --noconsole --onefile --icon="assets/icon.ico" --collect-all webview app.py

Move the assets folder and index.html into the generated dist folder alongside the new app.exe to run it.

  • The easy way just run the build_exe.bat and navigate to the dist folder and AI Studio Pro than run AI Studio Pro.exe

the pull requests are very welcomed.

来源:GitHub · github.com