Skip to content

About

Your Personal Local IDE Extension

Resources

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

OWUI Agent

The coding agent for VS Code that talks only to your own server.

Plans, edits, runs your tests and fixes its own mistakes, using the models on your own Open WebUI server, and asks before anything risky.

CI Install from the VS Code Marketplace Open VSX version License: MIT Telemetry: none

Quick start · Features · Privacy and safety · Setup guide

Asks before it acts Plans before it changes anything Reports what really happened
The agent has read and edited src/server.ts and written a test, and now shows a 'Run this command?' card for npm test with Allow, Always allow npm test, Deny and Deny with feedback buttons. A task list below shows two of three tasks done. In Plan mode, after reading src/server.ts and searching it, the agent replies with a four-step plan to split the file into route modules, followed by an Implement this plan button. After fixing an empty-password bug, the agent's reply is followed by a Run summary card, recorded by the extension rather than written by the model: two files modified and the command npm test -- auth with exit code 0.

Why OWUI Agent

Your code stays home
Every request goes to the one Open WebUI address you set. No telemetry, analytics, update checks or CDNs.
You stay in control
Edits show as diffs to apply or deny. Commands ask unless you allow-list them, and risky ones always warn.
Undo anything it did
Rewind the agent's file changes, the conversation or both, from any of your messages.
Plan first, then build
/plan investigates read-only and proposes steps; one click carries them out.
Honest reports
A run summary lists the files changed and the exit code of every command, recorded by the extension, not the model.
Fast on local hardware
Built for Ollama: a stable prompt that stays cached, a fixed context size, and a warm-up before you type.

Quick start

