MCPcopy Create free account
hub / github.com/Icecubesaad/OpenLLM-Studio

github.com/Icecubesaad/OpenLLM-Studio @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
642 symbols 1,321 edges 125 files ⚖ custom 78 documented · 12% ● updated 7mo ago★ 63

Browse by type

⨍ Functions 505◇ Types & classes 137
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

OpenLLM Studio Logo

OpenLLM Studio

Private AI with receipts. Signed evidence for one regulated use case.

Stars Last Commit License Release

First hour • Proof & limits • Features • Install • Build • Binaries • The agent • Website • Contribute


OpenLLM Studio is a desktop app for one regulated private-AI use case. A confidential document goes to a local model; every related model call, tool action and routing decision becomes a hash-chained, signed receipt. It runs alongside the inference stack you already have (llama.cpp, Ollama, vLLM or an approved cloud endpoint), exports a Compliance Passport, and ships a verifier that replays the evidence on a machine that never saw the device. No serving-stack migration.

  • One use case, end to end — intake → risk tier → cloud route refused with a signed deny → local inference → scoped gateway key → passport
  • Identity-bound receipts — actor, model, decision, prompt hash and correlation id are covered by the receipt signature; legacy rows are labelled unsigned
  • Verifier CLI ships — a standalone --anchor verifier replays the embedded ledger instead of trusting the passport's own flag
  • Append-only by default — receipt triggers are enabled at startup; only an explicit developer escape hatch disables them
  • Private by default — models, projects and chat history stay local; provider keys are stored in an encrypted vault
  • Keeps your agent — plan, tool calls, approvals, diffs and test runs in one conversation; sessions, checkpoints and rewind

What this proves / does not prove: the single pass/fail scenario is in docs/WEDGE_ACCEPTANCE.md; the verification contract and its limits are in docs/RECEIPT_AND_PASSPORT_SCHEMA.md (especially §6, "What verification does not prove"). Evidence is device-generated and self-reported; no certification is claimed. One chain across device, on-prem and cloud is a design-partner measurement target, not a shipped claim.

Features

🚀 Start screen

  • Opens to your projects: recent folders with one-click reopen, plus Open folder
  • A readout of your machine (GPU, memory, runtime) with the next step to take
  • Quick links to Chat and the Model library

🎨 Interface

  • Dark slate interface with a single sodium-amber accent
  • Bundled fonts (Bricolage Grotesque, IBM Plex Sans and Mono) — no font CDN calls
  • Keyboard-first, visible focus, reduced-motion aware

📚 Model Management

  • My Library: View and manage your downloaded models
  • Browse: Discover curated AI models optimized for local execution
  • HuggingFace Integration: Search and download GGUF models from HuggingFace
  • Model Wizard: AI-powered recommendations based on your hardware

💬 Chat Interface

  • Multi-conversation support
  • Real-time streaming responses
  • Model switching on the fly
  • Conversation history
  • Attach documents: Upload PDF, DOCX, or text files as context (via paperclip button)

🤖 Agent tab

  • Autonomous agent: completes whole tasks — reads, edits, searches and runs commands across your project
  • Plan and act: review the plan before it touches files
  • Approvals: file writes and shell commands ask first; choose once, per command prefix, or per session
  • Diffs: every change is shown as a reviewable diff
  • Sessions: multiple tasks per project, checkpoints and rewind
  • Subagents, skills and MCP: delegate sub-tasks, add reusable skills, connect MCP servers
  • Works with local and cloud models: llama.cpp locally, or OpenRouter, OpenAI and Claude with your own key

📄 Document Parsing

  • Attach files to agent conversations via the paperclip button in chat input
  • Supported formats: PDF, DOCX, TXT, Markdown, CSV, JSON, XML, YAML, TOML
  • Fully local parsing (no API calls) — PDF via lopdf, DOCX via quick-xml+zip
  • Text content is injected as agent context

