# LocalFleet ![License: MIT](https://img.shields.io/badge/License-MIT-green.svg) ![TypeScript](https://img.shields.io/badge/TypeScript-strict-3178C6?logo=typescript&logoColor=white) ![Electron](https://img.shields.io/badge/Electron-32-47848F?logo=electron&logoColor=white) ![React](https://img.shields.io/badge/React-18-61DAFB?logo=react&logoColor=black) ![Node](https://img.shields.io/badge/Node-%3E%3D22-339933?logo=nodedotjs&logoColor=white) LocalFleet is a local-first chat app where each bot is a real agent — backed by either [LM Studio](https://lmstudio.ai) (OpenAI-compatible) or the [GitHub Copilot CLI](https://github.com/github/copilot-cli) — with its own full-desktop Linux container on a shared filesystem, plus basic routines. It runs in the background from a system-tray supervisor, binding to `127.0.0.1` only. ## Prerequisites - **Node.js >= 22** - **pnpm** (installed automatically via `corepack` by the setup script) - **Docker Desktop** (or a Docker daemon with WSL2 on Windows), running - **LM Studio** serving a model at `http://127.0.0.1:1234/v1` — for `lmstudio` bots - **GitHub Copilot CLI** installed and logged in (`npm install -g @github/copilot`, then run `copilot` once to sign in) — for `ghcp` bots ## Quick start Clone the repo, then run the one-command setup for your OS: - **Windows:** `scripts\setup.ps1` - **macOS / Linux:** `./scripts/setup.sh` The script verifies prerequisites, runs `pnpm install`, builds the web bundle (`pnpm build:web`), builds the desktop container image (`localfleet/xfce-desktop:mvp`), and starts the tray supervisor (`pnpm start`). ## Adding a bot Create a bot via the UI (or `POST /bots {name, engine, model?, system?}`): - **LM Studio bot:** set `engine` to `lmstudio` and `model` to a model id served by LM Studio at `http://127.0.0.1:1234/v1`. Make sure the model is loaded and the server is running in LM Studio. - **GitHub Copilot bot:** set `engine` to `ghcp`. Requires the `copilot` CLI to be installed and signed in on the host. Each bot can open its own desktop container (bind-mounted to the shared `fleet-workspace/`) from the computer panel. ## License LocalFleet's own source is released under the [MIT License](LICENSE). Portions are adapted from [OpenMausBot](https://github.com/milind-soni/OpenMausBot), licensed under the Apache License 2.0. Those adapted modules — the driver contracts, the OpenAI-compatible and ACP driver patterns, and the container-computer lifecycle — retain their attribution in [`third_party/NOTICE`](third_party/NOTICE) and in file headers, as that license requires. LocalFleet is an independent project inspired by Grok Bot; it is not affiliated with or endorsed by xAI or GitHub.