Open WebIDE
A self-hosted browser IDE for coding with local LLMs: edit files, run an agent, review its changes, and use Git and a terminal in one workspace. Connect to Ollama or OpenAI-compatible model servers such as llama.cpp and LM Studio.
Install and run
With Docker and Docker Compose installed, download the published nightly Compose file into a dedicated installation directory and start the container.
mkdir -p ~/openwebide-install ~/source
cd ~/openwebide-install
curl -fL -o docker-compose.yml \
https://github.com/openwebide/openwebide/releases/download/nightly/docker-compose.yml
docker compose up -d --pull always
Open http://localhost:8080/, register the first account, and follow
Your first session to connect a model and open a project.
Projects in ~/source appear in the remote folder picker.
See release installation and upgrades for Podman, checksums, custom workspace paths and existing installations.
What you can do
- Edit code with syntax highlighting, search, Git diffs, and Markdown/image previews.
- Work across project tabs, with an automatically refreshed file tree and the last-used session restored when opening a project.
- Chat with a coding agent that reads, searches, edits, runs commands, and uses Git; review pending edits with Accept/Reject controls.
- Choose Manual, Auto-accept edits, Auto, or YOLO approval modes with
Shift+Tab. Auto uses an optional fast model, falling back to the primary model. - View build details and bundled license notices through About in the app menu or command search, including from the offline PWA screen. See About.
- Choose personal primary/fast defaults in Settings. Configure shared servers, credentials and model settings through the Servers setup wizard. See your first session for setup and architecture for context compaction.
- Discover host-installed plugins, enable them by default across projects, and review available updates. First-party plugins provide web tools, project memory, scheduling, monitors and skill authoring through the public SDK.
- Extend agent tools with configured MCP servers on server and paired local execution hosts.
- Run goals, scheduled tasks and monitors, and inspect your homelab through host administration.
- Use slash commands such as
/model,/test,/diff,/commit, and/sync, with live token/speed telemetry and a context-window gauge.
See the roadmap for remaining work and the changelog for completed changes.
The Rust frontend and backend run on WebAssembly; a native execution bridge provides terminals, commands, Git operations, and persistent agent runs. Projects, sessions, and preferences live in SQLite, so you can resume from another browser.
The project site guide explains how the landing page and documentation are built and published to GitHub Pages from this repository.
Documentation and project updates: openwebide.com. Browse the documentation by Getting started, Using Open WebIDE, Hosting and administration, Development, or Project.
Run with Docker
Use Install and run for the published image. The commands below build the container from a source checkout.
Existing installs should follow the deployment-name migration notes
to retain their database and Tailscale identity when adopting the openwebide name.
From a checkout of this repository:
python3 tools/build_container.py up
Open http://localhost:8080/ and register the first account. Compose mounts
~/source as /workspace, persists the database in the openwebide-data volume,
and exposes the bundled bridge on port 3001. Choose a different workspace with:
OPENWEBIDE_WORKSPACE=/path/to/projects python3 tools/build_container.py up
The source command starts Compose in the background. Use docker compose logs -f
to follow its logs. Both source build commands use the openwebide:local image.
For a standalone container:
python3 tools/build_container.py build
docker run -d --name openwebide \
-p 8080:3000 -p 3001:3001 \
-v openwebide-data:/app/.spin -v ~/source:/workspace openwebide:local
The workspace mount is accessible to file tools and the agent; choose its scope
accordingly. .spin/ is excluded from file access. The bundled bridge persists
its secret at /app/.spin/bridge-secret; set OPENWEBIDE_BRIDGE=0 to disable it
and use SSE chat instead. This explicitly disabled mode keeps direct WASI file
saves available outside native folder locking. Normal deployments use
SPIN_VARIABLE_WORKSPACE_WRITE_POLICY=coordinated; unavailable or uncertain native
replies block writes without falling back. An explicit coordinated setting also
overrides the disabled-bridge default. See file write policy.
If overriding the container command, retain
spin up --direct-mounts --allow-transient-write so edits reach the mounted files.
Legacy remote paths are migrated automatically on startup.
The container keeps the bridge's private recovery namespace at
/app/.spin/native-principal on the same data volume. Its root-owned per-UID
installation policy is independent of HOME and bridge profile settings.
The database, update records and external identity file must stay together on
that persistent authority filesystem. See the recovery persistence checks
for publication behavior and the original owner checks
for verified restart protection and remaining compound command recovery work.
For Linux services, see the Podman quadlet guide. For private HTTPS access from phones and other devices, the recommended approach is Tailscale Serve in a separate container.
Host administration
Host administration is included by default. Configure Settings → Host → Host administration with an SSH username, operating system and verified public host keys; the address defaults to the deployment host. Project-less chat can inspect that machine and propose changes for approval, with private terminal replies for interactive prompts. Container deployments use the same SSH agent setup as Git below. See host administration. Settings → Host → Updates selects a release channel, checks published images and installs a compatible release through a configured Compose or user Quadlet updater. The update runs on the host and survives the app restarting.
Git authentication
Native bridges use the host SSH agent and configuration. Docker can forward the
host agent with the optional docker-compose.ssh.yml overlay, keeping private keys
on the host. See Git authentication for Docker Desktop, Linux,
Podman, host-key verification and HTTPS credential helpers.
Run from source
Install Rust, Spin 4.x,
and Trunk. Rust's toolchain and WASM
targets are pinned in rust-toolchain.toml and installed by rustup on first build.
The browser syntax parser also needs Clang (Xcode Command Line Tools on macOS;
sudo apt-get install clang on Debian/Ubuntu). Rust's pinned llvm-tools component
supplies the WASM archiver; the build selects it automatically, including on macOS
where Apple's archiver does not retain WASM objects.
Host Git operations require Git 2.23 or newer. Python 3 generates the bundled
open-source notices during frontend builds.
Build from the repository root:
NO_COLOR=true spin build
cargo build -p openwebide-bridge
Start Spin and the bridge in separate terminals:
spin up --direct-mounts --allow-transient-write
./target/debug/openwebide-bridge --port 3001 --workspace ../.. --host 127.0.0.1 \
--backend-url http://127.0.0.1:3000/api --secret-file /tmp/openwebide-bridge-secret
Open http://localhost:3000/. The bridge workspace must match the backend's
files.source in spin.toml (currently ../..). Both services need normal host
filesystem access: launching them inside a coding agent's sandbox can prevent
writes to other projects. Keep the Spin flags above to avoid editing a temporary
copy of the workspace.
The current browser connection offers its backend address to native command
recovery without requiring folder access. Recovery verifies the original private
proof before saving a move; an unavailable or unrelated backend leaves the
original owner pending. With browsers closed, update the bridge --backend-url
and restart it. Update the backend and bridge together for the private callback
transport. Built-browser recovery checks pass in both modes; packaged release,
installed-app and physical-permission verification remain in progress.
Open a project
After signing in, connect a model and choose Open remote for host folders or Open local for this device's folders. See local and remote projects for browser requirements, folder permissions and command/Git capabilities.
Connect over the LAN
Use http://<host-ip>:8080 for Docker or port 3000 for a source build. For a native
bridge, bind it to 0.0.0.0 instead of 127.0.0.1 so browsers can reach port 3001.
When using a custom hostname, set OPENWEBIDE_BRIDGE_ALLOWED_HOSTS=<hostname>.
If the page and bridge use different hostnames, also set
OPENWEBIDE_BRIDGE_ALLOWED_ORIGINS=http://<page-host>:<port>. Both accept
comma-separated lists and are passed through by Compose. A backend connecting to
a bridge over a non-loopback address also needs an explicitly configured shared
secret; see the bridge reference.
Accounts and agent execution
Accounts use argon2id password hashing and HttpOnly session cookies. Registration closes after the first account. Logging out invalidates that user's sessions across devices. Preferences and session state are database-backed rather than localStorage.
File tools are confined to the workspace; commands and Git run as the bridge's
host user. Approval modes control when the agent asks permission. Before overwriting
binary or large files, the agent keeps originals in .openwebide/backups/ so Reject
can restore them; retain those backups until the edits no longer need restoration.
The backend can reach LAN and public model servers, search, and documentation
pages. Web fetching blocks cloud metadata addresses. fetch_web_page goes through
the approval policy; search_web is auto-approved. The bridge checks request hosts,
origins, and authentication to protect against malicious browser tabs.
Development
cargo test -p openwebide-storage -p openwebide-core -p openwebide-auth -p openwebide-agent -p openwebide-llm -p openwebide-bridge -p openwebide-backend
cargo test -p openwebide-frontend --lib
CHROMEDRIVER=<path> cargo test -p openwebide-frontend --target wasm32-unknown-unknown
Browser tests require Chrome, chromedriver, and wasm-bindgen-cli matching
Cargo.lock. For frontend-only development, run cd frontend && trunk serve
and open http://localhost:8080/?api=http://localhost:3000/api with Spin running.
Use the same hostname for both services so session cookies work; the API override
is accepted only from localhost:8080 or 127.0.0.1:8080.
| Directory | Purpose |
|---|---|
frontend/ |
Leptos WASM app, built with Trunk |
backend/ |
Spin REST/SSE component |
bridge/ |
Native terminals, execution, and agent hosting |
crates/ |
Shared domain, agent, provider, authentication, and storage code |
Further reference: architecture, execution bridge, plugin host installation, plugin authoring, and API examples.
License
MIT.
Browser notifications support Web Push for remote and projectless runs.