Skip to content

oldpilluwu/Claude-Code-Desktop

Repository files navigation

Claude Code Desktop with Local LLM

Claude Code Desktop is an Electron desktop wrapper for the Claude Code CLI. It is designed for people who want the normal Claude Code terminal workflow in a desktop app while using local or custom Anthropic-compatible model providers such as Ollama, LiteLLM, vLLM, or a remote compatible endpoint.

The app does not reimplement Claude Code. It launches the claude CLI in a pseudo-terminal, applies the selected project, model, provider profile, and permission mode, then lets Claude Code handle the actual coding session.

What This App Is For

  • Run Claude Code from a desktop UI.
  • Use local models through Anthropic-compatible endpoints.
  • Save provider profiles for Ollama, LiteLLM, vLLM, or custom servers.
  • Pick a local project folder before starting a Claude Code session.
  • Keep Claude Code's existing tool use, permission prompts, terminal UI, and session behavior.

Requirements

  • Node.js 20 or newer.
  • npm.
  • Claude Code CLI installed and available as claude, or configured in the app settings.
  • A local or remote model provider if you are not using the default Claude Code provider.

For local model use, you also need a provider that exposes an Anthropic-compatible API. Common options are Ollama through a compatibility proxy, LiteLLM, vLLM, or a custom gateway.

Local Model Example

An Ollama-style provider profile may look like this:

ANTHROPIC_BASE_URL=http://localhost:11434
ANTHROPIC_AUTH_TOKEN=ollama
ANTHROPIC_API_KEY=

Then choose a model in the app, for example:

qwen3.5
qwen2.5-coder
llama3.1

The app launches Claude Code with the selected model:

claude --model qwen3.5

Development Setup

Install dependencies:

npm install

Run the app in development mode:

npm run dev

Run type checks:

npm run typecheck

Build the Electron main process and renderer:

npm run build

Start the built app locally:

npm start

Build On Windows

  1. Install Node.js 20 or newer.
  2. Install the Claude Code CLI.
  3. Open PowerShell in the project folder.
  4. Install dependencies:
npm install
  1. Build the app:
npm run build
  1. Start the built app:
npm start

The compiled files are written to dist/main and dist/renderer.

Build On Linux

  1. Install Node.js 20 or newer.
  2. Install the Claude Code CLI.
  3. Install dependencies:
npm install
  1. Build the app:
npm run build
  1. Start the built app:
npm start

The compiled files are written to dist/main and dist/renderer.

Packaging For Easy Installation

The project uses Electron Builder to create distributable desktop artifacts. Generated files are written to ../SRClaude-installers so the app bundle does not get caught by editor file watchers inside the repo.

Recommended release artifacts:

  • Windows: .exe installer or portable .exe.
  • Linux: .AppImage for broad compatibility.
  • Linux: .deb for Debian and Ubuntu users.
  • Linux: .rpm for Fedora, RHEL, and openSUSE users.

Package Commands

Create the Windows installer and portable executable:

npm run dist:win

Create a Linux portable archive from Windows:

npm run dist:linux

Create Linux AppImage, deb, and rpm packages from a Linux or Docker builder with mksquashfs and fpm available:

npm run dist:linux:packages

Before public Linux releases, replace the placeholder Linux maintainer email in package.json with a real maintainer address.

Installing Without Running Commands

For end users, the easiest installation flow should be:

  1. Open the project's Releases page.
  2. Download the installer for your operating system.
  3. Install and open the app.
  4. Open Settings.
  5. Confirm the Claude Code CLI path if the app does not detect it automatically.
  6. Add a provider profile for your local model provider if needed.
  7. Select a project folder and start a new session.

Windows User Guide

Download the Windows .exe installer from Releases. Double-click it and follow the installer. After installation, launch Claude Code Desktop from the Start menu.

If Windows SmartScreen appears, choose More info and run the app only if you trust the release source. For a smoother public release, sign the installer with a trusted code-signing certificate.

Linux User Guide

Download the .AppImage from Releases for the simplest install experience. Mark it as executable from your file manager if prompted, then double-click it.

For Debian or Ubuntu, download the .deb package and install it with your system package installer. For Fedora, RHEL, or openSUSE, download the .rpm package and install it with your system package installer.

Notes For Local Models

Local models vary a lot in reliability. Claude Code depends on strong instruction following, tool use, long context, and structured output. If a model struggles, try a stronger coding model, a larger context window, or a provider gateway with better Anthropic API compatibility.

The desktop app should make permission modes visible before launching a session. Be careful with permissive modes because Claude Code can edit files and run shell commands in the selected project.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages