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 changelog for Jan v0.8.4 (#8497)

Thinh Le9f1117557ffe
diff --git a/docs/src/pages/changelog/2026-07-21-jan-v0.8.4.mdx b/docs/src/pages/changelog/2026-07-21-jan-v0.8.4.mdx
new file mode 100644
index 000000000..581eb8fbf
--- /dev/null
+++ b/docs/src/pages/changelog/2026-07-21-jan-v0.8.4.mdx
@@ -0,0 +1,91 @@
+---
+title: "Jan v0.8.4: Native Web Search, Per-Model Chat Templates & a Backend Settings Store"
+version: 0.8.4
+description: "Jan v0.8.4 adds native web_search / web_fetch tools, per-model chat-template kwargs for llama.cpp, a token counter for remote and MLX providers, and moves settings and credentials into a backend-managed store (localStorage kept as a downgrade snapshot) - alongside a batch of chat, MCP, provider, and streaming fixes."
+date: 2026-07-21
+---
+
+import ChangelogHeader from "@/components/Changelog/ChangelogHeader"
+
+<ChangelogHeader
+ title="Jan v0.8.4: Native Web Search, Per-Model Chat Templates & a Backend Settings Store"
+ date="2026-07-21"
+/>
+
+# Migration
+
+**Settings and credentials now live in a backend store, not browser localStorage.**
+
+Provider settings and credentials previously persisted in the webview's `localStorage`. In 0.8.4, Jan reads and writes them from a backend-managed store instead (secrets go to the OS keyring). Your existing settings and API keys are copied over automatically on first launch - no manual action is needed, and from this version on all new changes are saved to the backend store.
+
+Your old `localStorage` data is **not deleted** - it's kept as a snapshot so you can downgrade to a pre-0.8.4 build and still have your previous settings. Note that any changes you make in 0.8.4+ live only in the backend store, so a downgrade sees the older snapshot, not your latest settings. The migration runs once and is guarded by a backend flag, so re-upgrading never re-imports the stale `localStorage` copy over newer backend data.
+
+---
+
+# Highlights
+
+**Native Web Search & Web Fetch**
+
+Jan now ships built-in `web_search` and `web_fetch` tools backed by a native `tauri-plugin-websearch`, so models can search the web and fetch page content without configuring an external MCP server. The tools are available to the agent loop like any other built-in.
+
+**Per-Model Chat Template kwargs for llama.cpp**
+
+You can now set chat-template keyword arguments per model in llama.cpp router mode, so template variables (for example reasoning or tool-format switches a model's template exposes) can be pinned per model rather than applied globally.
+
+**Token Counter for Remote & MLX Providers**
+
+The token counter now works for remote and MLX providers, not just local llama.cpp - so you can see token usage during chat across provider types. This landed alongside a batch of related chat and inference fixes.
+
+**Interim Text Folding into the Reasoning Trace**
+
+A new toggle lets you fold interim narration text into the reasoning/chain-of-thought trace instead of showing it as loose prose between steps, keeping the transcript compact.
+
+---
+
+# Bug Fixes
+
+**Chat & Streaming**
+
+- Stopping a generation mid model-load now preserves `AbortError` identity, so the stop is handled cleanly instead of surfacing as an unexpected error.
+- Custom SSE event types in OpenAI-compatible streams are now ignored rather than breaking parsing.
+- Detached assistant replies in branched threads are no longer persisted, so branch history stays correct.
+- Numeric assistant parameters supplied as strings are now coerced to numbers.
+
+**MCP & Local API Server**
+
+- Guarded against a duplicate `serve()` on streamable-HTTP MCP servers.
+- The MCP tool-approval popup no longer hangs; transient approval state was moved off disk.
+- Providers now send the `anthropic-version` header when fetching the model list.
+
+**RAG & Rendering**
+
+- Embeddings were repaired, redundant chat-model reloads were stopped, and more PDF formats now parse for document indexing.
+- Code blocks are now forced left-to-right (LTR) even inside a right-to-left language context.
+
+**Desktop & Platform**
+
+- macOS: hide-on-close now hides to the tray when the Local API Server is running, instead of quitting.
+- Fixed a snake_case mismatch for the ADL enum in `get_gpu_usage`.
+
+**Security**
+
+- Bumped `handlebars` to 4.7.9 in docs to clear an RCE advisory.
+
+---
+
+# Localization
+
+Japanese (`ja`) translations were updated across common, settings, and terminology.
+
+---
+
+# Engineering
+
+- App plugin versions bumped to 0.8.4.
+- Centralized the llama.cpp extension lookup with a scoped-name fallback.
+
+---
+
+Update 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.4).
diff --git a/docs/src/pages/docs/desktop/_assets/web-search-settings.png b/docs/src/pages/docs/desktop/_assets/web-search-settings.png
new file mode 100644
index 000000000..95239e746
Binary files /dev/null and b/docs/src/pages/docs/desktop/_assets/web-search-settings.png differ
diff --git a/docs/src/pages/docs/desktop/_assets/web-search-toggle.png b/docs/src/pages/docs/desktop/_assets/web-search-toggle.png
new file mode 100644
index 000000000..831c2b57c
Binary files /dev/null and b/docs/src/pages/docs/desktop/_assets/web-search-toggle.png differ
diff --git a/docs/src/pages/docs/desktop/_meta.json b/docs/src/pages/docs/desktop/_meta.json
index 732b03ed4..a70185a47 100644
--- a/docs/src/pages/docs/desktop/_meta.json
+++ b/docs/src/pages/docs/desktop/_meta.json
@@ -15,6 +15,7 @@
"agents": "Agents",
"projects": "Projects",
"assistants": "Assistants",
+ "web-search": "Web Search",
"file-upload": "File Upload",
"manage-models": "Hub",
"api-server": "Local API Server",
diff --git a/docs/src/pages/docs/desktop/index.mdx b/docs/src/pages/docs/desktop/index.mdx
index 82253f00a..74f1ddfb2 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.8.3 is now live!** Navigable message version branching, a fully custom Linux titlebar that follows your desktop environment's button layout, a unified reasoning/tool chain-of-thought timeline, interactive HTML and static SVG artifact previews (experimental), video input for local vision models, and a wide batch of streaming-performance, citation, sampler, and error-surfacing fixes. [See the full changelog.](/changelog/2026-06-24-jan-v0.8.3)
+**Jan 0.8.4 is now live!** Native web search and fetch tools, per-model chat-template kwargs for llama.cpp, a token counter for remote and MLX providers, settings and credentials moved into a backend store, and a batch of chat, MCP, provider, and streaming fixes. [See the full changelog.](/changelog/2026-07-21-jan-v0.8.4)
</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/local-engine/llama-cpp.mdx b/docs/src/pages/docs/desktop/local-engine/llama-cpp.mdx
index d8f01a8dd..9fba9395b 100644
--- a/docs/src/pages/docs/desktop/local-engine/llama-cpp.mdx
+++ b/docs/src/pages/docs/desktop/local-engine/llama-cpp.mdx
@@ -210,7 +210,7 @@ These engine-wide settings control how the router and every loaded model use sys
| **KV Cache V Type** | KV-cache precision for values | f16 | Switch to q8_0 / q4_0 to save VRAM |
<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.
+**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, Chat template options (`chat_template_kwargs`), 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">
@@ -227,7 +227,7 @@ The default KV cache type was temporarily set to `q8_0` in a prior release and h
These settings are for fine-tuning model behavior and advanced use cases.
<Callout type="info">
-**Custom Jinja Chat Template**, **Mirostat Sampling**, and the **Output Constraints** (Grammar / JSON Schema) below are **per-model** settings, configured on an individual model's page (the gear icon next to the model), not on the engine-wide Settings -> Llama.cpp page. **Max Tokens to Predict**, **RoPE**, and **Cache & Memory Tuning** are engine-wide.
+**Custom Jinja Chat Template**, **Chat template options**, **Mirostat Sampling**, and the **Output Constraints** (Grammar / JSON Schema) below are **per-model** settings, configured on an individual model's page (the gear icon next to the model), not on the engine-wide Settings -> Llama.cpp page. **Max Tokens to Predict**, **RoPE**, and **Cache & Memory Tuning** are engine-wide.
</Callout>
### Text Generation Control
@@ -236,6 +236,7 @@ These settings are for fine-tuning model behavior and advanced use cases.
|---------|-------------|---------------|----------------|
| **Max Tokens to Predict** | Maximum tokens to generate | -1 (infinite) | Set a limit to prevent runaway generation |
| **Custom Jinja Chat Template** (per-model) | Override model's chat format | Empty | Only if model needs special formatting |
+| **Chat template options** (per-model) | Extra options the model's chat template accepts (sent as `chat_template_kwargs`, e.g. `enable_thinking`) | Empty | To toggle template features like reasoning or tool formatting per model |
### RoPE (Rotary Position Embedding) Settings
diff --git a/docs/src/pages/docs/desktop/quickstart.mdx b/docs/src/pages/docs/desktop/quickstart.mdx
index c00dd536f..c7f6a9582 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 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.
+Jan has built-in web search and fetch tools, so you can ask about the latest news and current events without any extra setup. If you'd rather use a different provider, you can also configure the [Exa](https://exa.ai) MCP server under **Settings > MCP Servers** with your own API key.
</Callout>
### Download More Models
diff --git a/docs/src/pages/docs/desktop/web-search.mdx b/docs/src/pages/docs/desktop/web-search.mdx
new file mode 100644
index 000000000..1baeee861
--- /dev/null
+++ b/docs/src/pages/docs/desktop/web-search.mdx
@@ -0,0 +1,90 @@
+---
+title: Web Search
+description: Let models search and read the web using Jan's built-in web_search and web_fetch tools
+keywords:
+ [
+ Jan,
+ Jan AI,
+ web search,
+ web_search,
+ web_fetch,
+ Exa,
+ Tavily,
+ SearXNG,
+ tool use,
+ online search,
+ ]
+---
+
+import { Callout } from 'nextra/components'
+
+# Web Search
+
+Jan has **built-in web search**. When enabled, Jan advertises two tools - `web_search` and
+`web_fetch` - to any model that supports tool use, so the model can look up current information and
+read web pages on its own. It works out of the box with **no API key** and **no MCP server** required.
+
+<Callout type="info">
+Web Search is **on by default**. The default provider (Exa) uses a free, keyless endpoint, so you can
+start asking about current events right away - no setup needed.
+</Callout>
+
+You can toggle web search for a chat from the input toolbar - the globe icon shows **Web Search (Active)** when it's on.
+
+![Web Search toggle in the chat input](./_assets/web-search-toggle.png)
+
+## The two tools
+
+| Tool | What it does |
+|------|--------------|
+| **`web_search`** | Searches the web and returns a ranked list of results (title, URL, snippet, and optional publish date). |
+| **`web_fetch`** | Fetches a web page by URL and returns its readable text content, along with the source URL and title. |
+
+A typical flow is `web_search` to find sources, then `web_fetch` to read a specific result in full.
+`web_search` takes a `query` and an optional `count` (default 5, max 20); `web_fetch` takes an
+http(s) `url`. Fetched content is length-bounded so it doesn't flood the model's context.
+
+## Requirements
+
+Web search only works with a model that supports **tool use**. The tools are advertised only to
+tools-capable models, so pick a model that shows the **tools** capability in the model picker (most
+local tool-calling models and the major cloud models qualify). If your model can't call tools, the
+web tools won't be available.
+
+## Configure it
+
+Open **Settings > Web Search**.
+
+![Web Search settings](./_assets/web-search-settings.png)
+
+### Enable Web Search
+
+Toggles whether the `web_search` and `web_fetch` tools are advertised to models that support tool
+use. On by default. Works with no API key.
+
+### Search Provider
+
+Choose the backend that answers `web_search` and `web_fetch`. Three providers are available:
+
+| Provider | API key | Notes |
+|----------|---------|-------|
+| **Exa** (default) | Optional | Uses a free, keyless endpoint out of the box. Add a key for higher rate limits and structured results. |
+| **Tavily** | Required | Needs a [Tavily](https://tavily.com) API key to return results. |
+| **SearXNG** | Optional | Self-hosted. Point Jan at your own [SearXNG](https://searxng.org) instance URL (with the JSON API enabled). |
+
+### Exa API Key (optional)
+
+With Exa selected, an API key is **optional** - leave it empty to use the free keyless endpoint.
+Providing an [Exa](https://exa.ai) API key gives you higher rate limits and structured results.
+
+<Callout type="info">
+For **Tavily**, an API key is required. For **SearXNG**, you provide your instance's base URL instead
+of a key. The settings panel shows the right field for whichever provider you pick.
+</Callout>
+
+## How it relates to MCP search
+
+This built-in web search is **native** - it does not use the [Model Context Protocol](/docs/desktop/mcp).
+Earlier versions of Jan relied on an Exa (or Serper) MCP server for web search; that's no longer
+necessary. You can still connect an MCP-based search server if you want a specific provider or extra
+control, but for most users the built-in Web Search is all you need.