Skip to content

Self-hosted web UI for OpenClaw AI agent. Real-time chat, markdown rendering, skills sidebar — fully local, fully private. No API keys needed.

Notifications You must be signed in to change notification settings

knightafter/openClaw-web-interface

Repository files navigation

🦞 OpenClaw Web Interface

A beautiful, self-hosted chat UI for your OpenClaw AI agent — run it locally or on a VPS, no third-party apps required.

Next.js TypeScript Tailwind CSS License


🤔 What is this?

OpenClaw is an AI agent that connects to your apps — WhatsApp, Notion, Apple Notes, and more. It normally lives inside WhatsApp or Telegram, but those apps are limited:

  • No markdown rendering
  • No code syntax highlighting
  • Messages go through Meta or Telegram servers
  • No visibility into what skills/tools your agent has

This project gives OpenClaw a proper home. A clean, fast, self-hosted web interface that connects directly to your OpenClaw gateway over WebSocket — fully local, fully private, fully yours.


✨ Features

  • 💬 Real-time streaming — See responses token by token as the AI thinks
  • 📝 Full Markdown — Tables, code blocks, syntax highlighting, bold, lists — all rendered beautifully
  • 🧠 Skills sidebar — See every tool and skill your agent has connected at a glance
  • 🔒 100% Private — Everything runs locally, no data ever leaves your machine
  • 🌙 Dark / Light mode — Built-in theme toggle
  • 🔑 Zero API keys — No OpenAI key, no Gemini key, nothing. Just connect to your local gateway
  • 🖥️ VPS ready — Run it on a server and access it from anywhere via SSH tunnel
  • Fast — Built with Next.js 15 and Tailwind CSS 4

🆚 Why use this instead of WhatsApp or Telegram?

Feature This Web UI WhatsApp / Telegram
Markdown + code rendering ✅ Full support ❌ Plain text only
Privacy (local only) ✅ Never leaves your machine ⚠️ Goes through Meta/Telegram
Skills visibility ✅ Sidebar shows all tools ❌ Hidden
No phone required ✅ Just a browser ❌ Phone must stay online
Self hosted ✅ You own everything ❌ Closed platforms
Rate limits ✅ None ⚠️ Limits apply
VPS friendly ✅ SSH tunnel support ❌ Complicated

🛠️ Prerequisites

Install OpenClaw:

npm install -g openclaw

🚀 Getting Started

1. Start OpenClaw gateway

openclaw gateway install
openclaw gateway start

Check it is running:

openclaw status

You should see Gateway: reachable and your channels (e.g. WhatsApp: OK).

2. Clone this repo

git clone https://github.com/YOUR_USERNAME/openclaw-web.git
cd openclaw-web

3. Install dependencies

npm install

4. Start the app

npm run dev

Open http://localhost:3000 in your browser.

5. Connect to your gateway

On first launch enter:

Field Value
Gateway URL ws://127.0.0.1:18789
Token Found in ~/.openclaw/openclaw.json

🖥️ Running on a VPS

If OpenClaw is running on a remote server, use an SSH tunnel to connect securely:

ssh -L 18789:127.0.0.1:18789 user@your-vps-ip

Then use ws://127.0.0.1:18789 as your gateway URL — same as local. No firewall changes needed.


🔐 Security & Secrets

This project has zero hardcoded secrets or API keys.

  • No .env file needed
  • No Gemini, OpenAI, or any other API key stored here
  • Your OpenClaw auth token is entered in the UI at runtime and never stored in this codebase
  • All communication stays on your local machine

🧱 Tech Stack

Tech Purpose
Next.js 15 React framework
TypeScript Type safety
Tailwind CSS 4 Styling
WebSocket Real-time gateway connection
React Markdown Markdown rendering

🤝 Contributing

Pull requests are welcome! If you find a bug or want a new feature, open an issue first so we can discuss it.

git checkout -b feature/your-feature
git commit -m "add your feature"
git push origin feature/your-feature

📄 License

MIT — free to use, modify, and distribute.


Built for people who want to own their AI, not rent it.

About

Self-hosted web UI for OpenClaw AI agent. Real-time chat, markdown rendering, skills sidebar — fully local, fully private. No API keys needed.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published