🧩 MCP Marketplace (v2.0)

  • 20 curated MCP servers ready to install — GitHub, GitLab, Filesystem, Playwright, Puppeteer, Postgres, SQLite, Brave Search, Fetch, Memory, Sequential Thinking, Time, Google Maps, Slack, Google Drive, Context7, Linear, Notion, Sentry, Figma.
  • One-click install — the form opens pre-filled with command, args, and any required env vars.
  • Per-server start/stop with live status, error display, and tool list
  • Agent integration — running MCP tools are exposed as mcp_<server>__<tool> callable by the agent
  • Background startup — servers start after the window opens (no startup delay)
  • Smithery integration — browse and install from smithery.ai
  • Open with Ctrl+Shift+M

⚡ Smart Downloads

  • Automatic retry on network failures (up to 3 attempts)
  • Resume capability for interrupted downloads
  • Real-time progress tracking
  • Intelligent error handling

🔧 Advanced Features

  • Hardware detection (GPU, RAM, CPU)
  • On-demand binary downloads for GPU acceleration
  • Optimization settings
  • License management (Pro features)
  • Performance dashboard

Installation

Download Pre-built Binaries

Download the latest release for your platform:

Platform Installer
Windows (x64) .msi / .exe setup
macOS (Apple Silicon, Intel) .dmg
Linux (x64) .deb / .AppImage

Installers are published on the Releases page. Each ships with a .sig signature that the in-app updater verifies.

First Hour

Run the wedge end to end. No serving-stack migration.

Runtime prerequisite: you need a local inference runtime — Ollama, llama.cpp or vLLM — already running with a model loaded. OpenLLM Studio does not install the runtime or download a model during setup. The wizard inspects your hardware and records your configuration; it does not provision inference.

  1. Set up — seven stages. The first-run "Set up Private AI" wizard walks environment → use case → risk tier → sandbox key → integration → promotion → evidence, and emits an artifact at each gate (src/components/Onboarding/PrivateAiSetup.tsx, steps in src/components/Onboarding/steps/). Hardware detection runs on the way; the installer stays small (about 5 MB). Bring your own loaded local model — the wizard does not install one.
  2. Create the record — one confidential prompt. A cloud route is refused with a signed routing_decision deny receipt; the local answer carries actor, model, decision, prompt hash and a shared correlation id (schema §1).
  3. Export the pack. Download the signed ledger as JSON or CSV and generate a Compliance Passport with its SBOM hash and TRACE mapping (schema §2).
  4. Verify on a clean machine. The verifier CLI ships: cargo run --bin verify -- --passport pack.json --anchor <64-hex-key> --ledger ledger.json --json (src-tauri/src/bin/verify.rs, schema §4). Exit 0 with chain_independently_verified: true is the pass gate.
  5. Run the pilot. docs/PILOT_RUNBOOK.md covers prep, the five-step demo, expected artifacts and disclosure conditions. The pass/fail gates are in docs/WEDGE_ACCEPTANCE.md.

Building from Source

Prerequisites

  • Node.js 20.19+ or 22.12+
  • Rust (latest stable)
  • System dependencies (see below)

System Dependencies

Windows

# Install Microsoft Visual Studio C++ Build Tools
# Download from: https://visualstudio.microsoft.com/visual-cpp-build-tools/

macOS

xcode-select --install

Linux (Ubuntu/Debian)

sudo apt update
sudo apt install -y libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf libgtk-3-dev libayatana-appindicator3-dev

Build Steps

  1. Clone the repository:
git clone https://github.com/Icecubesaad/OpenLLM-Studio.git
cd OpenLLM-Studio
  1. Install dependencies:
npm ci
  1. Run in development mode:
npm run tauri dev
  1. Build for production:
npm run tauri build

The built application will be in src-tauri/target/release/bundle/.


Runtime Binaries

OpenLLM Studio uses llama.cpp binaries for local inference. These are downloaded on-demand based on your hardware.

Available Variants

Variant Platform Description
CPU All Pure CPU inference
CUDA 12.4 Windows, Linux NVIDIA GPUs
CUDA 13.1 Windows, Linux NVIDIA GPUs (newer)
Vulkan Windows, Linux AMD/Intel GPUs
Metal macOS Apple Silicon

Manual Download

If you prefer to manually download binaries, get them from the official llama.cpp releases page.

Binary Storage

  • Windows: %APPDATA%\com.openllm.studio\llama-binaries\
  • macOS: ~/Library/Application Support/com.openllm.studio/llama-binaries/
  • Linux: ~/.config/com.openllm.studio/llama-binaries/

