A lightweight Obsidian chat client for your local llama.cpp / OpenAI-compatible server — desktop streaming on Mac, CORS-safe on iPad via requestUrl.
Cloud chat plugins assume the public internet. Local llama.cpp assumes a LAN. Mobile Obsidian hits a third wall: browser CORS blocks direct calls to your home server.
Local LLM Brain Chat is the thin client extracted from a real local-first vault workflow — Obsidian as the front door, Apple Silicon as the brain, no vendor chat relay in between.
| Layer | Typical plugin | This plugin |
|---|---|---|
| Endpoint | Vendor cloud API | Your LAN OpenAI-compatible server |
| Desktop | fetch / opaque wrappers | Node http streaming (SSE) |
| iPad / iOS | Often broken by CORS | Obsidian requestUrl (CORS-safe) |
main.js edits requiredOne API, two transports
Both paths call POST /v1/chat/completions. Desktop enables stream: true and appends tokens live. Mobile uses Obsidian requestUrl with stream: false so iPad can reach a LAN host that a WebView fetch would refuse.
| Platform | Transport | Behavior |
|---|---|---|
| Desktop | Node http |
Streaming SSE → live tokens → final Markdown |
| Mobile | requestUrl |
Single response → Markdown render |
Manual install (same pattern as other olbin.dev Obsidian plugins):
Open Settings → Community plugins → Local LLM Brain Chat (no need to edit main.js):
| Field | Example | Notes |
|---|---|---|
| Base URL | http://192.168.1.59:8080/v1 |
OpenAI-compatible base URL (include /v1) |
| Model | qwen-q8 |
Model id from GET /v1/models |
| Temperature | 0.2 |
0.0 (deterministic) – 1.0 (creative) |
| Server label | CTS |
Shown in error messages |
| Connection test | Button | Verify /v1/models with current settings |
Verify on the server
Use an id or aliases value as Model. Settings persist in data.json and sync with your vault (e.g. iCloud).
After changing settings — toggle the plugin off → on if the chat still shows the old endpoint.
Requests go only to the endpoint you configure. There is no olbin.dev chat relay. Session history stays in the plugin view memory.
Related toolkit pages: Agent Factory / cAgent · Vault Sync for Dropbox
The plugin source is open on GitHub — same content as this page, in README form.
View on GitHub Back to olbin.dev