oobabooga/textgen

Open-source desktop app for local LLMs. Text, vision, tool-calling, OpenAI/Anthropic-compatible API. 100% private.

View on GitHub ↗Jump to charts ↓Open shareable report →

Data as of . Signed-in members get hourly updates — create a free account.

Summary Information

Updated 1 hour ago
Added to GitGenius on May 8th, 2026
Created on December 21st, 2022
Open Issues & Pull Requests: 847 (+0)
GitHub issues: Enabled
Number of forks: 5,985
Total Stargazers: 47,726 (-1)
Total Subscribers: 358 (+0)

Repository Insights (GitGenius)

Median issue/PR response: 28.1 hours
Mean response time: 120.9 days
90th percentile: 559.4 days
Tracked items: 2,854

How this project is maintained

Roughly one issue in three opened in the past year never receives a reply. 100% of open issues come from outside the core team, so the backlog reflects real-world use rather than internal planning. 81% of tracked open issues have had no activity in three months, so the open count overstates what is actively being worked. Only 52% of issues opened in the past year have been closed. Three people close 90% of everything that gets resolved.

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Open issues: 817
New in 7 days: 2
Closed in 7 days: 0
Avg open age: 617 days
Stale 30+ days: 810
Stale 90+ days: 798

Recent activity

Opened in 7 days: 2
Closed in 7 days: 0
Comments in 7 days: 0
Events in 7 days: 0

Top labels

  • bug (1,894)
  • enhancement (799)
  • good first issue (1)
  • help wanted (1)
  • stale (1)

Most active issues this week

Sign in to see which issues are moving.
Sign in

Detailed Description

TextGen is an open-source desktop application designed for running large language models locally on personal computers. Written in Python, it provides a complete interface for text generation, vision capabilities, tool-calling, and API access while maintaining complete privacy through offline operation with zero telemetry. The application is available as portable builds for Linux, Windows, and macOS with multiple hardware acceleration options including CUDA, Vulkan, ROCm, and CPU-only configurations.

The core functionality spans multiple interaction modes. Users can operate in instruct mode for instruction-following similar to ChatGPT, chat-instruct mode, or standard chat mode for conversations with custom characters. The application automatically formats prompts using Jinja2 templates. Vision capabilities allow users to attach images to messages for visual understanding, while file attachment features support text files, PDF documents, and .docx files for content discussion. The interface enables message editing, navigation between message versions, and conversation branching at any point. A separate notebook tab provides free-form text generation outside of structured chat turns.

TextGen supports multiple inference backends including llama.cpp, ik_llama.cpp, Transformers, ExLlamaV3, and TensorRT-LLM, with the ability to switch between backends and models without restarting the application. The application provides OpenAI and Anthropic-compatible API endpoints for chat, completions, and messages, enabling it to function as a local drop-in replacement for commercial APIs. Tool-calling functionality allows models to invoke custom functions during conversations, including web search, page fetching, and mathematical operations, with tools implemented as single Python files. The system also supports MCP servers for extended functionality.

Additional capabilities include LoRA fine-tuning on multi-turn chat or raw text datasets with support for resuming interrupted training runs. An image generation tab dedicated to diffusers models like Z-Image-Turbo offers 4-bit and 8-bit quantization options alongside a persistent gallery with image metadata. The interface features dark and light themes, syntax highlighting for code blocks, and LaTeX rendering for mathematical expressions. Community and built-in extensions provide text-to-speech, voice input, and translation functionality.

Model loading is straightforward, with GGUF format models from Hugging Face placed directly into the user_data/models folder for automatic detection. The application includes installation options ranging from portable builds requiring no setup to full installations supporting additional backends, training, and extensions. Installation scripts for Windows, Linux, and macOS automate environment setup through Miniforge-based Conda environments, with Docker support also available for containerized deployment.