The agent

The agent tab hands a task to a model and keeps you in control of what it does.

How it works

  1. Open a project: choose a folder to work in
  2. Describe the task: "Add input validation to the signup form and write tests"
  3. Review the plan: the agent lists what it intends to do
  4. Approve actions: file edits and commands are shown before they run
  5. Check the result: diffs, test output and a summary of what changed

Example tasks

  • "Create a REST API with Express and add error handling"
  • "Refactor this function to use async/await"
  • "Fix the bug in the authentication logic"
  • "Write tests for the user service"

Website

The marketing site lives in site/ (Vite + React, static output).

npm run site:dev     # http://localhost:1430
npm run site:build   # outputs site/dist, deployable to any static host

Configuration

HuggingFace Token

For accessing private models or increased rate limits: 1. Go to Settings 2. Navigate to HuggingFace section 3. Enter your HF token


Architecture

  • Frontend: React + TypeScript + Tailwind CSS (code-split via lazy imports)
  • Backend: Rust + Tauri v2
  • Database: SQLite (via tauri-plugin-sql + rusqlite)
  • AI Runtime: llama.cpp (on-demand download)
  • Model Recommendations: OpenRouter API
  • Document Parsing: lopdf (PDF), quick-xml + zip (DOCX)
  • MCP Protocol: JSON-RPC over stdio/SSE transport

Project Structure

OpenLLM-Studio/
├── src/                    # React frontend
│   ├── components/         # UI components
│   ├── hooks/              # Custom React hooks
│   ├── pages/              # Page components (LandingPage, CodingPage, SettingsPage, etc.)
│   ├── lib/                # Utilities, types, and Tauri bindings
│   ├── store/              # Zustand state management
│   └── test/               # Test suite
├── src-tauri/              # Rust backend
│   ├── src/                # Rust source code
│   │   ├── mcp/            # MCP server integration
│   │   ├── lsp/            # Language server protocol
│   │   ├── document_parser.rs  # PDF/DOCX/TXT parsing
│   │   └── coding_commands.rs  # File ops, search, agent chat
│   ├── migrations/         # Database migrations
│   └── icons/              # App icons
├── .github/workflows/      # CI/CD pipelines
└── public/                 # Static assets

Development

Frontend Development

npm run dev

Backend Development

cd src-tauri
cargo check
cargo test

Type Checking

npm run build

Troubleshooting

GPU Not Detected

  1. Ensure you have the latest GPU drivers installed
  2. For NVIDIA: Install CUDA Toolkit
  3. For AMD: Install latest drivers from AMD Support
  4. Check Settings → General → Hardware Info

Binary Download Fails

  1. Check your internet connection
  2. Try a different variant (Settings → General → Runtime Engine)
  3. Use CPU variant as fallback
  4. Check firewall/proxy settings

Build Errors

  1. Ensure Node.js version is 20.19+ or 22.12+
  2. Clear node_modules: rm -rf node_modules && npm ci
  3. Clear Rust build cache: cd src-tauri && cargo clean
  4. Install system dependencies (see above)

Contributing

Contributions are welcome! Please feel free to submit a Pull Reques

Extension points exported contracts — how you extend this code

browse all types & interfaces →

Core symbols most depended-on inside this repo

browse all functions →

Shape

Function 357
Method 148
Interface 65
Class 64
Enum 8

Languages

Rust60%
TypeScript40%

Modules by API surface

src-tauri/src/commands.rs56 symbols
src/lib/tauri.ts38 symbols
src-tauri/src/hardware.rs33 symbols
src-tauri/src/models.rs26 symbols
src-tauri/src/local_runtime.rs23 symbols
src-tauri/src/license.rs22 symbols
src-tauri/src/model_recommender.rs20 symbols
src-tauri/src/llama_binaries.rs20 symbols
src-tauri/src/ollama.rs19 symbols
src-tauri/src/optimization.rs18 symbols
src-tauri/src/db.rs18 symbols
src-tauri/src/download_manager.rs17 symbols

For agents

$ claude mcp add OpenLLM-Studio \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page