Soul-driven AI agent with permission-hardened tools, token budgets, and multi-channel access. Runs 24/7 from CLI, Telegram or More.
"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([["8314"],{90581(e,s,n){n.r(s),n.d(s,{metadata:()=>r,default:()=>h,frontMatter:()=>a,contentTitle:()=>d,toc:()=>c,assets:()=>o});var r=JSON.parse('{"id":"integrations/web-dashboard","title":"Web Dashboard","description":"Mercury Web is a React single-page application that provides a visual interface for managing every part of the agent \u2014 chat, memory, tasks, code, and configuration. It runs locally at http6174.","source":"@site/docs/integrations/web-dashboard.mdx","sourceDirName":"integrations","slug":"/integrations/web-dashboard","permalink":"/docs/integrations/web-dashboard","draft":false,"unlisted":false,"editUrl":"https://github.com/cosmicstack-labs/mercury-agent/tree/main/website/docs/integrations/web-dashboard.mdx","tags":[],"version":"current","frontMatter":{"title":"Web Dashboard","sidebar_label":"Web Dashboard"},"sidebar":"docsSidebar","previous":{"title":"Platform-Specific Guide","permalink":"/docs/daemon-mode/platform-guide"},"next":{"title":"Mercury Bots \u2014 The Fleet","permalink":"/docs/integrations/mercury-bots"}}'),i=n(74848),t=n(28453);let a={title:"Web Dashboard",sidebar_label:"Web Dashboard"},d="Web Dashboard",o={},c=[{value:"Enabling the Dashboard",id:"enabling-the-dashboard",level:2},{value:"Configuration",id:"configuration",level:2},{value:"Authentication",id:"authentication",level:2},{value:"Install as a PWA",id:"install-as-a-pwa",level:2},{value:"Pages",id:"pages",level:2},{value:"Status",id:"status",level:3},{value:"Chat (<code>/chat</code> and <code>/chat/:threadId</code>)",id:"chat-chat-and-chatthreadid",level:3},{value:"Tasks (<code>/tasks</code>)",id:"tasks-tasks",level:3},{value:"Board (<code>/board</code> and <code>/board/:boardId</code>)",id:"board-board-and-boardboardid",level:3},{value:"Workspace (<code>/workspace</code>)",id:"workspace-workspace",level:3},{value:"Second Brain",id:"second-brain",level:3},{value:"Configure",id:"configure",level:3},{value:"Settings (<code>/settings</code>)",id:"settings-settings",level:3},{value:"Tech Stack",id:"tech-stack",level:2}];function l(e){let s={a:"a",code:"code",h1:"h1",h2:"h2",h3:"h3",header:"header",li:"li",p:"p",strong:"strong",table:"table",tbody:"tbody",td:"td",th:"th",thead:"thead",tr:"tr",ul:"ul",...(0,t.R)(),...e.components};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(s.header,{children:(0,i.jsx)(s.h1,{id:"web-dashboard",children:"Web Dashboard"})}),"\n",(0,i.jsxs)(s.p,{children:["Mercury Web is a React single-page application that provides a visual interface for managing every part of the agent \u2014 chat, memory, tasks, code, and configuration. It runs locally at ",(0,i.jsx)(s.code,{children:"http://127.0.0.1:6174"}),"."]}),"\n",(0,i.jsx)(s.h2,{id:"enabling-the-dashboard",children:"Enabling the Dashboard"}),"\n",(0,i.jsx)(s.p,{children:"Enable the web dashboard using either method:"}),"\n",(0,i.jsxs)(s.ul,{children:["\n",(0,i.jsxs)(s.li,{children:["Run ",(0,i.jsx)(s.code,{children:"mercury doctor"})," and follow the prompts"]}),"\n",(0,i.jsxs)(s.li,{children:["Set ",(0,i.jsx)(s.code,{children:"web.enabled: true"})," in your ",(0,i.jsx)(s.code,{children:"mercury.yaml"})," configuration"]}),"\n"]}),"\n",(0,i.jsx)(s.h2,{id:"configuration",children:"Configuration"}),"\n",(0,i.jsxs)(s.table,{children:[(0,i.jsx)(s.thead,{children:(0,i.jsxs)(s.tr,{children:[(0,i.jsx)(s.th,{children:"Option"}),(0,i.jsx)(s.th,{children:"Default"}),(0,i.jsx)(s.th,{children:"Description"})]})}),(0,i.jsxs)(s.tbody,{children:[(0,i.jsxs)(s.tr,{children:[(0,i.jsx)(s.td,{children:(0,i.jsx)(s.code,{children:"web.enabled"})}),(0,i.jsx)(s.td,{children:(0,i.jsx)(s.code,{children:"false"})}),(0,i.jsx)(s.td,{children:"Enable or disable the web dashboard"})]}),(0,i.jsxs)(s.tr,{children:[(0,i.jsx)(s.td,{children:(0,i.jsx)(s.code,{children:"web.port"})}),(0,i.jsx)(s.td,{children:(0,i.jsx)(s.code,{children:"6174"})}),(0,i.jsx)(s.td,{children:"Port the dashboard listens on"})]}),(0,i.jsxs)(s.tr,{children:[(0,i.jsx)(s.td,{children:(0,i.jsx)(s.code,{children:"MERCURY_PORT"})}),(0,i.jsx)(s.td,{children:(0,i.jsx)(s.code,{children:"6174"})}),(0,i.jsx)(s.td,{children:"Environment variable override for port"})]})]})]}),"\n",(0,i.jsxs)(s.p,{children:["The server binds to ",(0,i.jsx)(s.code,{children:"127.0.0.1"})," only and is not exposed to the network. The web server lifecycle is tied to the Mercury process \u2014 it stops when Mercury stops."]}),"\n",(0,i.jsx)(s.h2,{id:"authentication",children:"Authentication"}),"\n",(0,i.jsx)(s.p,{children:"The dashboard is protected by username/password authentication."}),"\n",(0,i.jsxs)(s.p,{children:["There is no default password. ",(0,i.jsx)(s.code,{children:"mercury setup"})," asks you for one (at least 10 characters) or generates a strong one and shows it once. The username is ",(0,i.jsx)(s.code,{children:"mercury"}),". Lost it? Run ",(0,i.jsx)(s.code,{children:"mercury web-reset-password"}),"."]}),"\n",(0,i.jsxs)(s.p,{children:["You will be redirected to ",(0,i.jsx)(s.code,{children:"/login"})," for any unauthenticated request. After logging in, an HTTP-only session cookie is set. Sign out from ",(0,i.jsx)(s.strong,{children:"Settings \u2192 Account"})," or by closing the session in your browser."]}),"\n",(0,i.jsxs)(s.p,{children:["You can change your credentials from ",(0,i.jsx)(s.strong,{children:"Settings \u2192 Account"}),"."]}),"\n",(0,i.jsx)(s.h2,{id:"install-as-a-pwa",children:"Install as a PWA"}),"\n",(0,i.jsxs)(s.p,{children:["Mercury Web is a Progressive Web App. In Chrome, Edge, or Safari, look for the ",(0,i.jsx)(s.strong,{children:"Install"})," icon in the address bar (or ",(0,i.jsx)(s.strong,{children:"File \u2192 Install Mercury Agent"}),") to add it to your launcher. The PWA runs in its own window without browser chrome."]}),"\n",(0,i.jsx)(s.h2,{id:"pages",children:"Pages"}),"\n",(0,i.jsx)(s.h3,{id:"status",children:"Status"}),"\n",(0,i.jsxs)(s.p,{children:["Landing page at ",(0,i.jsx)(s.code,{children:"/"}),". Shows Mercury's current process state, active provider, daily token usage, recent activity, and quick links to other sections."]}),"\n",(0,i.jsxs)(s.h3,{id:"chat-chat-and-chatthreadid",children:["Chat (",(0,i.jsx)(s.code,{children:"/chat"})," and ",(0,i.jsx)(s.code,{children:"/chat/:threadId"}),")"]}),"\n",(0,i.jsx)(s.p,{children:"A multi-thread chat interface with SSE streaming."}),"\n",(0,i.jsxs)(s.ul,{children:["\n",(0,i.jsxs)(s.li,{children:[(0,i.jsx)(s.strong,{children:"Thread sidebar"})," \u2014 Lists all conversations. Click any thread to switch; the URL updates to ",(0,i.jsx)(s.code,{children:"/chat/<id>"})," so you can bookmark or share links."]}),"\n",(0,i.jsxs)(s.li,{children:[(0,i.jsx)(s.strong,{children:"New Chat"})," button \u2014 Creates a new thread and navigates to its URL."]}),"\n",(0,i.jsxs)(s.li,{children:[(0,i.jsx)(s.strong,{children:"Rename"})," \u2014 Use the pencil beside a conversation to choose a name (up to 120 characters). Save applies it; Cancel or Escape keeps the existing name. Your name survives restarts and automatic title generation."]}),"\n",(0,i.jsxs)(s.li,{children:[(0,i.jsx)(s.strong,{children:"Delete"})," \u2014 Hover a thread (or open it) to reveal a trash icon. Confirmation dialog prevents accidents."]}),"\n",(0,i.jsxs)(s.li,{children:[(0,i.jsx)(s.strong,{children:"Model switcher"})," \u2014 Top of the chat header. Pick any configured provider; the choice is per-thread."]}),"\n",(0,i.jsxs)(s.li,{children:[(0,i.jsx)(s.strong,{children:"Code Mode toggle"})," \u2014 Switches the agent into coding mode for the active thread (file edits, shell calls allowed under your permission policy)."]}),"\n",(0,i.jsxs)(s.li,{children:[(0,i.jsx)(s.strong,{children:"Streaming"})," \u2014 Assistant tokens arrive via Server-Sent Events; you can interrupt mid-stream."]}),"\n",(0,i.jsxs)(s.li,{children:[(0,i.jsx)(s.strong,{children:"Attachments"})," \u2014 Use the paperclip, paste files, or drop them into the composer. Up to four files can accompany a message, including a message with no caption. Images and PDFs keep their existing model requirements; UTF-8 ",(0,i.jsx)(s.code,{children:".txt"}),", ",(0,i.jsx)(s.code,{children:".md"}),", and ",(0,i.jsx)(s.code,{children:".markdown"})," files work with every model."]}),"\n"]}),"\n",(0,i.jsx)(s.p,{children:"Text attachments are limited to 256 KiB each. Mercury includes the first 16,000 characters per file, up to 32,000 characters across the turn, with a filename and an explicit truncation notice. The complete original remains available from the message's file link. Binary files, invalid UTF-8, and control characters other than tabs and line breaks are rejected. Markdown is passed as text and downloaded as plain text; embedded HTML is not rendered."}),"\n",(0,i.jsxs)(s.p,{children:["The same text-file support is available in Mercury Desktop and through the chat and bot message APIs using ",(0,i.jsx)(s.code,{children:'attachments: [{ name: "notes.md", data: "<base64 UTF-8>" }]'}),". Channel adapters that already supply document paths use the same bounded text reader."]}),"\n",(0,i.jsxs)(s.h3,{id:"tasks-tasks",children:["Tasks (",(0,i.jsx)(s.code,{children:"/tasks"}),")"]}),"\n",(0,i.jsx)(s.p,{children:"View and manage background and scheduled tasks the agent has created or that you queued via Telegram or chat."}),"\n",(0,i.jsxs)(s.h3,{id:"board-board-and-boardboardid",children:["Board (",(0,i.jsx)(s.code,{children:"/board"})," and ",(0,i.jsx)(s.code,{children:"/board/:boardId"}),")"]}),"\n",(0,i.jsxs)(s.p,{children:["The Kanban Boards view for visually planning and executing agent work. See the ",(0,i.jsx)(s.a,{href:"./kanban-boards",children:"Kanban Boards"})," page for full details."]}),"\n",(0,i.jsxs)(s.h3,{id:"workspace-workspace",children:["Workspace (",(0,i.jsx)(s.code,{children:"/workspace"}),")"]}),"\n",(0,i.jsxs)(s.p,{children:["A browser-based IDE for editing project files, running terminal commands, and managing Git \u2014 all without leaving Mercury. See the ",(0,i.jsx)(s.a,{href:"./coding-workspace",children:"Coding Workspace"})," page for full details."]}),"\n",(0,i.jsx)(s.h3,{id:"second-brain",children:"Second Brain"}),"\n",(0,i.jsxs)(s.p,{children:["Mercury's memory and knowledge views \u2014 see the ",(0,i.jsx)(s.a,{href:"../reference/second-brain",children:"Second Brain"})," reference."]}),"\n",(0,i.jsxs)(s.ul,{children:["\n",(0,i.jsxs)(s.li,{children:[(0,i.jsx)(s.strong,{children:"Memory"})," (",(0,i.jsx)(s.code,{children:"/second-brain/memory"}),") \u2014 Browse, search, edit, promote, or prune memory items. Filter by scope (",(0,i.jsx)(s.code,{children:"conscious"}),", ",(0,i.jsx)(s.code,{children:"subconscious"}),") and by tag."]}),"\n",(0,i.jsxs)(s.li,{children:[(0,i.jsx)(s.strong,{children:"Persons"})," (",(0,i.jsx)(s.code,{children:"/second-brain/persons"}),", ",(0,i.jsx)(s.code,{children:"/second-brain/persons/:id"}),") \u2014 People Mercury has met, with their facts, last-seen timestamps, and relationships."]}),"\n",(0,i.jsxs)(s.li,{children:[(0,i.jsx)(s.strong,{children:"Goals"})," (",(0,i.jsx)(s.code,{children:"/second-brain/goals"}),") \u2014 Long-running goals with progress, sub-tasks, and linked memories."]}),"\n",(0,i.jsxs)(s.li,{children:[(0,i.jsx)(s.strong,{children:"Graph"})," (",(0,i.jsx)(s.code,{children:"/second-brain/graph"}),") \u2014 Force-directed graph visualization of memories, persons, and goals with their relationships."]}),"\n"]}),"\n",(0,i.jsx)(s.h3,{id:"configure",children:"Configure"}),"\n",(0,i.jsxs)(s.ul,{children:["\n",(0,i.jsxs)(s.li,{children:[(0,i.jsx)(s.strong,{children:"Providers"})," (",(0,i.jsx)(s.code,{children:"/providers"}),") \u2014 List configured LLM providers, their priority order, and switch the default."]}),"\n",(0,i.jsxs)(s.li,{children:[(0,i.jsx)(s.strong,{children:"Permissions"})," (",(0,i.jsx)(s.code,{children:"/permissions"}),") \u2014 Review and adjust the YOLO/strict permission policy for tools."]}),"\n",(0,i.jsxs)(s.li,{children:[(0,i.jsx)(s.strong,{children:"Skills"})," (",(0,i.jsx)(s.code,{children:"/skills"}),") \u2014 Install, list, and remove agent skills. See the ",(0,i.jsx)(s.a,{href:"../reference/skills",children:"Skills"})," page."]}),"\n",(0,i.jsxs)(s.li,{children:[(0,i.jsx)(s.strong,{children:"Schedules"})," (",(0,i.jsx)(s.code,{children:"/schedules"}),") \u2014 Manage recurring or one-shot scheduled commands."]}),"\n",(0,i.jsxs)(s.li,{children:[(0,i.jsx)(s.strong,{children:"Usage"})," (",(0,i.jsx)(s.code,{children:"/usage"}),") \u2014 Per-day token usage charts."]}),"\n",(0,i.jsxs)(s.li,{children:[(0,i.jsx)(s.strong,{children:"Profit Sharing"})," (",(0,i.jsx)(s.code,{children:"/profit-sharing"}),") \u2014 Cooperative revenue-share settings (if enabled)."]}),"\n"]}),"\n",(0,i.jsxs)(s.h3,{id:"settings-settings",children:["Settings (",(0,i.jsx)(s.code,{children:"/settings"}),")"]}),"\n",(0,i.jsx)(s.p,{children:"Three sections:"}),"\n",(0,i.jsxs)(s.ul,{children:["\n",(0,i.jsxs)(s.li,{children:[(0,i.jsx)(s.strong,{children:"Defaults"})," \u2014 Default provider and daily token budget."]}),"\n",(0,i.jsxs)(s.li,{children:[(0,i.jsx)(s.strong,{children:"Account"})," \u2014 Change your username or password."]}),"\n",(0,i.jsxs)(s.li,{children:[(0,i.jsx)(s.strong,{children:"Appearance"})," \u2014 Light / Dark / System theme toggle."]}),"\n"]}),"\n",(0,i.jsxs)(s.p,{children:["The agent personality is no longer editable from the web UI \u2014 modify it in ",(0,i.jsx)(s.code,{children:"mercury.yaml"})," if you need to customise it."]}),"\n",(0,i.jsx)(s.h2,{id:"tech-stack",children:"Tech Stack"}),"\n",(0,i.jsxs)(s.ul,{children:["\n",(0,i.jsxs)(s.li,{children:[(0,i.jsx)(s.strong,{children:"Server:"})," Hono on Node.js"]}),"\n",(0,i.jsxs)(s.li,{children:[(0,i.jsx)(s.strong,{children:"Frontend:"})," React 19 + Vite + Tailwind CSS, shadcn/ui components"]}),"\n",(0,i.jsxs)(s.li,{children:[(0,i.jsx)(s.strong,{children:"State:"})," Zustand for client state, SSE for streaming"]}),"\n",(0,i.jsxs)(s.li,{children:[(0,i.jsx)(s.strong,{children:"PWA:"})," vite-plugin-pwa"]}),"\n"]})]})}function h(e={}){let{wrapper:s}={...(0,t.R)(),...e.components};return s?(0,i.jsx)(s,{...e,children:(0,i.jsx)(l,{...e})}):l(e)}},28453(e,s,n){n.d(s,{R:()=>a,x:()=>d});var r=n(96540);let i={},t=r.createContext(i);function a(e){let s=r.useContext(t);return r.useMemo(function(){return"function"==typeof e?e(s):{...s,...e}},[s,e])}function d(e){let s;return s=e.disableParentContext?"function"==typeof e.components?e.components(i):e.components||i:a(e.components),r.createElement(t.Provider,{value:s},e.children)}}}]);