Sandbox
@signerlabs/Klee

Local macOS AI chat app for Apple Silicon

Klee is a signed macOS app for chatting with local language models on Apple Silicon using MLX. It handles model download, streaming chat, vision-capable models, and built-in tools for files, web search, and shell commands.

1,761 stars136 forksSwiftUpdated 6mo ago
Who it's for

Builders who want an offline chat app on Apple Silicon Macs.

What it delivers

You can chat with local models without sending your prompts or files to a cloud service.

What it does

Local inference

Runs models directly on your Mac so conversations stay on device.

Model download in app

Lets you pick a supported model and download it from the app, with resume support.

Built-in tools

Supports file read, file write, file list, file delete, web search, web fetch, and shell execution.

Vision support

Lets you attach images when using supported vision models.

Streaming responses

Shows tokens as they are generated.

Inline thinking

Displays the model's reasoning in a collapsible card.

How to get it

  1. 1Requires Xcode 16+ and macOS 15.0+.
    git clone https://github.com/signerlabs/Klee.git
    cd Klee
    open Klee.xcodeproj

README

Klee

A native macOS AI agent that runs entirely on your Mac. No cloud, no account, no subscription.

Klee uses MLX to run large language models directly on Apple Silicon, so your conversations never leave your device.

Features

  • 100% local inference -- your data stays on your Mac
  • No account or API key required -- download and start chatting
  • One-click model download -- pick a model, Klee handles the rest
  • Native tool calling -- the AI can read/write files, search the web, and run shell commands
  • Vision support -- attach images to your messages with supported VLM models
  • Web search -- search the web via Jina AI (free API key, configurable in sidebar)
  • Streaming responses -- tokens appear as they're generated
  • Inline thinking -- see the model's reasoning process in a collapsible card
  • Platform modules -- extend the AI with native Swift integrations (coming soon)
  • Lightweight -- ~75MB native SwiftUI app, no Electron, no Docker, no background services

System Requirements

RequirementMinimum
macOS15.0 (Sequoia) or later
ChipApple Silicon (M1 or later)
RAM16 GB (see model table below)

More RAM unlocks larger, more capable models:

RAMRecommended Models
16 GBQwen 3.5 9B, Qwen 3 8B, Gemma 3 12B, DeepSeek R1 8B
32 GBQwen 3.5 27B, Qwen 3.5 35B (MoE)
64 GBGemma 3 27B, DeepSeek R1 32B
96 GB+Qwen 3.5 122B (MoE)

Install

Klee is distributed directly as a signed macOS app (Developer ID), not through the App Store.

  1. Download the latest .dmg from Releases
  2. Drag Klee into your Applications folder
  3. Open Klee -- if macOS shows a Gatekeeper warning, go to System Settings > Privacy & Security and click "Open Anyway"

Usage

  1. Open Klee -- the app detects your system RAM and shows compatible models
  2. Download a model -- tap the download button next to any recommended model. Downloads resume automatically if interrupted
  3. Start chatting -- select the downloaded model and type your message

The AI can help you with file operations, web lookups, and shell commands -- just ask naturally.

Web Search Setup (Optional)

To enable web search:

  1. Get a free API key at jina.ai (no credit card needed)
  2. Click the sidebar toggle button (top-right)
  3. Enable Web Search and paste your API key
  4. Ask Klee to search for anything

Models are cached in ~/.klee/models/ and persist across app restarts.

Supported Models

All models are 4-bit quantized variants from the mlx-community on HuggingFace.

ModelSizeMin RAMVisionHuggingFace ID
Qwen 3.5 9B~6 GB16 GBYesmlx-community/Qwen3.5-9B-4bit
Qwen 3 8B~4.3 GB16 GBmlx-community/Qwen3-8B-4bit
Gemma 3 12B~8 GB16 GBmlx-community/gemma-3-12b-it-qat-4bit
DeepSeek R1 8B~4.6 GB16 GBmlx-community/DeepSeek-R1-0528-Qwen3-8B-4bit
Qwen 3.5 27B~16 GB32 GBYesmlx-community/Qwen3.5-27B-4bit
Qwen 3.5 35B (MoE)~20 GB32 GBYesmlx-community/Qwen3.5-35B-A3B-4bit
Gemma 3 27B~17 GB64 GBmlx-community/gemma-3-27b-it-qat-4bit
DeepSeek R1 32B~18 GB64 GBmlx-community/DeepSeek-R1-Distill-Qwen-32B-4bit
Qwen 3.5 122B (MoE)~70 GB96 GBYesmlx-community/Qwen3.5-122B-A10B-4bit

Built-in Tools

Klee uses native tool calling (mlx-swift-lm ToolCall API) -- no MCP, no Node.js, no external processes.

ToolDescription
file_writeCreate or overwrite files
file_readRead file contents
file_listList directory contents
file_deleteDelete files
web_searchSearch the web (requires Jina API key)
web_fetchFetch and extract webpage content
shell_execExecute shell commands (30s timeout)

Build from Source

Requires Xcode 16+ and macOS 15.0+.

git clone https://github.com/signerlabs/Klee.git
cd Klee
open Klee.xcodeproj

Select the Klee scheme, then build and run (Cmd+R). SPM dependency (mlx-swift-lm) will resolve automatically on first build.

Acknowledgements

Klee was built with components and architecture from ShipSwift.

License

MIT

Files in the repo

Repository payload5 top-level entries
  • .claude
  • Klee
  • Klee.xcodeproj
  • .gitignore
  • README.md

Discussion (0)

Ask about usage, or say what you built with it

Sign in to join the discussion.

No comments yet. Be the first to say what this is good for.

More other

🎨 Best DeepSeek Harness Design Plugin. The open-source Claude Design alternative. 🖥️ Local-first desktop app. 🖼️ Your coding agent becomes the design engine: prototypes, landing pages, dashboards, slides, images & video — real files, HTML/PDF/PPTX/MP4 export. 🤖 Claude Code / Codex / Cursor / DeepSeek Harness / OpenCode & 20+ CLIs via BYOK.

95k
HKUDS/
Vibe-Trading

"Vibe-Trading: Your Personal Trading Agent"

33k
tinyhumansai/
openhuman

OpenHuman is an open source personal AI for Mac, Windows and Linux — local-first memory, agent orchestration, and deep research.

40k

Your Personal AI Assistant; easy to install, deploy on your own machine or on the cloud; supports multiple chat apps with easily extensible capabilities.

35k

AIPOCH Open-Science is an open-source, local-first, model-agnostic AI research workbench for macOS, Windows, and Linux, with scientific agents, Python/R notebooks, data connectors, and reproducible provenance.

4k