Free Grok WebUI & Codex WebUI for your machine
Self-hosted browser chat UIs that talk to the Grok CLI or Codex CLI already on your laptop — not a cloud chat wrapper. Private, password-protected, Tailscale-friendly, free forever with free updates. Paste a setup prompt into your agent or install manually. Optional tips never unlock features.
If it made your life easier
Everything on this page is free — downloads, setup, updates, forever. No account, no license, nothing locked. If a WebUI saved you time, you can optionally leave a one-time tip. Tips never unlock features; skipping them is fine.
Let your agent set it up
Already chatting with Grok or Codex on this machine? Copy a prompt, paste it into the agent, and let it install the WebUI. Review what it does — same rules as any local agent with shell access.
Preview full prompt
Please set up the free Agent Media Tools Grok WebUI on this machine. Download: https://agentmediatools.com/downloads/agent-media-tools-grok-webui.tar.gz Docs: https://agentmediatools.com/webui Requirements: - Node.js 20+ - Authenticated `grok` CLI on PATH - Tailscale recommended for phone / other devices (bind to Tailscale IP, not public internet) Do this: 1. Download the archive into a sensible directory under my home folder (e.g. ~/apps or ~/src) 2. Extract it, run `npm install` if package.json has dependencies, then `chmod +x ./scripts/setup.sh` and `./scripts/setup.sh` 3. Bind only to localhost or my Tailscale IP — never 0.0.0.0 on a public network 4. Keep .env mode 600; do not print secrets or API keys into chat 5. When done, print the service status command, the local/Tailscale URL, and how to restart with systemctl --user Optional later: open Prefs in the WebUI and paste an Agent Media Tools `mt_` agent key if I want AMT tools in the chat. Free tools stay free; paid tools use my AMT plan. These WebUIs are free forever with free updates — re-download from the docs page anytime. Tips are optional at https://agentmediatools.com/tip
Preview full prompt
Please set up the free Agent Media Tools Codex WebUI on this machine. Download: https://agentmediatools.com/downloads/agent-media-tools-codex-webui.tar.gz Docs: https://agentmediatools.com/webui Requirements: - Node.js 20+ - Working `codex` CLI / app-server - Tailscale recommended for phone / other devices (bind to Tailscale IP, not public internet) Do this: 1. Download the archive into a sensible directory under my home folder (e.g. ~/apps or ~/src) 2. Extract it, run `npm install` if package.json has dependencies, then `chmod +x ./scripts/setup.sh` and `./scripts/setup.sh` 3. Bind only to localhost or my Tailscale IP — never 0.0.0.0 on a public network 4. Keep .env mode 600; do not print secrets or API keys into chat 5. When done, print the service status command, the local/Tailscale URL, and how to restart with systemctl --user Optional later: open Prefs in the WebUI and paste an Agent Media Tools `mt_` agent key if I want AMT tools in the chat. Free tools stay free; paid tools use my AMT plan. These WebUIs are free forever with free updates — re-download from the docs page anytime. Tips are optional at https://agentmediatools.com/tip
Prefer doing it yourself? Skip to manual setup below — same result, step by step.
Free forever — updates included
There is no paid tier for these WebUIs. We run the same packages day-to-day; when we fix bugs or ship features for ourselves, the public downloads get the same updates.
- No license keys — download, install, use
- Re-download anytime from this page for the latest package
- Optional tips fund more polish; they never unlock WebUI features
- AMT agent key is optional and only needed if you want Agent Media Tools from inside the chat
Grok WebUI (xAI Grok CLI)
Free self-hosted Grok browser UI for the Grok agent over ACP stdio. Multi-session list, streaming, attachments, slash commands, prefs, optional Agent Media Tools bridge.
- Default port
4546 - Requires authenticated
grokCLI on PATH - Session fleet strip · pin · search · export
- Mobile-safe long chats (bounded history + load earlier)
Codex WebUI (OpenAI Codex CLI)
Free self-hosted Codex browser UI for Codex app-server. Approvals, activity rail, weekly rate limits when available, prefs, optional Agent Media Tools bridge.
- Default port
4545 - Requires working
codexCLI / app-server - Mobile-friendly approval buttons
Who these agent WebUIs are for
If you already run coding agents in the terminal and want a phone-friendly or multi-session chat shell without sending your agent session to a third-party SaaS UI, these packages fit:
- Grok CLI users looking for a free Grok WebUI / browser UI on their own hardware
- Codex CLI users who want a local Codex WebUI with approvals and activity in the browser
- People using Tailscale (or similar) to reach a home lab laptop from a phone or tablet
- Builders who want optional Agent Media Tools (media, docs, utilities) inside the same chat via an
mt_key
They are not hosted Grok.com or ChatGPT alternatives. Model access still comes from your existing Grok or Codex CLI subscription/setup.
How to install Grok WebUI or Codex WebUI
Both packages are self-hosted on your machine. Do not bind them to the public internet. Prefer the agent install prompts above if you already have Grok or Codex running here.
1. Prerequisites
- Node.js 20+
- Grok WebUI: install and authenticate the
grokCLI - Codex WebUI: install a working
codexCLI / app-server - Tailscale (recommended) for phone / other devices on your private network
2. Unpack and install
cd ~/Downloads tar -xzf agent-media-tools-grok-webui.tar.gz # or codex-webui cd grok-webui # or codex-webui npm install # if package.json has deps chmod +x ./scripts/setup.sh ./scripts/setup.sh
Setup writes a mode-600 .env, installs a user systemd service, and prints a URL like http://100.x.x.x:4546.
3. Open from your devices
Use a browser on the same Tailscale network (or localhost). Complete first-run login / password setup when prompted.
4. Optional: Agent Media Tools
In the WebUI open ⚙ Prefs, paste an mt_ agent key, and save. The top bar can show AMT daily usage and credits — separate from Grok/Codex model limits. Free tools stay free; paid tools follow your AMT plan.
5. Updating
Updates are free. Download the latest package from this page, extract over your install (or into a fresh folder), re-run npm install if needed, and restart the user service. Keep your existing .env (password and bind settings).
# After unpacking a new release systemctl --user restart grok-webui # or codex-webui
6. Service commands
# Grok systemctl --user status grok-webui systemctl --user restart grok-webui journalctl --user -u grok-webui -f # Codex systemctl --user status codex-webui systemctl --user restart codex-webui journalctl --user -u codex-webui -f
Security model (short version)
- Bind to Tailscale IP or localhost — not
0.0.0.0on a public network - Password-protected UI; agent credentials never go to the browser
- Agents typically run with full machine access — treat untrusted prompts carefully
- Optional AMT keys are stored only on your laptop
Grok WebUI & Codex WebUI FAQ
What is a Grok WebUI or Codex WebUI?
A free self-hosted browser chat interface that talks to the Grok CLI or Codex CLI already running on your laptop. It is not a hosted cloud chat product — the agent process and model credentials stay on your machine.
Is the Grok WebUI free?
Yes. Both the Grok WebUI and Codex WebUI are free forever with free updates. Optional one-time tips never unlock features. You still need your own Grok or Codex CLI access from the provider.
How do I install Grok WebUI or Codex WebUI?
Paste the install prompt from this page into your agent, or download the package, extract it, and run ./scripts/setup.sh. Bind only to localhost or a Tailscale IP — not the public internet.
Can I use the WebUI from my phone?
Yes. Run the WebUI on your laptop bound to a Tailscale IP, then open that private URL from any device on your Tailscale network. Long Grok chats open a recent window so phones stay stable — use Load earlier messages for older turns. Re-download the package when we ship fixes.
Does this replace ChatGPT or the Grok website?
No. It is a local browser shell for the coding/agent CLI on your computer (files, tools, sessions). Hosted chat sites remain separate products.
How do I connect Agent Media Tools?
Optional. In WebUI Prefs, paste an mt_ agent API key from your Agent Media Tools account. Free tools stay free; paid tools use your AMT plan.
Support vs tip: Need help with Agent Media Tools accounts, billing, or APIs? Use Contact or Help. Tips for the free WebUIs live at /tip. Find this page anytime from the Toolbox workspace or the site footer.