deepLocal is an open-source, local-first AI workbench for downloading, managing, chatting with, and serving GGUF models on your own computer.
It pairs a Rust local runtime with a React desktop-style UI. The goal is simple: make local AI easier to run, inspect, and integrate without sending prompts or model files to a remote service.
- Search and download GGUF models from Hugging Face.
- Track download progress inline and cancel active downloads.
- Store downloaded models under
./models/. - Load local GGUF models through
llama.cpp. - Chat with loaded models in the browser UI.
- Render Markdown responses in chat.
- Expose an OpenAI-compatible local API at
http://127.0.0.1:14567/v1. - Keep Hugging Face tokens local to your machine.
From the project root:
./scripts/start-dev.shThen open:
http://127.0.0.1:5173/
The script starts both the backend and frontend. On macOS, it also tries to
install llama.cpp with Homebrew if llama-server is missing.
Useful commands:
./scripts/start-dev.sh --restart
./scripts/start-dev.sh --stop
./scripts/start-dev.sh --build
./scripts/uninstall-local.sh
DEEPLOCAL_SKIP_LLAMA_INSTALL=1 ./scripts/start-dev.shUse ./scripts/uninstall-local.sh --remove-llama to also remove Homebrew
llama.cpp after cleaning local project artifacts.
- macOS is the best-tested development platform.
- Rust toolchain with Cargo.
- Node.js and npm.
curlandlsof.- Homebrew is recommended on macOS for automatic
llama.cppinstallation.
If llama-server is already available in PATH, deepLocal uses it directly.
deepLocal binds the API to 127.0.0.1 by default, so only local apps on the same
computer can call it.
Advanced users can opt in to LAN access with either a CLI flag:
cargo run -p deeplocal -- serve --host 0.0.0.0or a config file:
[server]
host = "0.0.0.0"
port = 14567
enable_cors = trueBinding to 0.0.0.0 exposes the API to other devices that can reach your
machine. Those clients may send prompts to loaded models and read local model
responses. Only enable it on trusted networks, and prefer 127.0.0.1 for normal
desktop use. deepLocal prints a warning when public binding is enabled.
Base URL:
http://127.0.0.1:14567/v1
Endpoints:
GET /v1/models
POST /v1/chat/completions
Example:
curl http://127.0.0.1:14567/v1/chat/completions \
-H 'content-type: application/json' \
-d '{
"model": "your-loaded-model-id",
"messages": [
{ "role": "user", "content": "Explain deepLocal in one sentence." }
]
}'Load a model in the UI first, then use that model ID in API calls.
Python with the OpenAI SDK:
from openai import OpenAI
client = OpenAI(
base_url="http://127.0.0.1:14567/v1",
api_key="not-needed",
)
response = client.chat.completions.create(
model="your-loaded-model-id",
messages=[
{"role": "user", "content": "Explain deepLocal in one sentence."},
],
)
print(response.choices[0].message.content)JavaScript or TypeScript with the OpenAI SDK:
import OpenAI from "openai";
const client = new OpenAI({
baseURL: "http://127.0.0.1:14567/v1",
apiKey: "not-needed",
});
const response = await client.chat.completions.create({
model: "your-loaded-model-id",
messages: [
{ role: "user", content: "Explain deepLocal in one sentence." },
],
});
console.log(response.choices[0]?.message?.content);Public model downloads work without a token. Gated models require a Hugging Face token with read access and license acceptance for the exact repository.
You can paste the token in the Settings page or set HF_TOKEN /
HUGGINGFACE_TOKEN before starting the backend. Tokens are not stored in this
repository.
Hugging Face GGUF search uses a safe default blocked-keyword policy to hide models whose repository or file names match configured terms. You can inspect the active policy and add custom blocked keywords from the Settings page.
Advanced users can customize the startup policy in a config file:
[search_filters]
blocked_keywords = ["nsfw", "uncensored", "custom-term"]Keep the safe defaults unless you intentionally want to change what appears in model search results.
apps/
cli/ Command-line entry point
desktop/ React desktop-style UI
crates/
api/ HTTP routes and OpenAI-compatible endpoints
core/ Shared domain types and traits
hardware/ Local hardware detection
runtime/ Model runtime manager and backend adapters
storage/ SQLite persistence
config/ Example runtime configuration
scripts/ Development helper scripts
Contributions are welcome. A good first path is:
- Read CONTRIBUTING.md.
- Run
./scripts/start-dev.sh. - Pick an open issue with clear acceptance criteria.
- Keep pull requests small and focused.
Useful local checks:
cargo check
cargo test
./scripts/start-dev.sh --buildDo not commit downloaded models, tokens, local databases, target/,
node_modules/, or build output.
deepLocal is released under the MIT License.