binary-husky/gpt_academic
Self-hosted, plugin-based LLM workspace for reading and writing research papers
Automated SPDX check for reference only — not legal advice. Disclaimer
GitHub Star History
Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.
Evidence-Backed Technical Brief
AI Deep ReviewArchitecture & Core Mechanics
main.py launches the Python application. Gradio provides the chat interface, with a FastAPI deployment path for mounting it under a URL subpath. The manifest pins FastAPI 0.110 and Gradio Client 0.8 and points directly to a hosted Gradio 3.32.15 wheel. request_llms/ houses model adapters and optional backend-specific dependencies, separating model integration from the chat interface.
core_functional.py defines shortcuts that wrap user input with a configured prefix and suffix. crazy_functional.py and crazy_functions/ organize Python plugins for tasks such as document processing and repository explanation. Users can select a plugin directly or invoke one through the natural-language terminal. PyPDF2, PyMuPDF, and LlamaIndex packages support document-related workflows, but their presence does not mean every chat request uses document parsing or retrieval.
Key Capabilities & Differentiators
GPT Academic handles recurring research tasks from the chat interface: PDF translation and summarization, arXiv paper translation, full-manuscript LaTeX proofreading, and explanation of Python and C++ projects. It renders Mermaid diagrams and can save a conversation as readable HTML and restore it later. Plugins that need LaTeX require a deployment that includes it.
Users can submit the same prompt to multiple selected models in parallel. Hosted integrations include OpenAI, Azure, Qwen, Zhipu GLM, and Baidu Qianfan; local options include ChatGLM3, with an Ollama connection wizard added in version3.91. Multiple API keys can coexist in configuration. Parallel querying is useful for comparing answers, but each selected hosted backend receives its own request and is subject to its own quotas and billing.
Trade-offs & Limitations
Compared with managed ChatGPT or Coze, GPT Academic gives teams control over where the interface runs, which providers it calls, and how Python plugins process documents. The cost is ownership of credentials, dependencies, and deployment. An API-only setup avoids local inference hardware but still depends on provider access and sends content to the selected services. A self-hosted UI is not an offline deployment: review the model backend and each enabled plugin before using sensitive drafts.
The direct Gradio wheel URL is a reproducibility concern: builds depend on a reachable artifact host unless the wheel is cached or mirrored. Replacing it with upstream Gradio should not be treated as a drop-in upgrade, given known frontend compatibility issues. Local inference shifts pressure to RAM or VRAM as model size and concurrency grow; the full CUDA and LaTeX image also increases storage and download requirements. Review GPL-3.0 obligations before distributing modified builds.
Hardware & Deployment Guide
For a direct install, use an isolated Python environment (3.9 and 3.11 are listed), run python -m pip install -r requirements.txt, and start python main.py. Configuration precedence is environment variables, then config_private.py, then config.py. With Docker Compose, keep one service option and use host networking on Linux or port mapping with the port matched to WEB_PORT.
Start with the online-only image when inference is remote; select a LaTeX-enabled image for plugins that need it. The larger image includes CUDA and LaTeX. Local GPU deployment requires a compatible NVIDIA runtime and attention to LOCAL_MODEL_DEVICE; the optional local ChatGLM4 path lists at least 24 GB of VRAM. Version3.90patch1 added LlamaIndex integration; version3.91, released December 19, 2024, added timeline rollback and the Ollama wizard and fixed TTS issues. The Windows/macOS one-click package warns against paths with spaces or Chinese characters.
core_functional.py defines prompt shortcuts; crazy_functional.py and crazy_functions/ organize Python function plugins.requirements.txt points directly to a hosted Gradio 3.32.15 wheel and pins FastAPI and Gradio Client versions.Researchers, labs, and engineering teams that repeatedly translate or revise papers, explain codebases, or compare responses across several model providers from one self-hosted interface.
You want a fully managed chat or bot-building service, or you require an offline deployment but cannot provision a local model and verify that the chosen plugins have no external dependencies.
Quick Start & Installation
git clone --depth=1 https://github.com/binary-husky/gpt_academic.git cd gpt_academic
Comparison vs. Top Chat UI & AI Apps Alternatives
Full comparison →| Repository | Stars | 7d Trend | Stack | License | Core Positioning |
|---|---|---|---|---|---|
| gpt_academic ★ | 71.8k | +45 | Python | GPL-3.0 | Self-hosted, plugin-based LLM workspace for reading and writing research papers |
| LibreChat | 47.8k | +232 | TypeScript | MIT | A self-hosted AI chat workspace for multiple model providers and MCP tools |
| jan | 46.4k | +139 | Rust | — | Tauri desktop chat with local LLM inference and an OpenAI-compatible API |
| chat-ui | 11.1k | +10 | TypeScript | Apache-2.0 | Self-hosted SvelteKit chat for OpenAI-compatible model backends |
AI Context Briefing (for Claude / Cursor / Windsurf)
Standardized architecture summary & quickstart commands ready to paste into coding agents.
curl -sL https://repoforai.com/repo/binary-husky/gpt_academic.md
Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).
Frequently Asked Questions about gpt_academic
Where should a custom prompt, document workflow, or model integration go?
core_functional.py. Use a Python function plugin for a workflow that processes files or coordinates multiple steps. Model integrations belong in the request_llms/ adapter layer rather than in the prompt button itself.Does GPT Academic need an NVIDIA GPU?
Can a company use GPT Academic internally or distribute a customized image?
When is GPT Academic a better fit than ChatGPT or Coze?
Upstream README & Documentation
This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.
Top 10 Breakout Open-Source AI Repos, Every Thursday
Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.
Zero spam · 1-click unsubscribe · Privacy Policy