Skip to content

armgit / jan

Public Imported from GitHub
0

Jan is an open source alternative to ChatGPT that runs 100% offline on your computer.

docs: update for v0.8.0 (#8164)

Akarshan Biswas978647257b37
diff --git a/docs/src/pages/changelog/2026-05-20-jan-v0.8.0.mdx b/docs/src/pages/changelog/2026-05-20-jan-v0.8.0.mdx
new file mode 100644
index 000000000..8bf3839d8
--- /dev/null
+++ b/docs/src/pages/changelog/2026-05-20-jan-v0.8.0.mdx
@@ -0,0 +1,130 @@
+---
+title: "Jan v0.8.0: Multi-Token Prediction, llama.cpp Router Mode & Inline MCP Approval"
+version: 0.8.0
+description: "Jan v0.8.0 ships Multi-Token Prediction for compatible llama.cpp models, a unified llama.cpp router process, inline MCP tool approval with citation cards, per-model fit labels, bulk model deletion, per-thread activity indicators, and a backend dependency checker."
+date: 2026-05-20
+---
+
+import ChangelogHeader from "@/components/Changelog/ChangelogHeader"
+
+<ChangelogHeader
+ title="Jan v0.8.0: Multi-Token Prediction, llama.cpp Router Mode & Inline MCP Approval"
+ date="2026-05-20"
+/>
+
+# Highlights
+
+**Multi-Token Prediction (MTP)**
+
+Jan now supports llama.cpp's Multi-Token Prediction for compatible models (e.g. GLM 4.5/4.6 and other architectures with MTP heads). Jan detects MTP-capable models from GGUF metadata (`{arch}.nextn_predict_layers`) at import time and exposes a per-model toggle plus draft tunables (`spec-draft-n-max`, `spec-draft-n-min`, `spec-draft-p-min`) in Model Settings. When enabled, `spec-type = draft-mtp` is emitted into the router preset, letting the model draft multiple tokens per step for faster generation. Requires the bundled llama.cpp build b9193 or newer; older backends disable the toggle with an upgrade hint.
+
+**llama.cpp Router Mode**
+
+Jan's local inference engine now runs as a single unified router process instead of spawning a separate server for every model. The router loads and unloads models on demand, so switching between them is faster and uses less memory. This release also adds:
+
+- A reasoning toggle (brain icon in the chat input) to switch thinking mode — auto / on / off — per model without reloading; only available when using the llama.cpp provider
+- Live prompt-processing progress so you see a percentage while the model processes your input rather than a bare spinner
+- A "Loading model…" indicator when the router cold-starts a model
+- A dialog prompting you to confirm or cancel when you close Jan while a model is still working
+
+**Inline MCP Tool Approval & Citation Cards**
+
+MCP tool calls no longer interrupt the conversation with a blocking dialog. Approval panels now appear inline inside each tool card, showing the exact arguments before you accept or deny. RAG results are displayed as numbered citation cards with source previews inside the tool output, and assistant responses include superscript markers linking back to each matched source (cosine similarity ≥ 0.65). Web search results show citation cards in the tool output but do not inject superscript markers into the response text.
+
+**Model Fit Labels & Bulk Delete**
+
+The Hub and provider model lists now show a colored fit pill — **Fits**, **May be slow**, or **Won't fit** — based on your hardware, without downloading anything. Model quantizations are grouped as **Small**, **Balanced**, or **Large** with a Recommended tag on the default download. A new **Delete All** button removes every managed model download at once and shows the total disk space to be freed (imported models are left untouched). Failed downloads no longer get stuck — they are cleared from the queue and a toast is shown. To retry, restart the download from the Hub or provider list.
+
+**Provider List Redesign**
+
+The provider list in Settings is now split into **Local** (llama.cpp, MLX) and **Remote** (OpenAI, Anthropic, Google, Groq, and others) sections so it is immediately clear which providers run on your device and which send data to the cloud.
+
+**Per-Thread Activity Indicators & Navigation**
+
+The thread sidebar now shows a small spinner next to each thread that is actively generating, loading a model, or running tools. Navigating away from an active thread no longer interrupts it — the work keeps running and the UI restores the correct state when you return. Deleting a thread properly stops all in-flight activity.
+
+**Audio Attachments**
+
+You can now attach audio files (WAV, MP3) directly in the chat input alongside images and documents. The **Add Audio** option appears when the active model supports audio input. Attached files show a preview chip with the filename and duration before sending.
+
+**File Attachment Progress Bar**
+
+File uploads now display a progress bar so you can see how much has transferred before sending your message.
+
+**Backend Dependency Checker**
+
+After installing a llama.cpp backend, Jan scans for required libraries (CUDA, Vulkan, cuDNN) and displays a checklist of anything missing with links to the official installers.
+
+**KV Cache Default Reverted to f16**
+
+The default KV cache type was temporarily changed to `q8_0` in a prior release and has been reverted to `f16` as a safer default. This change is not automatically migrated — if your models fail to load after updating, go to **Settings > llama.cpp > KV Cache K Type / V Type** and set both back to `f16`.
+
+**Vercel AI SDK v6**
+
+OpenAI, Anthropic, and Gemini model lists are now auto-populated when you enter an API key, with capabilities (tools, vision, audio) inferred from model IDs. Fallback API keys persist across restarts. Gemini 3.0 models route through Google's native SDK for correct tool-calling behavior. Error messages for context overflows and template errors are clearer and more actionable.
+
+**Server-Side MCP Tool Execution**
+
+A new `/v1/orchestrations` endpoint runs MCP tool calls server-side on `localhost:1337`, and a Settings toggle lets you enable the same orchestrator on `/v1/chat/completions`. An optional lightweight router model can be configured to pre-select which MCP servers a request needs, keeping the tool list short for the main model.
+
+**Message Queue & Editable Pending Chips**
+
+You can now keep typing while a response is streaming. Queued messages appear as editable chips in the input area, send automatically as soon as the current turn finishes, and the Stop button uses a two-stage interaction so you can cancel either the queue or the active generation.
+
+**Auto-Summarized Thread Titles**
+
+After your first response, Jan summarizes the thread title in the background using a cheap inference pass that can be cancelled if you rename the thread yourself.
+
+**Chain of Thought, Regenerate & Edit Improvements**
+
+Failed assistant responses now show a regenerate button instead of leaving the conversation stuck. A new Chain of Thought rendering surfaces step-by-step reasoning more cleanly, and you can scroll through streaming thinking content without being auto-interrupted.
+
+**Settings, Assistants & UX**
+
+- Settings navigation has been reorganized and the MCP section is now called **Connectors**
+- A **Default Assistant** setting and a chat-bar assistant picker (shown only when you have more than one assistant) make it easier to switch personas
+- Audio, vision, and document attachment options are now hidden when the active model doesn't support them
+- Document attachments accept many more file extensions
+- Toast placement is configurable, and message timestamps render in your local timezone
+- Hindi, Korean, and Catalan locales were added; existing locales were updated for the new strings
+- Up Arrow in an empty input restores your last sent message
+- Factory Reset offers options to preserve user data
+- All user settings are now stored in local files instead of browser localStorage, preventing data loss on reload
+
+**Remote Provider Improvements**
+
+- **MiniMax** has been added as a built-in cloud provider, defaulting to M2.7
+- Configurable token limits and auto-compact behavior for remote providers
+- Restored Gemini SDK adapter for MCP tool calls, and Groq no longer breaks on follow-up turns after a reasoning response
+- Mistral Magistral models stream through a dedicated adapter that understands their thinking part shape
+- Gemma's `<thought>` reasoning tags are recognized by the parser and rendered as a collapsible reasoning block instead of appearing as raw text in the response
+
+**Bug Fixes**
+
+- llama.cpp context meter now accounts for tool-heavy chats, and `ctx_size` overflow no longer breaks reloading a chat
+- CUDA backend is skipped when the GPU has insufficient memory, and CUDA library paths are no longer overwritten by other library setup
+- Flatpak builds discover CUDA libraries and GL extensions for NVIDIA GPUs
+- PDF parser panics are caught and a file size limit is enforced on uploads
+- Stdio MCP transports verify `tools/list` before signalling ready, and reconnect automatically on disconnect; tool parameter schemas missing `type` are normalized for strict providers
+- The MCP startup error dialog is shown again when servers fail to launch
+- Internal RAG tools used for embedded documents are auto-approved
+- Project file ingestion progress now persists across navigation, file upload errors are surfaced in plain language, and long URLs no longer overflow the project view
+- The Hub fit badge and MLX download UI no longer get stuck after a failed download
+- Spell check setting is honored in the Assistant editor's Instructions and Description fields
+- Assistant identity preamble is stripped on upgrade from the older v2 default prompt
+- Jan CLI install detection now works even when the install destination isn't on the app's PATH
+- App config persists in the Tauri app data directory, and Windows extended-length paths open correctly in File Explorer
+- Left sidebar maximum width reduced so content no longer cramps
+- Chat input and new-chat buttons are disabled during engine downloads
+
+# Known Issues
+
+- **KV cache type is no longer auto-migrated.** A prior release temporarily defaulted the llama.cpp KV cache to `q8_0`, which broke loading for some models that require flash attention. v0.8.0 reverts the default to `f16` and removes the previous `f16 → q8_0` migration code. Existing installs are **not** migrated automatically — if a model fails to load after updating, go to **Settings > llama.cpp > KV Cache K Type / V Type** and switch both back to `f16` manually.
+- **Migration glitches when upgrading from an older release.** If the app behaves oddly after upgrade (settings not applying, model lists looking wrong, etc.), open **Settings > General > Factory Reset** and run the reset with **Keep models and configs** enabled. This clears stale app state without deleting your downloaded models or provider configuration.
+- **MLX support is experimental.** The MLX engine is still under active development on Apple Silicon and may exhibit instability or compatibility gaps compared to the llama.cpp engine.
+
+---
+
+Update your Jan or [download the latest](https://jan.ai/).
+
+For the complete list of changes, see the [GitHub release notes](https://github.com/janhq/jan/releases/tag/v0.8.0)
diff --git a/docs/src/pages/docs/desktop/_assets/file-upload.png b/docs/src/pages/docs/desktop/_assets/file-upload.png
index eaabc2488..8e3d3a72f 100644
Binary files a/docs/src/pages/docs/desktop/_assets/file-upload.png and b/docs/src/pages/docs/desktop/_assets/file-upload.png differ
diff --git a/docs/src/pages/docs/desktop/_assets/google.png b/docs/src/pages/docs/desktop/_assets/google.png
index 751c473d7..d61f82bb2 100644
Binary files a/docs/src/pages/docs/desktop/_assets/google.png and b/docs/src/pages/docs/desktop/_assets/google.png differ
diff --git a/docs/src/pages/docs/desktop/_assets/hardware-settings.png b/docs/src/pages/docs/desktop/_assets/hardware-settings.png
index 28cbc65b2..04f8897ed 100644
Binary files a/docs/src/pages/docs/desktop/_assets/hardware-settings.png and b/docs/src/pages/docs/desktop/_assets/hardware-settings.png differ
diff --git a/docs/src/pages/docs/desktop/_assets/hub-downloading.png b/docs/src/pages/docs/desktop/_assets/hub-downloading.png
index 2542a077a..b8a22d080 100644
Binary files a/docs/src/pages/docs/desktop/_assets/hub-downloading.png and b/docs/src/pages/docs/desktop/_assets/hub-downloading.png differ
diff --git a/docs/src/pages/docs/desktop/_assets/hub-search.png b/docs/src/pages/docs/desktop/_assets/hub-search.png
index fb2b945dc..4afce9177 100644
Binary files a/docs/src/pages/docs/desktop/_assets/hub-search.png and b/docs/src/pages/docs/desktop/_assets/hub-search.png differ
diff --git a/docs/src/pages/docs/desktop/_assets/hub.png b/docs/src/pages/docs/desktop/_assets/hub.png
index f1a219023..a03a13756 100644
Binary files a/docs/src/pages/docs/desktop/_assets/hub.png and b/docs/src/pages/docs/desktop/_assets/hub.png differ
diff --git a/docs/src/pages/docs/desktop/_assets/interface-settings.png b/docs/src/pages/docs/desktop/_assets/interface-settings.png
index a8376bd95..88700b423 100644
Binary files a/docs/src/pages/docs/desktop/_assets/interface-settings.png and b/docs/src/pages/docs/desktop/_assets/interface-settings.png differ
diff --git a/docs/src/pages/docs/desktop/_assets/llama-cpp-import.png b/docs/src/pages/docs/desktop/_assets/llama-cpp-import.png
index d41277837..0ceaa1117 100644
Binary files a/docs/src/pages/docs/desktop/_assets/llama-cpp-import.png and b/docs/src/pages/docs/desktop/_assets/llama-cpp-import.png differ
diff --git a/docs/src/pages/docs/desktop/_assets/llama-cpp-settings.png b/docs/src/pages/docs/desktop/_assets/llama-cpp-settings.png
index f49e18237..9e600e282 100644
Binary files a/docs/src/pages/docs/desktop/_assets/llama-cpp-settings.png and b/docs/src/pages/docs/desktop/_assets/llama-cpp-settings.png differ
diff --git a/docs/src/pages/docs/desktop/_assets/local-api-server.png b/docs/src/pages/docs/desktop/_assets/local-api-server.png
index c4f0e11e2..35412d04d 100644
Binary files a/docs/src/pages/docs/desktop/_assets/local-api-server.png and b/docs/src/pages/docs/desktop/_assets/local-api-server.png differ
diff --git a/docs/src/pages/docs/desktop/_assets/projects.png b/docs/src/pages/docs/desktop/_assets/projects.png
index 44bed2dd1..a5b404f84 100644
Binary files a/docs/src/pages/docs/desktop/_assets/projects.png and b/docs/src/pages/docs/desktop/_assets/projects.png differ
diff --git a/docs/src/pages/docs/desktop/_assets/provider-anthropic.png b/docs/src/pages/docs/desktop/_assets/provider-anthropic.png
index 1cc6ec955..06b61c60e 100644
Binary files a/docs/src/pages/docs/desktop/_assets/provider-anthropic.png and b/docs/src/pages/docs/desktop/_assets/provider-anthropic.png differ
diff --git a/docs/src/pages/docs/desktop/_assets/provider-azure.png b/docs/src/pages/docs/desktop/_assets/provider-azure.png
index 7d367ede1..66e88ffbb 100644
Binary files a/docs/src/pages/docs/desktop/_assets/provider-azure.png and b/docs/src/pages/docs/desktop/_assets/provider-azure.png differ
diff --git a/docs/src/pages/docs/desktop/_assets/provider-gemini.png b/docs/src/pages/docs/desktop/_assets/provider-gemini.png
index fd36e4e1c..200e6d0cd 100644
Binary files a/docs/src/pages/docs/desktop/_assets/provider-gemini.png and b/docs/src/pages/docs/desktop/_assets/provider-gemini.png differ
diff --git a/docs/src/pages/docs/desktop/_assets/provider-groq.png b/docs/src/pages/docs/desktop/_assets/provider-groq.png
index bf2757890..388ee62b8 100644
Binary files a/docs/src/pages/docs/desktop/_assets/provider-groq.png and b/docs/src/pages/docs/desktop/_assets/provider-groq.png differ
diff --git a/docs/src/pages/docs/desktop/_assets/provider-huggingface.png b/docs/src/pages/docs/desktop/_assets/provider-huggingface.png
index 4db3a51c3..b75df7fb8 100644
Binary files a/docs/src/pages/docs/desktop/_assets/provider-huggingface.png and b/docs/src/pages/docs/desktop/_assets/provider-huggingface.png differ
diff --git a/docs/src/pages/docs/desktop/_assets/provider-mistral.png b/docs/src/pages/docs/desktop/_assets/provider-mistral.png
index 975611bae..c9d75a21a 100644
Binary files a/docs/src/pages/docs/desktop/_assets/provider-mistral.png and b/docs/src/pages/docs/desktop/_assets/provider-mistral.png differ
diff --git a/docs/src/pages/docs/desktop/_assets/provider-openai.png b/docs/src/pages/docs/desktop/_assets/provider-openai.png
index 21be255ed..47e7a0afd 100644
Binary files a/docs/src/pages/docs/desktop/_assets/provider-openai.png and b/docs/src/pages/docs/desktop/_assets/provider-openai.png differ
diff --git a/docs/src/pages/docs/desktop/_assets/provider-openrouter.png b/docs/src/pages/docs/desktop/_assets/provider-openrouter.png
index 35bfd21e5..c4ac8aed3 100644
Binary files a/docs/src/pages/docs/desktop/_assets/provider-openrouter.png and b/docs/src/pages/docs/desktop/_assets/provider-openrouter.png differ
diff --git a/docs/src/pages/docs/desktop/_assets/server-troubleshooting.png b/docs/src/pages/docs/desktop/_assets/server-troubleshooting.png
index 1b53fea02..d64ac6860 100644
Binary files a/docs/src/pages/docs/desktop/_assets/server-troubleshooting.png and b/docs/src/pages/docs/desktop/_assets/server-troubleshooting.png differ
diff --git a/docs/src/pages/docs/desktop/_assets/spell-check-settings.png b/docs/src/pages/docs/desktop/_assets/spell-check-settings.png
index fcfdcf6fa..3d94c0f5e 100644
Binary files a/docs/src/pages/docs/desktop/_assets/spell-check-settings.png and b/docs/src/pages/docs/desktop/_assets/spell-check-settings.png differ
diff --git a/docs/src/pages/docs/desktop/agents.mdx b/docs/src/pages/docs/desktop/agents.mdx
index 931a3b766..76a727f19 100644
--- a/docs/src/pages/docs/desktop/agents.mdx
+++ b/docs/src/pages/docs/desktop/agents.mdx
@@ -6,65 +6,35 @@ keywords:
Jan,
Jan AI,
agents,
- OpenClaw,
autonomous agent,
local AI agent,
- personal assistant,
AI automation,
+ Claude Code,
]
---
-import { Callout, Steps } from 'nextra/components'
+import { Callout } from 'nextra/components'
# Agents
-<Callout type="info">
-Available since **Jan 0.7.8** (March 2026).
-</Callout>
-
Jan supports autonomous AI agents that run entirely on your own hardware — no cloud required.
-## OpenClaw Agent
-
-OpenClaw is Jan's first default agent. Unlike a chatbot that only answers questions, OpenClaw acts as a personal assistant that can take real actions on your behalf.
-
-**What it can do:**
-- Read and manage local files on your computer
-- Manage your calendar
-- Send and receive messages via WhatsApp, Discord, or Slack
-- Execute commands and automate tasks
-
-**Skills:**
-Extend OpenClaw with skills to add new capabilities and integrations.
-
-<Steps>
-
-### Enable OpenClaw
-
-Go to **Settings > Integrations > OpenClaw** and click **Start** next to **Enable OpenClaw**. Jan will automatically walk you through the required installation steps — just wait for the process to complete.
-
-![OpenClaw Channels](./_assets/openclaw-integration.png)
-
-A **Setting Up Remote Access** dialog will appear, automatically checking Node.js, installing OpenClaw, configuring it, and starting the gateway. Wait until all steps complete before moving on.
-
-![OpenClaw Gateway Setup](./_assets/openclaw-gateway-setup.png)
-
-### Add Channels
-
-Once setup is complete, connect your messaging channels under the **Channels** section. Click the **Settings** icon on the channel you want to add — for example, WhatsApp — and a setup dialog will appear.
-
-![WhatsApp Setup](./_assets/openclaw-whatsapp-setup.png)
-
-Click **Start Setup** and Jan will configure everything automatically, then display a QR code. Scan it with your WhatsApp app to pair your account. Once connected, you can chat with Jan directly from your phone.
+<Callout type="warning">
+The OpenClaw agent integration was removed in **Jan v0.7.9** due to resource usage and security concerns in local AI environments. Agent support is being redesigned for a simpler, safer experience in a future release.
+</Callout>
-### Start Chatting
+## Launch Agents via CLI
-Click **New Agent Chat** from the left sidebar (or press `⌘M`) to open a new agent session and start interacting with OpenClaw.
+You can run agents directly from your terminal using the Jan CLI. The `jan launch` command starts a local model and wires it to an agent automatically — no manual configuration needed.
-![New Agent Chat](./_assets/agents-new-agent-chat.png)
+```bash
+jan launch claude # pick a model, then run Claude Code against it
+jan launch claude --model janhq/Jan-code-4b-gguf # use a specific model with Claude Code
+jan launch openclaw --model janhq/Jan-code-4b-gguf # wire openclaw to a local model
+```
-</Steps>
+See the [Jan CLI](/docs/desktop/cli) documentation for full options.
## What's Next
-You're all set — start from here and explore what OpenClaw can do for you. We'll be adding a lot of useful real-world use cases and guides to the docs soon.
+We're exploring a simpler, safer approach to agentic workflows in Jan. Stay tuned for updates.
diff --git a/docs/src/pages/docs/desktop/api-server.mdx b/docs/src/pages/docs/desktop/api-server.mdx
index 72353adff..72606fc15 100644
--- a/docs/src/pages/docs/desktop/api-server.mdx
+++ b/docs/src/pages/docs/desktop/api-server.mdx
@@ -70,15 +70,21 @@ The base path for all API endpoints.
- You can change this or leave it empty if desired.
### API Key
-A mandatory secret key to authenticate requests.
-- You must set a key. It can be any string (e.g., `a-secure-password`).
-- All API requests must include this key in the `Authorization: Bearer YOUR_API_KEY` header.
+A secret key used to authenticate requests.
+- Set any string (e.g., `a-secure-password`). If a key is configured, requests must include it in the `Authorization: Bearer YOUR_API_KEY` header.
+- Leave the field empty to disable authentication (not recommended when binding to `0.0.0.0`).
### Trusted Hosts
A comma-separated list of hostnames allowed to access the server. This provides an additional layer of security when the server is exposed on your network.
+### Request Timeout
+How long (in seconds) the server waits for a response from the local model before giving up. Increase this if you are running large models on slow hardware and see request timeouts.
+
## Advanced Settings
+### Execute Tools on Server
+- **(Disabled by default)** When enabled, MCP tool calls triggered through the `/v1/chat/completions` endpoint are executed server-side rather than being returned to the client to dispatch. Leave this off if your client app handles tool execution itself.
+
### Cross-Origin Resource Sharing (CORS)
- **(Enabled by default)** Allows web applications (like a custom web UI you are building) running on different domains to make requests to the API server.
- **Disable this** if your API will only be accessed by non-browser-based applications (e.g., scripts, command-line tools) for slightly improved security.
diff --git a/docs/src/pages/docs/desktop/assistants.mdx b/docs/src/pages/docs/desktop/assistants.mdx
index f5ba42e0b..6040193d1 100644
--- a/docs/src/pages/docs/desktop/assistants.mdx
+++ b/docs/src/pages/docs/desktop/assistants.mdx
@@ -53,13 +53,6 @@ Respond in a casual, friendly tone. Keep explanations brief and use simple langu
Provide examples when explaining complex topics.
```
-Or:
-
-```
-Respond in a casual, friendly tone. Keep explanations brief and use simple language.
-Provide examples when explaining complex topics.
-```
-
## Best Practices
- Be clear and specific about the desired behavior for each assistant.
- Include preferences for formatting, tone, or style.
diff --git a/docs/src/pages/docs/desktop/cli.mdx b/docs/src/pages/docs/desktop/cli.mdx
index 9e708edc0..db0251939 100644
--- a/docs/src/pages/docs/desktop/cli.mdx
+++ b/docs/src/pages/docs/desktop/cli.mdx
@@ -10,7 +10,6 @@ keywords:
serve models,
AI agents,
Claude Code,
- OpenClaw,
llama.cpp,
MLX,
]
@@ -47,7 +46,6 @@ Commands:
launch Start a local model, then launch an AI agent with it pre-wired (env vars set automatically)
threads List and inspect conversation threads saved by the Jan app
models List and load models installed in the Jan data folder
- agent pi-mono-style minimal agent
help Print this message or the help of the given subcommand(s)
Options:
@@ -60,7 +58,6 @@ Options:
Examples:
jan launch claude # pick a model, then run Claude Code against it
jan launch claude --model janhq/Jan-code-4b-gguf # use a specific model
- jan launch openclaw --model janhq/Jan-code-4b-gguf # wire openclaw to a local model
jan serve janhq/Jan-code-4b-gguf # expose a model at localhost:6767/v1
jan serve janhq/Jan-code-4b-gguf --fit # auto-fit context to available VRAM
jan serve janhq/Jan-code-4b-gguf --detach # run in the background
@@ -74,7 +71,7 @@ Models downloaded in the Jan desktop app are automatically available to the CLI.
Jan CLI is installed automatically when you launch the Jan desktop app for the first time — no extra steps needed. You can uninstall or reinstall it at any time from **Settings > General > Jan CLI**.
<Callout type="info">
-The CLI binary is installed at `~/.local/bin/jan` on macOS/Linux. Make sure this path is in your `$PATH` to use the `jan` command from any terminal.
+On macOS/Linux the installer writes the binary to `/usr/local/bin/jan` when that directory is writable, otherwise it falls back to `~/.local/bin/jan`. Make sure the chosen directory is on your `$PATH` so the `jan` command works from any terminal.
</Callout>
The Jan desktop app helps you manage inference backends (LlamaCPP, MLX) and models — or use the CLI to manage them. Both share the same data folder, so models installed via either interface are available to both.
@@ -87,7 +84,7 @@ Getting started takes a single command:
jan launch
```
-Jan will ask you to pick an agent (Claude Code, OpenClaw, opencode), then automatically download and set up Jan's foundation model and wire it to the agent for you. No config files, no API keys, no cloud — your agent runs entirely on your own hardware.
+Jan will ask you to pick an agent (Claude Code or OpenClaw), then automatically download and set up Jan's foundation model and wire it to the agent for you. No config files, no API keys, no cloud — your agent runs entirely on your own hardware.
---
@@ -105,15 +102,16 @@ jan serve [MODEL_ID] [OPTIONS]
|--------|-------------|---------|
| `MODEL_ID` | Model ID to load (omit to pick interactively). Can be a local model ID or a HuggingFace repo ID (e.g., `unsloth/Qwen3.5-9B-GGUF`) | — |
| `--port` | Port to listen on (0 = random free port) | `6767` |
-| `--n-gpu-layers` | GPU layers to offload (-1 = all, 0 = CPU only) | `-1` |
-| `--ctx-size` | Context window size in tokens | `32768` |
-| `--fit` | Auto-fit context to available VRAM | — |
| `--api-key` | API key required by clients | `""` |
| `-d, --detach` | Run in background, print PID | — |
-| `--threads` | CPU threads for inference (0 = auto) | `0` |
-| `--embedding` | Treat model as an embedding model | — |
+| `--embedding` | Treat model as an embedding model (not yet supported with llamacpp on the CLI — load embedding models from the desktop app) | — |
+| `--timeout` | Seconds to wait for the model server to become ready | `120` |
| `-v, --verbose` | Print full server logs | — |
+<Callout type="warning">
+Since Jan 0.8.0, llama-server runs in **router mode** under a single process. The flags `--ctx-size`, `--n-gpu-layers`, `--threads`, and `--fit` are accepted by the CLI for backwards compatibility but are currently **ignored** — per-model inference settings come from the router preset (`<data-folder>/llamacpp/router.preset.ini`) generated by the desktop app. Tune them from the desktop UI for now.
+</Callout>
+
When no model ID is provided, an interactive selector is shown. If no models are installed yet, Jan will automatically download its default foundation model to get you started:
```
@@ -144,18 +142,13 @@ When using a HuggingFace repo ID (e.g., `unsloth/Qwen3.5-9B-GGUF`), if the model
#### LlamaCPP Server Arguments
-You can pass additional arguments to the underlying LlamaCPP server using environment variables with the `LLAMA_ARG_` prefix:
+Environment variables with the `LLAMA_ARG_` prefix are forwarded to the underlying llama-server router process at startup. Per-model defaults (context size, GPU layers, threads, flash-attn, KV cache type, etc.) come from the router preset generated by the desktop app at `<data-folder>/llamacpp/router.preset.ini` — edit a model's settings in the desktop UI to change them.
```bash
-export LLAMA_ARG_HOST=0.0.0.0 # bind to specific host
-export LLAMA_ARG_N_GPU_LAYERS=32 # set GPU layers
-export LLAMA_ARG_CTX_SIZE=8192 # set context size
-export LLAMA_ARG_THREADS=8 # set CPU threads
+export LLAMA_ARG_HOST=0.0.0.0 # bind the router to a specific host
jan serve qwen3.5-35b-a3b
```
-Any LlamaCPP server flag can be passed this way — just prefix the flag name with `LLAMA_ARG_`.
-
---
### `jan launch`
@@ -168,14 +161,16 @@ jan launch [PROGRAM] [OPTIONS]
| Option | Description | Default |
|--------|-------------|---------|
-| `PROGRAM` | Agent to launch: `claude`, `openclaw`, `opencode` (omit to pick interactively) | — |
+| `PROGRAM` | Agent to launch: `claude`, `openclaw` (omit to pick interactively) | — |
| `--model` | Model ID to load (omit to pick interactively) | — |
-| `--ctx-size` | Context window size in tokens | `4096` |
-| `--fit` | Auto-fit context to available VRAM | on for `claude` |
| `--port` | Port for the model server | `6767` |
| `--api-key` | API key (exported as `OPENAI_API_KEY` and `ANTHROPIC_AUTH_TOKEN`) | `jan` |
| `-v, --verbose` | Print full server logs | — |
+<Callout type="info">
+As with `jan serve`, the `--ctx-size`, `--n-gpu-layers`, and `--fit` flags are accepted but currently ignored in router mode. Adjust per-model inference parameters from the desktop app.
+</Callout>
+
When no agent or model is specified, interactive selectors are shown. If no models are installed, Jan will automatically download its default foundation model before launching the agent:
```
@@ -185,7 +180,7 @@ $ jan launch
Choose an agent to launch:
> Claude Code — Anthropic's AI coding agent
- OpenClaw — Open-source autonomous AI agent [not installed]
+ OpenClaw — Open-source autonomous AI agent
```
**Examples:**
@@ -194,7 +189,6 @@ Choose an agent to launch:
jan launch claude # pick a model, then run Claude Code
jan launch claude --model qwen3.5-35b-a3b # use a specific model with Claude Code
jan launch openclaw --model qwen3.5-35b-a3b # wire OpenClaw to a local model
-jan launch opencode --model qwen3.5-35b-a3b # wire opencode to a local model
```
---
diff --git a/docs/src/pages/docs/desktop/data-folder.mdx b/docs/src/pages/docs/desktop/data-folder.mdx
index d94f03719..c96fd8164 100644
--- a/docs/src/pages/docs/desktop/data-folder.mdx
+++ b/docs/src/pages/docs/desktop/data-folder.mdx
@@ -44,47 +44,50 @@ cd %APPDATA%/Jan/data
# Mac
cd ~/Library/Application\ Support/Jan/data
-# Linux
-cd $XDG_CONFIG_HOME/Jan/data # Custom install
-cd ~/.config/Jan/data # Default install
+# Linux (default — resolves via XDG_DATA_HOME)
+cd ~/.local/share/Jan/data
```
-## Directory Structure
-
<Callout type="info">
-Root directory: `~/jan`
+The data folder location can be customised from **Settings > General > Jan Data Folder**. Once changed, the path above no longer applies — check the Settings page for the active location.
</Callout>
+## Directory Structure
+
+Inside the data folder you will typically find:
+
```sh
/assistants/
/jan/
assistant.json
-/engines/
- /llama.cpp/
/extensions/
extensions.json
-/@janhq/
- /assistant-extension/
+ /@janhq/
+ /assistant-extension/
/conversational-extension/
/download-extension/
- /engine-management-extension/
- /hardware-management-extension/
- /inference-cortex-extension/
- /model-extension/
+ /llamacpp-extension/
+ /mlx-extension/
+ /rag-extension/
+ /vector-db-extension/
/files/
/logs/
app.log
-/models/
- /huggingface.co/
- /Model_Provider_A/
- /Model_A
- model_A.gguf
- model_A.yaml
+/llamacpp/
+ router.preset.ini
+ /backends/<version>/<backend>/ # downloaded llama.cpp builds
+ /models/
+ <org>/<repo>/
+ model.yml
+ model.gguf
+/mlx/
+ /models/
+ <model_id>/
+ model.yml
/threads/
- /thread_A/
+ /<thread_id>/
messages.jsonl
thread.json
-
```
### `assistants/`
@@ -144,13 +147,13 @@ Parameters:
Add-on central. Organization extensions live in `@janhq/`, solo ones in root.
### `logs/`
-Debugging headquarters (`/logs/app.txt`):
+Debugging headquarters (`/logs/app.log`):
- **[APP]**: Core logs
- **[SERVER]**: API drama
- **[SPECS]**: Hardware confessions
-### `models/`
-The silicon brain collection. Each model has its own `model.yml`:
+### `llamacpp/models/` and `mlx/models/`
+Installed models, organised per engine. Each model has its own `model.yml`:
```yaml
model_path: llamacpp/models/janhq/Jan-v3-4B-base-instruct-gguf/Jan-v3-4b-base-instruct-Q4_K_XL.gguf
diff --git a/docs/src/pages/docs/desktop/file-upload.mdx b/docs/src/pages/docs/desktop/file-upload.mdx
index fcc9a775d..c19a00afe 100644
--- a/docs/src/pages/docs/desktop/file-upload.mdx
+++ b/docs/src/pages/docs/desktop/file-upload.mdx
@@ -15,26 +15,40 @@ keywords:
# File Upload
-Jan lets you upload images and documents directly in the chat. Click the **+** button in the message input to add files.
+Jan supports two ways to work with files — attaching them to a single message in chat, or uploading them to a Project so they are available as context across all conversations in that project.
+
+## Project Files
+
+Upload documents to a Project and Jan will chunk and index them for retrieval across every conversation in that project.
![File Upload](./_assets/file-upload.png)
-## Supported File Types
+1. Open a Project from the left sidebar
+2. Click **Add** in the **Files** panel on the right
+3. Select your file — a progress bar shows chunking progress (e.g. 1/5 pages processed)
+4. Once complete, the file appears with its size and chunk count and is available as context in all project conversations
+
+Supported formats include PDFs, Markdown, Office documents (DOCX, XLSX, PPTX), code files, and more.
-- **Images** — Share screenshots, photos, or diagrams for the model to analyze
-- **Documents & Files** — Upload PDFs or other files for the model to read and reason about
+## Chat Attachments
-## How to Upload
+Attach images, audio, or documents directly to a single message in any chat.
1. Click the **+** button at the bottom left of the chat input
-2. Choose **Add Images** or **Add documents or files**
-3. Select your file — it will be attached to your next message
+2. Choose **Add Images**, **Add Audio**, or **Add documents or files**
+3. Select your file — a progress bar will appear while it uploads
4. Type your question and send
+You can also drag and drop files onto the chat input or paste images from your clipboard.
+
### Vision Model Required for Images
-If your current model does not support vision, Jan will automatically prompt you to download **Jan V2 VL** — the recommended vision model (~5GB). Click **Download** to install it, then you'll be ready to chat with images.
+The **Add Images** option only appears when the active model has the `vision` capability. If your current model isn't vision-capable, the option is hidden — switch to a vision model (for example **Jan-v2-VL**, available in the Hub) to enable image attachments.
+
+### Audio Requires an Audio-Capable Model
+
+The **Add Audio** option only appears when the active model supports audio input. Supported formats are **WAV** and **MP3**. Audio files show a preview chip with the filename and duration before sending.
-![Vision Model Prompt](./_assets/file-upload-vision-prompt.png)
+## Privacy
-All files are processed locally on your machine. When using a local model such as Jan's built-in models, your files never leave your device — inference happens entirely on your own hardware with full privacy. If you use a cloud model provider (e.g. OpenAI, Anthropic), files are sent to that provider's API as part of the request.
+All files are processed locally on your machine. When using a local model, your files never leave your device. If you use a cloud provider (e.g. OpenAI, Anthropic), files are sent to that provider's API as part of the request.
diff --git a/docs/src/pages/docs/desktop/index.mdx b/docs/src/pages/docs/desktop/index.mdx
index 9a21d8d43..779bb37bc 100644
--- a/docs/src/pages/docs/desktop/index.mdx
+++ b/docs/src/pages/docs/desktop/index.mdx
@@ -29,7 +29,7 @@ import { Rocket, Package, Bot, Plug, Monitor, Globe, Server, Brain, Terminal, La
# Overview
<Callout type="info">
-**Jan 0.7.8 is now live!** — Agents, CLI, and more. [See the full changelog.](/changelog/2026-03-11-jan-openclaw-cli-context)
+**Jan 0.8.0 is now live!** — LLaMA.cpp router mode, inline MCP approval, and smarter model management. [See the full changelog.](/changelog/2026-05-20-jan-v0.8.0)
</Callout>
Jan is an open-source replacement for Claude and ChatGPT. It comes with built-in foundation models and an application ecosystem that runs entirely on your hardware — keeping your data private and giving you full ownership over your AI.
diff --git a/docs/src/pages/docs/desktop/install/linux.mdx b/docs/src/pages/docs/desktop/install/linux.mdx
index 095d515fa..45f266c8d 100644
--- a/docs/src/pages/docs/desktop/install/linux.mdx
+++ b/docs/src/pages/docs/desktop/install/linux.mdx
@@ -92,11 +92,14 @@ chmod +x jan-linux-x86_64-{version}.AppImage
Jan stores all your data locally — downloaded models, conversation threads, settings, and logs generated from using the app. Nothing is sent to the cloud.
-Default location:
+Default location (resolves via `XDG_DATA_HOME`):
```bash
-~/.config/Jan/data
+~/.local/share/Jan/data
```
+
+The path to Jan's per-user configuration file (which records the data folder location) lives at `~/.config/Jan/`.
+
See [Jan Data Folder](/docs/desktop/data-folder) for details.
@@ -147,8 +150,8 @@ export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/cuda/lib64
### Step 2: Enable GPU Acceleration
-1. Navigate to **Settings** (<Settings width={16} height={16} style={{display:"inline"}}/>) > **Local Engine** > **Llama.cpp**
-2. Select appropriate backend in **llama-cpp Backend**. Details in our [llama.cpp guide](/docs/desktop/llama-cpp).
+1. Navigate to **Settings** (<Settings width={16} height={16} style={{display:"inline"}}/>) > **Model Providers** > **Llama.cpp**
+2. Select an appropriate backend in **Backend**. Details in our [llama.cpp guide](/docs/desktop/local-engine/llama-cpp).
<Callout type="info">
CUDA offers better performance than Vulkan.
@@ -162,7 +165,7 @@ CUDA offers better performance than Vulkan.
Requires Vulkan support.
1. Navigate to **Settings** (<Settings width={16} height={16} style={{display:"inline"}}/>) > **Hardware** > **GPUs**
-2. Select appropriate backend in **llama-cpp Backend**. Details in our [guide](/docs/desktop/local-engines/llama-cpp).
+2. Select appropriate backend in **llama-cpp Backend**. Details in our [guide](/docs/desktop/local-engine/llama-cpp).
</Tabs.Tab>
@@ -170,7 +173,7 @@ Requires Vulkan support.
Requires Vulkan support.
1. Navigate to **Settings** (<Settings width={16} height={16} style={{display:"inline"}}/>) > **Hardware** > **GPUs**
-2. Select appropriate backend in **llama-cpp Backend**. Details in our [guide](/docs/desktop/local-engines/llama-cpp).
+2. Select appropriate backend in **llama-cpp Backend**. Details in our [guide](/docs/desktop/local-engine/llama-cpp).
</Tabs.Tab>
</Tabs>
@@ -183,16 +186,16 @@ Removal commands:
```bash
sudo apt-get remove jan
-rm -rf Jan
-rm -rf ~/.config/Jan/data
-rm -rf ~/.config/Jan/cache
+rm -rf ~/.local/share/Jan # data folder (models, threads, logs)
+rm -rf ~/.config/Jan # app configuration
```
</Tabs.Tab>
<Tabs.Tab>
```bash
rm jan-linux-x86_64-{version}.AppImage
-rm -rf ~/.config/Jan
+rm -rf ~/.local/share/Jan # data folder (models, threads, logs)
+rm -rf ~/.config/Jan # app configuration
```
</Tabs.Tab>
</Tabs>
diff --git a/docs/src/pages/docs/desktop/install/mac.mdx b/docs/src/pages/docs/desktop/install/mac.mdx
index 7c5877c56..7c418b611 100644
--- a/docs/src/pages/docs/desktop/install/mac.mdx
+++ b/docs/src/pages/docs/desktop/install/mac.mdx
@@ -31,7 +31,7 @@ import { DownloadButton } from '@/components/DownloadButton'
# Mac Installation
-Jan runs natively on both Apple Silicon and Intel-based Macs.
+Jan runs natively on Apple Silicon Macs. Intel-based Macs are not supported.
## Install Jan
@@ -54,20 +54,21 @@ Jan runs natively on both Apple Silicon and Intel-based Macs.
### Minimum Requirements
- **Operating System:** macOS 13.6 or higher
- **Memory:**
- - 8GB → up to 3B parameter models
- - 16GB → up to 7B parameter models
- - 32GB → up to 13B parameter models
+ - Model fit depends heavily on **quantization**, context length, and how much memory macOS is already using.
+ - 8GB → typically up to **3B** models comfortably; some **7B** models may fit only at aggressive low-bit quantizations
+ - 16GB → typically up to **7B** models comfortably; some **13B** models may fit at lower quantizations
+ - 32GB → typically up to **13B** models comfortably, with more headroom for higher quantizations, larger context windows, or multitasking
- **Storage:** 10GB+ free space
### Mac Performance Guide
<Callout type="info">
-**Apple Silicon Macs** use Metal for GPU acceleration, making them faster than **Intel Macs**, which operate on CPU only.
+**Apple Silicon Macs** use Metal for GPU acceleration. **Intel-based Macs are not supported.**
</Callout>
-**Apple Silicon (M1, M2, M3)** — Metal acceleration enabled by default
+**Apple Silicon (M1, M2, M3, M4)** — Supported, with Metal acceleration enabled by default. **M4 and newer** chips deliver the best performance.
-**Intel-based Mac** — CPU processing only
+**Intel-based Macs are not supported.**
_Check your Mac's processor: Apple menu → About This Mac_
diff --git a/docs/src/pages/docs/desktop/install/windows.mdx b/docs/src/pages/docs/desktop/install/windows.mdx
index 668db3c33..c2a54cefc 100644
--- a/docs/src/pages/docs/desktop/install/windows.mdx
+++ b/docs/src/pages/docs/desktop/install/windows.mdx
@@ -151,9 +151,9 @@ Jan does not ship with a pre-built HIP backend. You need to download it manually
1. Go to the [llama.cpp releases page](https://github.com/ggerganov/llama.cpp/releases)
2. Download the latest release with `hip` in the filename (e.g., `llama-<version>-bin-win-hip-x64.zip`)
3. Extract the downloaded archive
-4. In Jan, navigate to **Settings** (<Settings width={16} height={16} style={{display:"inline"}}/>) > **Model Settings** > **llama.cpp**
-5. Click **Install from file** and select the extracted folder
-6. Go to **Settings** (<Settings width={16} height={16} style={{display:"inline"}}/>) > **Hardware** > **GPUs** and toggle the **ON** switch if not enabled
+4. In Jan, navigate to **Settings** (<Settings width={16} height={16} style={{display:"inline"}}/>) > **Model Providers** > **Llama.cpp**
+5. Use the backend version selector to point at the extracted folder
+6. Go to **Settings** (<Settings width={16} height={16} style={{display:"inline"}}/>) > **Hardware** and ensure GPU acceleration is enabled
</Steps>
diff --git a/docs/src/pages/docs/desktop/local-engine/llama-cpp.mdx b/docs/src/pages/docs/desktop/local-engine/llama-cpp.mdx
index 88224bfa7..b8a78e5dc 100644
--- a/docs/src/pages/docs/desktop/local-engine/llama-cpp.mdx
+++ b/docs/src/pages/docs/desktop/local-engine/llama-cpp.mdx
@@ -33,7 +33,7 @@ import { Settings, EllipsisVertical, Plus, FolderOpen, Pencil } from 'lucide-rea
llama.cpp is the engine that runs AI models locally on your computer. Think of it as the software that takes an AI model file and makes it actually work on your hardware - whether that's your CPU, graphics card, or Apple's M-series chips.
-Originally created by Georgi Gerganov, llama.cpp is designed to run large language models efficiently on consumer hardware without requiring specialized AI accelerators or cloud connections.
+Originally created by Georgi Gerganov and now maintained by the [ggml-org/llama.cpp](https://github.com/ggml-org/llama.cpp) community, llama.cpp is designed to run large language models efficiently on consumer hardware without requiring specialized AI accelerators or cloud connections.
## Why This Matters
@@ -78,7 +78,11 @@ These are advanced settings. You typically only need to adjust them if models ar
| **Check Updates** | Downloads newer engine versions | When new models require updated engine |
| **Backend Selection** | Choose the version optimized for your hardware | After installing new graphics cards or when performance is poor |
| **Auto Update Engine** | Automatically updates llama.cpp to latest version | Enable for automatic compatibility with new models |
-| **Auto-Unload Old Models** | Unloads unused models to free memory | Enable when running multiple models or low on memory |
+| **Max Concurrent Models** | Maximum models the router keeps loaded at once | Set to 1 if you want strict single-model operation; 0 means unlimited |
+
+<Callout type="info">
+Jan v0.8.0 switched llama.cpp from launching a separate server for each model to a single **router process** (`llama-server --models-preset <router.preset.ini> --models-max <N> --no-webui`) that loads and unloads models on demand via the upstream `POST /models/load` and `POST /models/unload` endpoints. You no longer need to manually start or stop individual models — the router handles scheduling automatically. After installing a backend, Jan checks for required system libraries (CUDA, Vulkan, cuDNN) and shows you what to install if anything is missing.
+</Callout>
## Hardware Backends
@@ -177,34 +181,42 @@ Apple Silicon Macs automatically use the GPU through Metal - no additional setup
</Tabs>
-## Performance Settings
+## Performance Settings (Engine-wide)
-These control how efficiently models run:
+These engine-wide settings are applied to every model the router loads. Per-model overrides (Context Size, GPU Layers, Batch Size, Disable KV Offload, etc.) live on the model's own settings page.
-| Setting | What It Does | Recommended Value | Impact |
-|---------|-------------|------------------|---------|
-| **Continuous Batching** | Process multiple requests at once | Enabled | Faster when using multiple tools or having multiple conversations |
-| **Threads** | Number of threads for generation | -1 (auto) | -1 uses all logical cores, adjust for specific needs |
-| **Threads (Batch)** | Threads for batch and prompt processing | -1 (auto) | Usually same as Threads setting |
-| **Batch Size** | Logical maximum batch size | 2048 | Higher allows more parallel processing |
+| Setting | What It Does | Default | Impact |
+|---------|-------------|---------|---------|
+| **Continuous Batching** | Process multiple requests at once | Disabled | Enable for faster multi-tool or multi-conversation workloads |
+| **Parallel Sequences** | Number of parallel sequences to decode | 1 | 1 enables `-kvu` single-request optimization; raise for concurrent serving |
+| **Threads** | Number of threads to use during generation | -1 (auto) | -1 uses all logical cores |
+| **Threads (Batch)** | Threads for batch and prompt processing | -1 (same as Threads) | Tune separately for prompt-heavy workloads |
| **uBatch Size** | Physical maximum batch size | 512 | Controls memory usage during batching |
-| **GPU Split Mode** | How to distribute model across GPUs | Layer | Layer mode is most common for multi-GPU setups |
-| **Main GPU Index** | Primary GPU for processing | 0 | Change if you want to use a different GPU |
+| **Devices for Offload** | Comma-separated device list (e.g. `CUDA0,CUDA1`) | empty (auto) | Restrict which GPUs the model can use |
+| **GPU Split Mode** | How to distribute the model across GPUs | Layer | Layer is the common multi-GPU choice |
+| **Main GPU Index** | Primary GPU for processing | 0 | Change to target a specific GPU |
-## Memory Settings
+## Memory Settings (Engine-wide)
-These control how models use your computer's memory:
+These engine-wide settings control how the router and every loaded model use system and GPU memory.
-| Setting | What It Does | Recommended Value | When to Change |
-|---------|-------------|------------------|----------------|
-| **Flash Attention** | More efficient memory usage | Enabled | Leave enabled unless you have problems |
+| Setting | What It Does | Default | When to Change |
+|---------|-------------|---------|----------------|
+| **Flash Attention** | Enable Flash Attention kernel | Auto | Force On or Off only if you hit kernel issues |
| **Disable mmap** | Don't memory-map model files | Disabled | Enable if experiencing crashes or pageouts |
| **MLock** | Keep model in RAM, prevent swapping | Disabled | Enable if you have enough RAM and want consistent performance |
-| **Context Shift** | Handle very long conversations | Disabled | Enable for very long chats or multiple tool calls |
-| **Disable KV Offload** | Keep KV cache on CPU | Disabled | Enable if GPU memory is limited |
-| **KV Cache K Type** | Memory precision for keys | f16 | Change to q8_0 or q4_0 if running out of memory |
-| **KV Cache V Type** | Memory precision for values | f16 | Change to q8_0 or q4_0 if running out of memory |
-| **KV Cache Defragmentation** | Threshold for cache cleanup | 0.1 | Lower values defragment more often |
+| **Context Shift** | Allow trimming the start of the prompt when context fills | Disabled | Enable for very long chats or multiple tool calls |
+| **KV Cache K Type** | KV-cache precision for keys | f16 | Switch to q8_0 / q4_0 to save VRAM |
+| **KV Cache V Type** | KV-cache precision for values | f16 | Switch to q8_0 / q4_0 to save VRAM |
+| **KV Cache Defragmentation Threshold** | Threshold that triggers cache defrag (< 0 disables) | 0.1 | Lower defragments more often; note this flag is marked deprecated upstream |
+
+<Callout type="info">
+**Per-model settings** (configured on each model's page, not here): Context Size (`ctx_size`), GPU Layers (`n_gpu_layers`), Batch Size (`batch_size`), **Disable KV Offload** (`no_kv_offload` — enable to keep the KV cache on CPU when GPU VRAM is tight), Override Tensor Buffer Type, Chat Template, and sampling parameters. The router applies engine-wide settings as the `[*]` defaults in `router.preset.ini` and lets per-model entries override them.
+</Callout>
+
+<Callout type="warning">
+The default KV cache type was temporarily set to `q8_0` in a prior release and has been reverted to `f16`. This is **not automatically migrated** — if your models fail to load after updating to v0.8.0, set **KV Cache K Type** and **KV Cache V Type** back to `f16` manually.
+</Callout>
### KV Cache Types Explained
- **f16**: Full 16-bit precision, uses more memory but highest quality
@@ -231,6 +243,15 @@ These settings are for fine-tuning model behavior and advanced use cases:
| **RoPE Frequency Base** | Base frequency for RoPE | 0 (auto) | Usually loaded from model |
| **RoPE Frequency Scale Factor** | Frequency scaling factor | 1 | Advanced tuning only |
+### Cache & Memory Tuning
+
+| Setting | What It Does | Default Value | When to Change |
+|---------|-------------|---------------|----------------|
+| **Prompt Cache RAM (MiB)** | Maximum prompt cache size in MiB (`--cache-ram`). -1 = unlimited, 0 = disabled | -1 | Set a positive value to cap RAM used for prompt caching |
+| **Cache Reuse** | Min chunk size of matching prefix tokens to reuse from cache (`--cache-reuse`) | 0 (disabled) | Set a positive value to speed up repeated prompts with a shared prefix |
+| **Full SWA Cache** | Use full-size SWA cache (`--swa-full`) | Disabled | Enable for Gemma / Mistral-family SWA models when you need full-context recall (costs memory) |
+| **Keep First N Tokens** | Tokens from the initial prompt to keep on context shift (`--keep`, -1 = keep all) | 0 | Increase to preserve more of the system prompt when context fills |
+
### Mirostat Sampling
| Setting | What It Does | Default Value | When to Change |
@@ -285,11 +306,11 @@ These settings are for fine-tuning model behavior and advanced use cases:
**If models are too slow:**
1. Check you're using GPU acceleration (CUDA/Metal/Vulkan backend)
2. Enable Continuous Batching
-3. Increase Batch Size and uBatch Size
+3. Increase Batch Size (per-model) and uBatch Size (engine)
4. Close other applications using memory
**If running out of memory:**
-1. Enable Auto-Unload Old Models
+1. Set **Max Concurrent Models** to 1 so the router unloads the previous model before loading a new one
2. Change KV Cache K/V Type to q8_0 or q4_0
3. Reduce Context Size in model settings
4. Enable MLock if you have sufficient RAM
diff --git a/docs/src/pages/docs/desktop/local-engine/mlx.mdx b/docs/src/pages/docs/desktop/local-engine/mlx.mdx
index 0429fe925..966d42092 100644
--- a/docs/src/pages/docs/desktop/local-engine/mlx.mdx
+++ b/docs/src/pages/docs/desktop/local-engine/mlx.mdx
@@ -25,7 +25,7 @@ MLX support in Jan is currently in beta and will be improved significantly over
## Requirements
- macOS 14 or higher
-- Apple Silicon (M1, M2, M3 or later)
+- Apple Silicon (M1, M2, M3, M4)
## Accessing Engine Settings
diff --git a/docs/src/pages/docs/desktop/manage-models.mdx b/docs/src/pages/docs/desktop/manage-models.mdx
index 8ecbfb863..32a679365 100644
--- a/docs/src/pages/docs/desktop/manage-models.mdx
+++ b/docs/src/pages/docs/desktop/manage-models.mdx
@@ -46,12 +46,12 @@ The easiest way to get started is using Jan's built-in model hub (which is conne
4. Click **Download** on your chosen model
<Callout type="info">
-Jan will indicate if a model might be **Slow on your device** or **Not enough RAM** based on your system specifications.
+Each model shows a colored fit pill — **Fits**, **May be slow**, or **Won't fit** — based on your hardware. Quantization tiers are grouped as **Small**, **Balanced**, or **Large**, with a **Recommended** tag on the default download. No data is downloaded to determine fit status.
</Callout>
![Hub](./_assets/hub.png)
-Once you click **Download**, you can track the progress from the download indicator in the top bar. The model name and download percentage are shown in real time — you can cancel at any time by clicking the **×** button.
+Once you click **Download**, you can track the progress from the download indicator in the top bar. The model name and download percentage are shown in real time — you can cancel at any time by clicking the **×** button. If a download fails, it is cleared from the queue and a toast is shown. To retry, click **Download** again from the Hub or provider list.
![Hub Downloading](./_assets/hub-downloading.png)
@@ -86,6 +86,10 @@ You can also open any model directly in Jan from the Hugging Face model page:
![Use this model in Jan from HuggingFace](./_assets/hf-use-this-model.png)
</div>
+#### Bulk Delete Downloaded Models
+
+To free disk space quickly, open **Settings > Llama.cpp** (or **MLX**) and click **Delete All** in the Models section. Jan shows the total space to be freed and removes every managed download at once. Models you imported yourself are left untouched.
+
#### 4. Import Local Files
If you already have model files on your computer, you can import them directly via the engine settings:
diff --git a/docs/src/pages/docs/desktop/mcp.mdx b/docs/src/pages/docs/desktop/mcp.mdx
index 3440ddaab..3c4ee51cb 100644
--- a/docs/src/pages/docs/desktop/mcp.mdx
+++ b/docs/src/pages/docs/desktop/mcp.mdx
@@ -99,7 +99,7 @@ making your workflows more modular and adaptable over time.
<Callout type="info">
To use MCP effectively, ensure your AI model supports tool calling capabilities:
- - For cloud models (like Claude or GPT-4): Verify tool calling is enabled in your API settings
+ - For cloud models (like Claude or GPT-4): Choose a model in Jan that includes **tools** capability. For built-in providers like Anthropic, Jan reads the provider's model capabilities automatically after you add your API key.
- For local models: Enable tool calling in the model parameters [click the edit button in Model Capabilities](/docs/desktop/model-parameters#model-capabilities-edit-button)
- Check the model's documentation to confirm MCP compatibility
</Callout>
@@ -110,8 +110,10 @@ While powerful, MCP is an evolving standard, and its use requires careful consid
* **Security:** Granting a model access to external tools is a significant security consideration. A compromised
tool or a malicious prompt could potentially lead to unintended actions or data exposure. Jan's implementation
-focuses on user-managed permissions to mitigate this risk, meaning, you have to turn on the permission for each
-tool individually.
+focuses on user-managed permissions to mitigate this risk — you must approve each tool call individually. Approval
+panels appear **inline inside the tool card** in the chat, showing the exact arguments the model wants to pass
+before you accept or deny. You can also enable **Allow All MCP Tool Permission** in Settings to pre-approve all
+tools (**Allow All MCP Tool Permissions** in Settings → MCP Servers).
* **Standard Maturity:** As a relatively new protocol, best practices or sensible defaults are still being
established. Users should be aware of potential issues like prompt injection, where an input could be crafted to
misuse a tool's capabilities.
@@ -124,8 +126,7 @@ you will need to wait for a response). Efficient management of tools and their o
To illustrate how MCPs can be used within Jan, we will walk through an example using the [Browser MCP](https://browsermcp.io/).
-Before we begin, you will need to enable experimental features at `General` > `Advanced`. Next, go to `Settings` > `MCP Servers`, and toggle
-the `Allow All MCP Tool Permission` switch ON.
+Before we begin, go to `Settings` > `MCP Servers` and toggle the `Allow All MCP Tool Permissions` switch ON if you want to pre-approve tool calls.
![Turn on the MCP Host](./_assets/mcp-on.png)
@@ -167,9 +168,7 @@ already logged into in your regular browser session, it is best to give it a cle
![Browser MCP Extension](./_assets/mcp-setup-8.png)
-- Go back to Jan and pick a model with good tool use capabilities, for example, Claude 3.7 and 4 Sonnet, or Claude 4 Opus,
-and make sure to enable tool calling via the UI by going to **Model Providers > Anthropic** and, after you have entered your
-API key, enable tool from the **+** button.
+- Go back to Jan and pick a model with strong tool-use capabilities, such as a Claude Sonnet or Opus model. After you enter your API key in **Model Providers > Anthropic**, Jan will list the available Anthropic models automatically. Choose one that shows **tools** capability in the model picker. No separate Anthropic tool toggle is required.
![Browser MCP Extension](./_assets/mcp-setup-9.png)
diff --git a/docs/src/pages/docs/desktop/model-parameters.mdx b/docs/src/pages/docs/desktop/model-parameters.mdx
index d41634b0f..7184e04fc 100644
--- a/docs/src/pages/docs/desktop/model-parameters.mdx
+++ b/docs/src/pages/docs/desktop/model-parameters.mdx
@@ -44,8 +44,45 @@ A panel will slide open on the right with all available model settings:
| **Min P** | Minimum chance a word needs to be chosen | Prevents very unlikely words. Usually fine at default. |
| **Repeat Last N** | How far back to check for repetition | Helps prevent the model from repeating itself. Default values usually work well. |
| **Repeat Penalty** | How much to avoid repeating words | Higher values (1.1-1.3) reduce repetition. Too high makes responses awkward. |
-| **Presence Penalty** | Encourages talking about new topics | Higher values make the model explore new subjects instead of staying on one topic. |
-| **Frequency Penalty** | Reduces word repetition | Similar to repeat penalty but focuses on how often words are used. |
+| **Presence Penalty** | Encourages talking about new topics | Higher values make the model explore new subjects instead of staying on one topic. Remote providers only — has no effect on local llama.cpp models. |
+| **Frequency Penalty** | Reduces word repetition | Similar to repeat penalty but focuses on how often words are used. Remote providers only — has no effect on local llama.cpp models. |
+
+## Reasoning Mode
+
+When using the **llama.cpp** provider, a brain icon appears in the chat input toolbar for models that support extended thinking (e.g. DeepSeek-R1, QwQ). Use it to set the reasoning mode for that model:
+
+| Mode | Behavior |
+|------|----------|
+| **Auto** | Model decides when to reason internally |
+| **On** | Always reason before responding |
+| **Off** | Skip reasoning, reply directly |
+
+This setting persists per model and does not require reloading. The toggle is only shown for the llama.cpp provider — it is not available for remote cloud providers.
+
+## Advanced Sampling (llama.cpp only)
+
+<Callout type="info">
+The following settings are only applied when using a local llama.cpp model. They have no effect on remote cloud providers.
+</Callout>
+
+### Mirostat
+
+An alternative sampling algorithm that targets a specific perplexity level, producing more consistent output length and coherence compared to top-p/top-k.
+
+| Setting | What It Does | Simple Explanation |
+|---------|-------------|-------------------|
+| **Mirostat Mode** | Sampling algorithm to use | Off = standard top-p/k. V1 or V2 = Mirostat (V2 is more stable) |
+| **Mirostat Learning Rate** | How quickly the algorithm adapts | Lower (0.05) = more stable, higher (0.2) = adapts faster |
+| **Mirostat Target Entropy** | Desired output complexity | Higher values allow more variety; lower values produce tighter focus |
+
+### Output Constraints
+
+Force the model to produce output that matches a specific format.
+
+| Setting | What It Does | Simple Explanation |
+|---------|-------------|-------------------|
+| **Grammar File** | Path to a GBNF grammar file | Constrains every token to match the grammar, useful for code, lists, or custom formats |
+| **JSON Schema File** | Path to a JSON Schema file | Enforces a specific JSON structure in every response |
## Hardware Settings
@@ -66,7 +103,7 @@ This is like the model's short-term memory - how much of your conversation it ca
- **Shorter context** = Uses less memory, runs faster, but might "forget" earlier parts of long conversations
<Callout type="info">
-Jan defaults to 8192 tokens (roughly 6000 words) or your model's maximum, whichever is smaller. This handles most conversations well.
+When **Fit to Hardware** is enabled, Jan automatically caps context size based on your model and available memory. This is on by default for Windows and Linux with a discrete GPU, and off by default for integrated GPUs and macOS (Apple Silicon uses unified memory, so the cap is less critical). If fit is disabled, you can set context size freely — but values beyond what your hardware can handle will cause slowdowns or out-of-memory errors.
</Callout>
## Quick Setup Guide
diff --git a/docs/src/pages/docs/desktop/projects.mdx b/docs/src/pages/docs/desktop/projects.mdx
index 95bb1cfb8..a0e44a45a 100644
--- a/docs/src/pages/docs/desktop/projects.mdx
+++ b/docs/src/pages/docs/desktop/projects.mdx
@@ -28,7 +28,7 @@ Projects let you organize your AI work around a topic or goal. Each project has
### New Project
-Press **⌘ L** or click **New Projects** in the left sidebar.
+Press **⌘ P** or click **New Projects** in the left sidebar.
### Name your project
@@ -46,9 +46,9 @@ Each project can have an assigned [Assistant](/docs/desktop/assistants). The ass
## Files
-Upload documents to a project and reference them in any conversation within it. Supported formats include PDFs, Markdown, and other text files.
+Upload documents to a project and reference them in any conversation within it. Supported formats include PDFs, Markdown, Office documents (DOCX, XLSX, PPTX), code files, and more.
-- Click **Upload** to add files
+- Click **Add** in the Files panel to upload files
- Uploaded files are chunked and available as context across all project conversations
- Ask questions about documents, extract information, or use them as background reference
diff --git a/docs/src/pages/docs/desktop/quickstart.mdx b/docs/src/pages/docs/desktop/quickstart.mdx
index 17da535c4..c1db65585 100644
--- a/docs/src/pages/docs/desktop/quickstart.mdx
+++ b/docs/src/pages/docs/desktop/quickstart.mdx
@@ -50,7 +50,7 @@ Try asking:
- "What are the pros and cons of electric vehicles?"
<Callout type="tip">
-Jan enables access to current web information by default. You can ask it to search about latest news. Thanks to [Exa](https://exa.ai) for enabling free tier access.
+Jan comes pre-configured with [Exa](https://exa.ai) for web search. To enable it, add your Exa API key under **Settings > MCP Servers** and toggle the Exa server on. Once active, you can ask about the latest news and current events.
</Callout>
</Steps>
diff --git a/docs/src/pages/docs/desktop/remote-models/anthropic.mdx b/docs/src/pages/docs/desktop/remote-models/anthropic.mdx
index 7c06131a1..8e1adc853 100644
--- a/docs/src/pages/docs/desktop/remote-models/anthropic.mdx
+++ b/docs/src/pages/docs/desktop/remote-models/anthropic.mdx
@@ -56,7 +56,7 @@ Ensure your API key has sufficient credits
Jan automatically includes Anthropic's available models. In case you want to use a specific Anthropic model
that you cannot find in **Jan**, follow instructions in [Add Cloud Models](/docs/desktop/manage-models#add-models-1):
- See list of available models in [Anthropic Models](https://docs.anthropic.com/claude/docs/models-overview).
-- The `id` property must match the model name in the list. For example, `claude-opus-4@20250514`, `claude-sonnet-4@20250514`, or `claude-3-5-haiku@20241022`.
+- The `id` property must match the model name in the list. For example, `claude-opus-4-20250514`, `claude-sonnet-4-20250514`, or `claude-3-5-haiku-20241022`.
## Troubleshooting
diff --git a/docs/src/pages/docs/desktop/remote-models/google.mdx b/docs/src/pages/docs/desktop/remote-models/google.mdx
index 3139ef77f..01dd58c1f 100644
--- a/docs/src/pages/docs/desktop/remote-models/google.mdx
+++ b/docs/src/pages/docs/desktop/remote-models/google.mdx
@@ -3,14 +3,15 @@ title: Google
description: Learn how to integrate Google with Jan for enhanced functionality.
keywords:
[
- Anthropic API,
+ Google API,
+ Gemini,
Jan,
Jan AI,
ChatGPT alternative,
conversational AI,
large language model,
integration,
- Anthropic integration,
+ Google integration,
API integration
]
---
diff --git a/docs/src/pages/docs/desktop/remote-models/groq.mdx b/docs/src/pages/docs/desktop/remote-models/groq.mdx
index d32b8fc92..5775d3e0a 100644
--- a/docs/src/pages/docs/desktop/remote-models/groq.mdx
+++ b/docs/src/pages/docs/desktop/remote-models/groq.mdx
@@ -20,7 +20,7 @@ import { Settings, Plus } from 'lucide-react'
# Groq
-Jan supports [Groq](https://groq.com/) API integration, allowing you to use Groq's high-performance LLM models (LLaMA 2, Mixtral and more) through Jan's interface.
+Jan supports [Groq](https://groq.com/) API integration, allowing you to use Groq's high-performance LLM models (Llama 3.x, Qwen, DeepSeek and more) through Jan's interface.
## Integrate Groq API with Jan
diff --git a/docs/src/pages/docs/desktop/remote-models/huggingface.mdx b/docs/src/pages/docs/desktop/remote-models/huggingface.mdx
index 66f0e2624..4787ad972 100644
--- a/docs/src/pages/docs/desktop/remote-models/huggingface.mdx
+++ b/docs/src/pages/docs/desktop/remote-models/huggingface.mdx
@@ -149,4 +149,4 @@ Common issues and solutions:
- Verify your Hugging Face account has the necessary permissions
Need more help? Join our [Discord community](https://discord.gg/FTk2MvZwJH) or check the
-[Hugging Face's documentation](https://docs.huggingface.co/en/inference-endpoints/index).
+[Hugging Face's documentation](https://huggingface.co/docs/inference-endpoints/index).
diff --git a/docs/src/pages/docs/desktop/remote-models/mistralai.mdx b/docs/src/pages/docs/desktop/remote-models/mistralai.mdx
index e2644a6d8..1c8572646 100644
--- a/docs/src/pages/docs/desktop/remote-models/mistralai.mdx
+++ b/docs/src/pages/docs/desktop/remote-models/mistralai.mdx
@@ -55,7 +55,7 @@ Ensure your API key has sufficient credits
Jan automatically includes Mistral's available models. In case you want to use a specific Mistral model
that you cannot find in **Jan**, follow the instructions in [Add Cloud Models](/docs/desktop/manage-models#add-models-1):
-- See list of available models in [Mistral AI Documentation](https://docs.mistral.ai/platform/endpoints).
+- See list of available models in [Mistral AI Documentation](https://docs.mistral.ai/getting-started/models/models_overview/).
- The `id` property must match the model name in the list. For example, if you want to use
Mistral Large, you must set the `id` property to `mistral-large-latest`
diff --git a/docs/src/pages/docs/desktop/remote-models/openai.mdx b/docs/src/pages/docs/desktop/remote-models/openai.mdx
index ec4a70c17..9a63a56f3 100644
--- a/docs/src/pages/docs/desktop/remote-models/openai.mdx
+++ b/docs/src/pages/docs/desktop/remote-models/openai.mdx
@@ -1,6 +1,6 @@
---
title: OpenAI API
-description: A step-by-step guide on integrating Jan with Azure OpenAI.
+description: A step-by-step guide on integrating Jan with OpenAI.
keywords:
[
Jan,
@@ -13,7 +13,7 @@ keywords:
no-subscription fee,
large language models,
integration,
- Azure OpenAI Service,
+ OpenAI API,
]
---
import { Callout, Steps } from 'nextra/components'
@@ -40,16 +40,16 @@ Ensure your API key has sufficient credits
### Step 2: Configure Jan
1. Navigate to the Settings page (<Settings width={16} height={16} style={{display:"inline"}}/>)
-2. Under Remote Engines, select OpenAI
+2. Under **Model Providers**, select **OpenAI**
3. Insert your API Key
![OpenAI](../_assets/provider-openai.png)
### Step 3: Start Using OpenAI's Models
-In any existing Threads or create a new one
-Select an OpenAI model from model selector
-Start chatting
+1. In any existing **Chat** or create a new one
+2. Select an OpenAI model from the **model selector**
+3. Start chatting
</Steps>
diff --git a/docs/src/pages/docs/desktop/troubleshooting.mdx b/docs/src/pages/docs/desktop/troubleshooting.mdx
index 6260a5f19..f7bddf4a4 100644
--- a/docs/src/pages/docs/desktop/troubleshooting.mdx
+++ b/docs/src/pages/docs/desktop/troubleshooting.mdx
@@ -42,14 +42,12 @@ Error logs are essential for troubleshooting issues and getting help from Jan te
<br/>
#### Through Terminal
-**Application Logs**
+**Application Logs (macOS)**
```bash
tail -n 50 ~/Library/Application\ Support/Jan/data/logs/app.log
```
-**Server Logs**
-```bash
-tail -n 50 ~/Library/Application\ Support/Jan/data/logs/cortex.log
-```
+
+App, server, and engine messages are all written to the same `logs/app.log` file (look for the `[APP]` / `[SERVER]` / `[SPECS]` tags).
<Callout type="warning">
Ensure to redact any private or sensitive information when sharing logs or error details. We retain your logs for only 24 hours.
@@ -117,10 +115,10 @@ To resolve the issue where Jan is stuck in a broken build after installation:
2. Delete Application Data, Cache, and User Data:
```bash
- # Default dir
+ # Default data folder (XDG_DATA_HOME)
+ ~/.local/share/Jan
+ # Per-user app config (data folder location, etc.)
~/.config/Jan
- # Custom installation directory
- $XDG_CONFIG_HOME = /home/username/custom_config/Jan
```
3. If you are using a version before `0.4.2`, you need to run the following commands:
@@ -324,30 +322,32 @@ When you start a chat with a model and encounter a **Failed to Fetch** or **Some
**3. Port Conflicts**
-If you check your [app logs](/docs/desktop/troubleshooting#how-to-get-error-logs) & see "Bind address failed at 127.0.0.1:39291", check port availability:
+If you check your [app logs](/docs/desktop/troubleshooting#how-to-get-error-logs) & see "Address already in use" or a bind failure on `127.0.0.1:1337` (Jan's default Local API Server port), check port availability:
```
# Mac
-netstat -an | grep 39291
+netstat -an | grep 1337
# Windows
-netstat -ano | find "39291"
-tasklist /fi "PID eq 39291"
+netstat -ano | find "1337"
+tasklist /fi "PID eq 1337"
# Linux
-netstat -anpe | grep "39291"
+netstat -anpe | grep "1337"
```
+
+If port `1337` is occupied, change it under **Settings** > **Local API Server** > **Configuration** > **Server Port**.
<Callout type="info">
`Netstat` displays the contents of various network-related data structures for active connections.
</Callout>
Default Jan ports:
-- Jan and Cortex API Server: `1337`
+- Jan Local API Server: `1337`
- Jan Documentation: `3001`
**4. Factory Reset**
A factory reset can resolve persistent issues by returning Jan to its original state. This will remove all custom settings, downloaded models, and chat history.
-1. Go to **Settings** > **Advanced Settings**
+1. Go to **Settings** > **General**
2. At **Reset To Factory Settings**, click **Reset**
<Callout type="warning">
@@ -408,7 +408,7 @@ To fix this, add the CLI binary directory to your `Path` environment variable:
C:\Users\<username>\AppData\Local\Programs\Jan\resources\bin
```
Replace `<username>` with your Windows username.
-4. Click **OK** to save, then open a new terminal window and try `jan-cli` instead.
+4. Click **OK** to save, then open a new terminal window and try `jan` again. The CLI binary is installed as `jan.exe` inside that directory.
## Need Further Support?