Open WebUI v0.13.5 makes long coding chats 34x faster with PostgreSQL
Set up Open WebUI v0.13.5 in Docker with Folder workspaces, Open Terminal 0.18.0+, AGENTS.md context, and PostgreSQL for 34x faster long coding sessions.
7 minutes read Czytaj po polsku
On this page (8)
- Key takeaways
- From standalone cptr to built-in Folder workspaces
- Connecting project machines with Open Terminal 0.18.0+
- Wiring AGENTS.md, CLAUDE.md, and reusable skills
- Side-by-side terminal checks, browser previews, and agent steering
- Switching to PostgreSQL for the 34x long-chat speedup
- Security boundaries and local-model context trade-offs
- FAQ
Key takeaways
- Folder workspaces in Open WebUI v0.13.5 bind a machine and repo directory once per sidebar folder.
- Open Terminal 0.18.0+ enables skills, side-by-side terminal checks, and embedded browser previews inside workspace tabs.
- Setting TOOL_OUTPUT_MAX_CHARS caps noisy command logs while letting models read full output files on connected machines.
- Incremental PostgreSQL writes cut 130 MB chat acceptance latency from 10.9 s to 0.32 s.
Running coding agents in a self-hosted web UI used to mean juggling two tools: a browser chat tab and the standalone Open WebUI Computer (cptr) client for machine access and terminal runs. Open WebUI v0.13.5 folds that workflow into sidebar folders and switches to incremental message writes so long agent sessions stay fast.
This guide shows how to configure Open WebUI v0.13.5 in Docker as a coding workspace. You will bind repositories with Open Terminal 0.18.0+, load project context from AGENTS.md and CLAUDE.md, cap noisy logs with TOOL_OUTPUT_MAX_CHARS, and pair the container with PostgreSQL.
From standalone cptr to built-in Folder workspaces
Open WebUI v0.13.5 replaces the standalone cptr workflow by embedding Folder workspaces directly into sidebar folders (#34804, #34805, #34800, #34803). Each project folder in your sidebar acts as a self-contained workspace rather than requiring a separate standalone app.
Setup uses a one-time per-folder binding. Open the folder configuration, pick your target computer, and choose the project directory once. Every new chat created inside that folder starts in the bound repository automatically, with no repeated path or tool setup.
In shared folders, workspace layout stays isolated per user. Even when teammates collaborate in the same folder, each person keeps and returns to their own tabs and workspace layout independently. Notes dragged into a sidebar folder (#34894, #24242) inherit that folder's read or edit permissions, keeping runbooks and debugging logs aligned with project access.
If you need the baseline container setup with Ollama first, start with Your first local LLM in 15 minutes with Ollama and Open WebUI in Docker before updating to v0.13.5.
Connecting project machines with Open Terminal 0.18.0+
Workspace capabilities depend on the Open Terminal version on your target machine:
- Open Terminal 0.17.21+: enables remote SSH connections across Linux on x86-64, Linux on ARM64, and Apple silicon Macs, plus the experimental single-instance mode that runs commands directly on the Open WebUI host server.
- Open Terminal 0.18.0+: required for Folder workspace skills, terminal check execution, and inspecting results in the embedded browser tab.
For homelabs, choosing between an SSH workstation and experimental host access is a trade-off between isolation and convenience:
| Topology | Minimum Open Terminal | Targets | Isolation profile |
|---|---|---|---|
| Remote SSH machine | 0.17.21+ (0.18.0+ for full workspace) | Linux x86-64, Linux ARM64, Apple silicon Macs | Commands stay confined to the remote SSH user and dev box |
| Experimental server-host mode | 0.17.21+ (0.18.0+ for full workspace) | Single-instance Open WebUI host | Admin permission grants selected users execution on the Open WebUI server |
SSH to a dedicated dev VM or workstation is the safer default because a broken build script cannot touch your Open WebUI database or reverse proxy.
Release v0.13.5 also improves connection resilience (#34856, #34866). After a server restart, users can start chatting right away while Open WebUI finishes connecting to external tools and machines. Deployments without a shared Redis cache also reuse connection details across later requests instead of renegotiating them.
When reaching your workspace outside your LAN, keep Open WebUI and SSH off the public internet. Access the stack over WireGuard or Tailscale, or terminate TLS behind an authenticated HTTPS reverse proxy.
Wiring AGENTS.md, CLAUDE.md, and reusable skills
Once a folder is bound to a repository directory, placing an AGENTS.md or CLAUDE.md file there causes every new chat in that folder to read your architecture notes, test commands, and rules automatically.
- Runtime: Python 3.12 with uv.
- Unit tests: `uv run pytest tests/unit -q`
- Lint and types: `uv run ruff check . && uv run mypy src`
- Never modify committed files under `db/migrations/`.Open Terminal 0.18.0+ layers reusable project instructions called skills on top of AGENTS.md or CLAUDE.md. While markdown files provide static context, skills encode repeatable check workflows so the assistant runs consistent lint, build, or verification steps.
Pair Folder workspaces with v0.13.5's Automatic model selection router in the model picker (#34900, #34895). Admins define text patterns or descriptions so coding prompts route to a code model while prose or planning prompts route elsewhere. Unmatched prompts fall back to the first listed model or random selection.
Side-by-side terminal checks, browser previews, and agent steering
Inside a Folder workspace, you work in a split-screen loop: chat on one side, a terminal running tests or build watchers beside it, and an embedded browser tab inspecting the live app. With Open Terminal 0.18.0+, the workspace supports terminal check execution and result inspection in the embedded browser without manual copy-paste.
When long Codex or Claude Code runs drift onto the wrong file, v0.13.5 supports mid-run steering (#34917, #33262, #34408). Send a plain-text follow-up while the job is running to redirect it immediately; follow-ups containing file attachments wait in the queue until the next turn.
To monitor delegated work, open Status > Threads to inspect sub-agents, approve tool calls, stop jobs, and view remaining context capacity alongside waiting tasks. When sub-agents are enabled, a planning chat can also query another saved coding chat to pull findings without merging histories.
Prevent noisy build logs from flooding your prompt window by setting TOOL_OUTPUT_MAX_CHARS (#30110):
environment:
- TOOL_OUTPUT_MAX_CHARS=12000A ceiling around 8,000 to 16,000 characters works well as a starting point for 32K to 64K local models, depending on how many tool turns you run. When a machine is connected, the model can still read the full command output as a file on disk if it needs deeper stack traces.
Switching to PostgreSQL for the 34x long-chat speedup
Earlier versions slowed down on multi-turn agent threads because saving one reply rewrote the whole conversation record. Open WebUI v0.13.5 persists only the messages that changed (#34689, #34671, #34688, #34672, #34674, #34670, #34646).
Official v0.13.5 PostgreSQL benchmarks show the impact on heavy sessions:
- 130 MB test chat: server message acceptance fell from
10.9 sto0.32 s(34x faster), and database writes dropped from533 MBto2 KBper message. - 61,000-chat search: two-word search under
Alldropped from18.2 sto1.4 sbecause permissions filter chats before scanning message bodies (#34911,#34903). - Faster opening and plain chats: reopening a saved chat fetches conversation and model lists in parallel, saving roughly 1 second in a 500-message test over 5 Mbit/s (
#34869,#34842), while plain chats lazy-load the terminal, spreadsheet viewer, and code highlighter only when needed (#34890,#34888).
Pair the v0.13.5 container with a dedicated PostgreSQL service and persistent volume in Compose:
services:
open-webui:
image: ghcr.io/open-webui/open-webui:v0.13.5
container_name: open-webui
restart: unless-stopped
ports:
- "3000:8080"
environment:
- DATABASE_URL=postgresql://openwebui:change_this_password@postgres:5432/openwebui
- TOOL_OUTPUT_MAX_CHARS=12000
volumes:
- open-webui-data:/app/backend/data
depends_on:
postgres:
condition: service_healthy
postgres:
image: postgres:16-alpine
container_name: open-webui-postgres
restart: unless-stopped
environment:
- POSTGRES_USER=openwebui
- POSTGRES_PASSWORD=change_this_password
- POSTGRES_DB=openwebui
volumes:
- open-webui-pg:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U openwebui -d openwebui"]
interval: 10s
timeout: 5s
retries: 5
volumes:
open-webui-data:
open-webui-pg:If you are migrating from SQLite, back up /app/backend/data before pointing DATABASE_URL at PostgreSQL, because switching to a new PostgreSQL database starts empty rather than importing existing SQLite chats automatically.
61,000-chat PostgreSQL search latency
Two-word search under All across 61,000 chats in PostgreSQL after filtering permissions first (lower is better).
Source: Open WebUI v0.13.5 Release Notes
Show data
| < v0.13.5 | 18.2 s |
| v0.13.5 | 1.4 s |
130 MB PostgreSQL chat message latency
Time for the server to accept a new message in Open WebUI's 130 MB PostgreSQL test chat (lower is better).
Source: Open WebUI v0.13.5 Release Notes
Show data
| < v0.13.5 | 10.9 s |
| v0.13.5 | 0.32 s |
Security boundaries and local-model context trade-offs
Remote SSH access confines agents to a dedicated workstation account and OS permissions, whereas experimental server-host mode grants single-instance admin-approved execution on the Open WebUI server itself.
Context limits also directly affect local GPU memory. Uncapped logs consume KV cache and VRAM headroom on Ollama, llama.cpp, or vLLM backends. Pairing conservative TOOL_OUTPUT_MAX_CHARS limits with Status > Threads context tracking helps keep coding runs inside your VRAM budget; see Ollama, llama.cpp or vLLM? When convenience stops being enough and GGUF file size is not the VRAM you need. Here is the real math for sizing local runners.
Upgrading to v0.13.5 benefits two groups most: solo homelabbers replacing standalone cptr with one integrated workspace, and small teams sharing project folders, permission-inherited Notes, and routed coding models.
FAQ
Do you need Open Terminal 0.18.0+ if you only want SSH machine access?
Remote SSH connections and experimental single-instance host execution work on Open Terminal 0.17.21 or later. However, you need Open Terminal 0.18.0 or later for Folder workspace skills, terminal check execution, and embedded browser-tab inspection.
Can the model still debug a long stack trace if TOOL_OUTPUT_MAX_CHARS is enabled?
Yes. Setting TOOL_OUTPUT_MAX_CHARS only caps how many characters from a command result enter the conversation context directly. When a project machine is connected, the model can still inspect the full log as a file on disk.
Why does PostgreSQL matter more in Open WebUI v0.13.5 than in earlier releases?
Open WebUI v0.13.5 persists only the messages that changed instead of rewriting the full conversation on each turn. In Open WebUI's PostgreSQL benchmarks, that cut server acceptance time in a 130 MB chat from 10.9 s to 0.32 s and reduced writes per message from 533 MB to 2 KB.