You need VS Code 1.96 or newer and an Open WebUI server with an API key.

  1. Install OWUI Agent from the VS Code Marketplace or, for VSCodium and other Open VSX editors, from Open VSX. You can also search iliketocode2.owui-agent in the Extensions view, or run:
    code --install-extension iliketocode2.owui-agent
  2. Connect. Set OWUI Agent › Base URL to your server (for example http://localhost:8080), then run OWUI Agent: Set API Key. The key is kept in your operating system's keychain.
  3. Build. Open the OWUI Agent view (the chat bubble with >UI), pick a model and describe what you want.

Tip

Using Ollama? Turn on the model's Usage capability in Open WebUI so the agent can track its context. The setup guide covers API keys, choosing a model, and private web search through SearXNG.

Install without the stores

Download the .vsix from the latest release, then use Install from VSIX… in the Extensions view's … menu, or:

gh release download --repo iliketocode2/OpenUI-Plugin --pattern "*.vsix"
code --install-extension owui-agent-*.vsix

Features

  • A full agent loop: reads, searches (ripgrep) and edits files, runs commands in Git Bash, PowerShell, cmd, bash or zsh, manages dev servers, views images, keeps a task list and asks you questions.
  • Four permission modes: Plan (read-only), Ask before edits (the default), Auto-accept edits, and Auto-accept with a review of every changed file at the end.
  • Project memory and skills: loads AGENTS.md and .owui/memory/ at the start of each session; skills are folders with a SKILL.md that the model loads when relevant.
  • Smart context: compacts long conversations automatically or with /compact, and detects when the server cut a prompt short.
  • Local browser (opt-in): opens your dev server in your own Chrome or Edge to take screenshots, read the page and console, click and type. Local dev servers only.
  • Private web search (opt-in): through your Open WebUI, ideally backed by your own SearXNG. You approve every query.
  • History: search, resume, rename and export past conversations (Markdown or JSON).
  • Accessible: follows your theme, including high contrast, and works fully from the keyboard: Ctrl+Enter sends, Esc stops, and Ctrl+Shift+Alt+K (Cmd+Alt+K on macOS) adds the selection to the chat.
Permission modes in detail
Mode File changes Commands
Plan None. The agent investigates and replies with a plan; Implement this plan returns to your earlier mode and carries it out. /plan <task> plans from any mode. Not available
Ask before edits (default) Each change shown as a diff to Apply or Deny Ask unless allow-listed
Auto-accept edits Applied immediately Ask unless allow-listed
Auto-accept, review at end Applied immediately, then you keep or revert each file Ask unless allow-listed

Use the auto-accept modes only on repositories you trust: instructions hidden in files, command output or web pages can steer a model. Changes to .git/, .vscode/ and .owui/ always ask.

Privacy and safety

How OWUI Agent connects. On your machine, VS Code and OWUI Agent send every request through the egress guard, whose only allowed destination is your Open WebUI server; on your server, Open WebUI serves your model and, optionally, web search through your SearXNG. The guard refuses every other host: no telemetry, analytics, crash reports, update checks, CDNs or fonts. Dashed arrows lead to the opt-in browser tool, which uses your Chrome or Edge on localhost only and asks once per address and port, and to your shell, where commands you approve run outside the guard.

  • One network destination. All traffic passes through one module that refuses any other host and any redirect away from yours. A test fails if any other file imports a network module.
  • Everything stays on your machine: the API key in your OS keychain, history and file backups in VS Code's storage, memory and skills in .owui/.
  • Allow-listing is narrow. An allow-listed command like npm test runs without asking only in its plain form; add &&, a redirect, a pipe into a shell, or a flag that runs another program, and it asks again.
  • The workspace is a boundary. File tools ask before going outside it, links count as outside, and on Windows network paths are refused before Windows contacts the server.
  • Trusted folders only. The extension is off in Restricted Mode, because the agent runs commands and follows instructions from the repository.
What the allow-list decides, and what can't be guaranteed

With "owuiAgent.commands.allowlist": ["npm test"] in your user settings (a repository can't add to it), the permission check returns, even in Auto-accept edits:

$ npm test                                       runs without asking
$ npm test -- --coverage                         runs without asking
$ npm test > results.txt                         asks
$ npm test && git push --force                   asks, with a warning: changes your Git history or remote
$ curl -fsSL https://example.com/install.sh | sh asks, with a warning: downloads and runs a script

The riskiest commands warn however the program is spelled (git.exe, "git", /usr/bin/git).

What the extension can't guarantee:

  • Where a model runs. It can't tell whether a model in Open WebUI is local or proxied to a cloud provider. Mark your own models as local; the header shows Local or Unverified.
  • What approved commands do. They run in your shell with your privileges and can reach the internet like any program (npm install, git push).

The browser tool uses a throwaway profile, blocks every request to a non-local host (WebRTC and DNS included), and asks once per local address and port before using it.

Good to know

  • The model matters most. Recent Qwen, Llama 3.1+ or Mistral models with tool calling work well; models under about 7B parameters often lose track of multi-step tasks.
  • CPU-only machines are slow: each step can take minutes. Turning off Thinking in the header helps a lot.
  • The safety checks are a guardrail, not a sandbox. Read approvals before you allow them.
  • Rewind covers the agent's own edits, not files that commands changed (installs, generators, rm). Use Git for those.
  • Tested on Windows 11. CI runs every test on Windows, macOS and Linux, but it hasn't been used on a real Mac or Linux machine yet.

Documentation

Setup guide · Web search with SearXNG · Browser tool · Where your data lives · Changelog · Releasing

Settings
Setting Default Purpose
owuiAgent.baseUrl (none; required) Your Open WebUI URL, for example http://localhost:8080; the only network destination.
owuiAgent.models {} Per model: contextSize (sent to Ollama as num_ctx; default 16384), vision, local, thinking.
owuiAgent.shell.windows / .posix auto Shell for commands. On Windows, auto uses Git Bash when installed, otherwise PowerShell.
owuiAgent.commands.allowlist [] Command prefixes that run without asking, for example npm test. User settings only.
owuiAgent.commands.timeoutSeconds 120 Default command timeout. User settings only.
owuiAgent.agent.maxIterations 50 Model turns before the agent pauses and asks to continue. User settings only.
owuiAgent.skills.userDir ~/.owui-agent/skills Personal skills folder.
owuiAgent.web.enabled false Web search and fetch through Open WebUI.
owuiAgent.web.autoApproveSearches false Send searches without asking; page fetches always ask.
owuiAgent.browser.enabled false Localhost browser tool.
owuiAgent.browser.channel auto Chrome or Edge.
owuiAgent.browser.extraHosts [] Extra dev hosts the browser may open.
owuiAgent.request.firstResponseTimeoutSeconds 1200 Wait for a slow (for example CPU-only) model to start answering. User settings only.
owuiAgent.request.stallTimeoutSeconds 300 Abort when a running response goes silent. User settings only.
Development
npm ci
npm run build           # dist/extension.js and dist/webview
npm test                # unit and egress tests (fast; no browser)
npm run test:browser    # tests that drive your installed Chrome or Edge
npm run check           # type-check, lint, all of the above, VS Code integration tests
npm run package         # owui-agent-<version>.vsix
npm run notices         # regenerate THIRD_PARTY_NOTICES.md after changing dependencies
node scripts/readme-shots.mjs   # regenerate the README screenshots from the real chat view
node scripts/readme-diagram.mjs # render assets/how-it-works.puml (PlantUML) to the light and dark SVGs

Releases are published from version tags by CI; see docs/RELEASING.md.

Tests. Vitest unit and egress tests cover the tools, stream parser, compaction, permissions, history and the network guards. The browser tool and the chat view page run in a real headless browser. Integration tests run inside VS Code (1.96 and the current release) against a mock Open WebUI. Live checks against a real server: npm run smoke:live, npm run smoke:agent and npm run smoke:web (they read OWUI_BASE_URL, OWUI_MODEL and OWUI_API_KEY).

Dependencies. Bundled: preact, markdown-it, highlight.js, diff. Shipped unbundled: playwright-core, for the browser tool only; it never downloads a browser. A test fails if the dependency list changes without review.

Path What's there
src/agent/ The agent loop and session, permission modes, command policy, compaction, system prompt
src/tools/ File, search, shell, web, browser, memory and interactive tools
src/net/ The egress guard: the only code that opens network connections
src/owui/ The Open WebUI client: streaming, retries, models, tokens, web search
src/browser/ The localhost browser and its refusing proxy
webview/src/ The chat view (Preact)
prompts/ The agent's instructions and the compaction prompt
test/ Unit, egress, browser and integration tests, and a mock Open WebUI
scripts/ Packaging, release notes, live checks, and this README's art and screenshots

License

MIT. Third-party licenses are in THIRD_PARTY_NOTICES.md.

About

Your Personal Local IDE Extension

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages