Skip to content

Soul-driven AI agent with permission-hardened tools, token budgets, and multi-channel access. Runs 24/7 from CLI, Telegram or More.

33.0 KB
Raw Blame
"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([["2705"],{23937(e,s,t){t.d(s,{A:()=>i});var r=t(74848),a=t(96540),n=t(58843);function o({cmd:e,label:s}){let[t,n]=(0,a.useState)(!1),i=async()=>{try{await navigator.clipboard.writeText(e),n(!0),setTimeout(()=>n(!1),1500)}catch{}};return(0,r.jsxs)("div",{className:"mx-dmg__cmd",children:[(0,r.jsx)("code",{children:e}),(0,r.jsx)("button",{type:"button",onClick:i,"aria-label":s,children:t?"Copied":"Copy"})]})}function i({assetKey:e,href:s,className:t,children:l}){let[c,d]=(0,a.useState)(!1),m=(0,a.useRef)(null),u=e.startsWith("macos");if((0,a.useEffect)(()=>{if(!c)return;let e=e=>{"Escape"===e.key&&d(!1)};window.addEventListener("keydown",e),m.current?.focus();let s=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{window.removeEventListener("keydown",e),document.body.style.overflow=s}},[c]),!u)return(0,r.jsx)("a",{href:s,className:t,"data-asset":e,children:l});let h="macos-x64"===e?"Intel":"Apple Silicon",p=c?(0,r.jsx)("div",{className:"mx-dmg",role:"presentation",onMouseDown:e=>{e.target===e.currentTarget&&d(!1)},children:(0,r.jsxs)("div",{className:"mx-dmg__panel",role:"dialog","aria-modal":"true","aria-labelledby":"mx-dmg-title",tabIndex:-1,ref:m,children:[(0,r.jsx)("button",{type:"button",className:"mx-dmg__close",onClick:()=>d(!1),"aria-label":"Close",children:"\xd7"}),(0,r.jsx)("h2",{id:"mx-dmg-title",children:"One step before Mercury opens on your Mac"}),(0,r.jsxs)("p",{className:"mx-dmg__lead",children:["Mercury Desktop isn't signed with an Apple Developer certificate yet, so macOS stops apps like it from the internet the first time. After you drag Mercury into Applications, paste this into ",(0,r.jsx)("strong",{children:"Terminal"})," once:"]}),(0,r.jsx)(o,{cmd:"xattr -dr com.apple.quarantine /Applications/Mercury.app",label:"Copy the command"}),(0,r.jsxs)("div",{className:"mx-dmg__grid",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("h3",{children:"What it does"}),(0,r.jsxs)("p",{children:['macOS tags anything a browser downloads as "from the internet". This removes that tag from ',(0,r.jsx)("code",{children:"Mercury.app"}),", and only from it. It changes no system setting and leaves Gatekeeper on for every other app."]})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("h3",{children:"Why it's safe"}),(0,r.jsxs)("p",{children:["Mercury is open source: every line is on ",(0,r.jsx)("a",{href:"https://github.com/cosmicstack-labs/mercury-agent",target:"_blank",rel:"noopener noreferrer",children:"GitHub"}),", and every release file comes from GitHub's own build with a published SHA-256 checksum. Updates after this are signed and checked before they install."]})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("h3",{children:"What you'll see without it"}),(0,r.jsxs)("p",{children:['"Apple could not verify Mercury\u2026" when you open it. That works too: click ',(0,r.jsx)("strong",{children:"Done"}),", then System Settings \u2192 Privacy & Security \u2192 ",(0,r.jsx)("strong",{children:"Open Anyway"}),"."]})]})]}),(0,r.jsxs)("div",{className:"mx-dmg__skip",children:[(0,r.jsxs)("p",{children:[(0,r.jsx)("strong",{children:"Or skip all of this."})," This installs Mercury and opens it with no prompt, after checking the download:"]}),(0,r.jsx)(o,{cmd:n.k,label:"Copy the install command"})]}),(0,r.jsxs)("div",{className:"mx-dmg__actions",children:[(0,r.jsx)("a",{href:"/docs/desktop/macos",className:"mx-dmg__help",children:"Mac guide & fixes"}),(0,r.jsx)("button",{type:"button",className:"mx-dmg__cancel",onClick:()=>d(!1),children:"Cancel"}),(0,r.jsxs)("a",{href:s,className:"mx-dmg__go",onClick:()=>setTimeout(()=>d(!1),400),children:["Download the .dmg (",h,")"]})]})]})}):null;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("a",{href:s,className:t,"data-asset":e,onClick:e=>{e.preventDefault(),d(!0)},children:l}),p]})}},58843(e,s,t){t.d(s,{A:()=>i,k:()=>o});var r=t(74848),a=t(96540),n=t(34164);let o="curl -fsSL https://mercuryagent.sh/install-desktop.sh | sh";function i({className:e,title:s="Recommended on a Mac"}){let[t,l]=(0,a.useState)(!1),c=async()=>{try{await navigator.clipboard.writeText(o),l(!0),setTimeout(()=>l(!1),1500)}catch{}};return(0,r.jsxs)("div",{className:(0,n.A)("mx-install mx-macinstall",e),children:[s&&(0,r.jsx)("p",{className:"mx-macinstall__title",children:s}),(0,r.jsxs)("div",{className:"mx-install__cmd",children:[(0,r.jsx)("span",{className:"mx-install__prompt","aria-hidden":"true",children:"$"}),(0,r.jsx)("code",{children:o}),(0,r.jsx)("button",{type:"button",className:"mx-install__copy",onClick:c,"aria-label":"Copy the Mac install command",children:t?"Copied":"Copy"})]}),(0,r.jsxs)("p",{className:"mx-install__note",children:["Paste it into Terminal. It picks the build for your Mac, checks the download's SHA-256, installs Mercury in Applications and opens it, with no security prompt. ",(0,r.jsx)("a",{href:"/install-desktop.sh",children:"Read the script first"})," \xb7"," ",(0,r.jsx)("a",{href:"/docs/desktop/macos",children:"Mac guide & fixes"}),"."]})]})}},88204(e,s,t){t.d(s,{HV:()=>r,o0:()=>n});let r={os:"unknown",appleSilicon:null,windowsArm:!1};function a(){try{let e=document.createElement("canvas"),s=e.getContext("webgl")||e.getContext("experimental-webgl");if(!s)return null;let t=s.getExtension("WEBGL_debug_renderer_info"),r=String(t?s.getParameter(t.UNMASKED_RENDERER_WEBGL):s.getParameter(s.RENDERER));if(/apple m\d|apple gpu/i.test(r))return!0;if(/intel|amd|radeon|nvidia/i.test(r))return!1}catch{}return null}async function n(){if("u"<typeof navigator)return r;let e=function(e,s=0){return/iphone|ipad|ipod|android|mobile/i.test(e)?{...r,os:"mobile"}:/macintosh|mac os x/i.test(e)?s>1?{...r,os:"mobile"}:{os:"macos",appleSilicon:null,windowsArm:!1}:/windows/i.test(e)?{os:"windows",appleSilicon:null,windowsArm:/arm64|aarch64/i.test(e)}:/cros|linux|x11/i.test(e)?{...r,os:"linux"}:r}(navigator.userAgent,navigator.maxTouchPoints||0),s=navigator.userAgentData;if(s?.mobile)return{...r,os:"mobile"};if(s?.getHighEntropyValues)try{let e=await s.getHighEntropyValues(["architecture","platform","bitness"]),t=(e.platform||s.platform||"").toLowerCase(),n="arm"===(e.architecture||"").toLowerCase();if("macos"===t)return{os:"macos",appleSilicon:e.architecture?n:a(),windowsArm:!1};if("windows"===t)return{os:"windows",appleSilicon:null,windowsArm:n};if("linux"===t||"chrome os"===t||"chromeos"===t)return{...r,os:"linux"};if("android"===t||"ios"===t)return{...r,os:"mobile"}}catch{}return"macos"===e.os?{...e,appleSilicon:a()}:e}},81944(e,s,t){t.d(s,{d_:()=>l,NP:()=>u,kM:()=>c,yv:()=>d,$d:()=>i,LY:()=>o,Vp:()=>a,j9:()=>n,ef:()=>m});var r=JSON.parse('{"version":"1.5.0","date":"2026-11-03","notesUrl":"https://github.com/cosmicstack-labs/mercury-agent/releases/tag/v1.5.0","assets":{"macos-arm64":{"url":"https://github.com/cosmicstack-labs/mercury-agent/releases/download/v1.5.0/Mercury_1.5.0_aarch64.dmg","name":"Mercury_1.5.0_aarch64.dmg","size":5442931},"macos-x64":{"url":"https://github.com/cosmicstack-labs/mercury-agent/releases/download/v1.5.0/Mercury_1.5.0_x64.dmg","name":"Mercury_1.5.0_x64.dmg","size":5716537},"windows-x64-setup":{"url":"https://github.com/cosmicstack-labs/mercury-agent/releases/download/v1.5.0/Mercury_1.5.0_x64-setup.exe","name":"Mercury_1.5.0_x64-setup.exe","size":4381343},"windows-x64-msi":{"url":"https://github.com/cosmicstack-labs/mercury-agent/releases/download/v1.5.0/Mercury_1.5.0_x64_en-US.msi","name":"Mercury_1.5.0_x64_en-US.msi","size":5365760},"linux-appimage":{"url":"https://github.com/cosmicstack-labs/mercury-agent/releases/download/v1.5.0/Mercury_1.5.0_amd64.AppImage","name":"Mercury_1.5.0_amd64.AppImage","size":84449784},"linux-deb":{"url":"https://github.com/cosmicstack-labs/mercury-agent/releases/download/v1.5.0/Mercury_1.5.0_amd64.deb","name":"Mercury_1.5.0_amd64.deb","size":5892362},"linux-rpm":{"url":"https://github.com/cosmicstack-labs/mercury-agent/releases/download/v1.5.0/Mercury-1.5.0-1.x86_64.rpm","name":"Mercury-1.5.0-1.x86_64.rpm","size":5896909}},"server":{"npm":"@cosmicstack/[email protected]","assets":{"macos-arm64":{"url":"https://github.com/cosmicstack-labs/mercury-agent/releases/download/v1.5.0/mercury-macos-arm64","name":"mercury-macos-arm64","size":95649122},"macos-x64":{"url":"https://github.com/cosmicstack-labs/mercury-agent/releases/download/v1.5.0/mercury-macos-x64","name":"mercury-macos-x64","size":104607200},"linux-x64":{"url":"https://github.com/cosmicstack-labs/mercury-agent/releases/download/v1.5.0/mercury-linux-x64","name":"mercury-linux-x64","size":115566768},"linux-x64-baseline":{"url":"https://github.com/cosmicstack-labs/mercury-agent/releases/download/v1.5.0/mercury-linux-x64-baseline","name":"mercury-linux-x64-baseline","size":115566768},"linux-arm64":{"url":"https://github.com/cosmicstack-labs/mercury-agent/releases/download/v1.5.0/mercury-linux-arm64","name":"mercury-linux-arm64","size":115657720},"windows-x64":{"url":"https://github.com/cosmicstack-labs/mercury-agent/releases/download/v1.5.0/mercury-win-x64.exe","name":"mercury-win-x64.exe","size":121716224},"windows-x64-baseline":{"url":"https://github.com/cosmicstack-labs/mercury-agent/releases/download/v1.5.0/mercury-win-x64-baseline.exe","name":"mercury-win-x64-baseline.exe","size":121716224},"web":{"url":"https://github.com/cosmicstack-labs/mercury-agent/releases/download/v1.5.0/web.tar.gz","name":"web.tar.gz","size":1377545},"checksums":{"url":"https://github.com/cosmicstack-labs/mercury-agent/releases/download/v1.5.0/checksums.txt","name":"checksums.txt","size":691}}}}');let a=r,n="https://github.com/cosmicstack-labs/mercury-agent/releases";function o(e){let s=a.assets[e];return s&&s.url?s:null}function i(e){if(!e||!e.size)return"";let s=e.size/1024/1024;return s>=10?`${Math.round(s)} MB`:`${s.toFixed(1)} MB`}let l={"macos-arm64":{os:"macOS",what:"Apple Silicon",detail:"M1 and newer, .dmg"},"macos-x64":{os:"macOS",what:"Intel",detail:"Intel Macs, .dmg"},"windows-x64-setup":{os:"Windows",what:"Installer",detail:"Windows 10 and 11, x64, .exe"},"windows-x64-msi":{os:"Windows",what:"MSI package",detail:"For managed installs, x64, .msi"},"linux-appimage":{os:"Linux",what:"AppImage",detail:"Any distribution, x64"},"linux-deb":{os:"Linux",what:"Debian / Ubuntu",detail:"x64, .deb"},"linux-rpm":{os:"Linux",what:"Fedora / openSUSE",detail:"x64, .rpm"}};function c(){let e=new Date(`${a.date}T12:00:00Z`);return Number.isNaN(e.getTime())?a.date:e.toLocaleDateString("en-GB",{day:"numeric",month:"long",year:"numeric",timeZone:"UTC"})}let d=r.server??{npm:"@cosmicstack/mercury-agent",assets:{}};function m(e){let s=d.assets[e];return s&&s.url?s:null}let u={"macos-arm64":{os:"macOS",what:"Apple Silicon"},"macos-x64":{os:"macOS",what:"Intel"},"linux-x64":{os:"Linux",what:"x64"},"linux-x64-baseline":{os:"Linux",what:"x64, older CPUs (no AVX2)"},"linux-arm64":{os:"Linux",what:"ARM64 (Raspberry Pi 4/5, Graviton)"},"windows-x64":{os:"Windows",what:"x64"},"windows-x64-baseline":{os:"Windows",what:"x64, older CPUs (no AVX2)"},web:{os:"All",what:"Web dashboard assets (web.tar.gz)"},checksums:{os:"All",what:"SHA-256 checksums (checksums.txt)"}}},21462(e,s,t){t.d(s,{A:()=>i});var r=t(74848),a=t(96540),n=t(34164);let o=[{id:"shell",label:"macOS / Linux",cmd:"curl -fsSL https://mercuryagent.sh/install.sh | sh",note:(0,r.jsxs)(r.Fragment,{children:["Standalone binary, no Node.js needed. ",(0,r.jsx)("a",{href:"/install.sh",children:"Read the script first"}),"."]})},{id:"powershell",label:"Windows",cmd:"irm https://mercuryagent.sh/install.ps1 | iex",note:(0,r.jsxs)(r.Fragment,{children:["Standalone binary, no Node.js needed. ",(0,r.jsx)("a",{href:"/install.ps1",children:"Read the script first"}),"."]})},{id:"npm",label:"npm",cmd:"npm i -g @cosmicstack/mercury-agent",note:(0,r.jsxs)(r.Fragment,{children:["Requires Node.js 22+. Then run ",(0,r.jsx)("code",{children:"mercury"}),"."]})},{id:"bun",label:"bun",cmd:"bun add -g @cosmicstack/mercury-agent",note:(0,r.jsxs)(r.Fragment,{children:["Then run ",(0,r.jsx)("code",{children:"mercury"}),". The setup wizard takes about a minute."]})}];function i({className:e}){let[s,t]=(0,a.useState)("shell"),[l,c]=(0,a.useState)(!1);(0,a.useEffect)(()=>{/win/i.test(navigator.userAgent)&&!/darwin|mac/i.test(navigator.userAgent)&&t("powershell")},[]);let d=o.find(e=>e.id===s),m=async()=>{try{await navigator.clipboard.writeText(d.cmd),c(!0),setTimeout(()=>c(!1),1500)}catch{}};return(0,r.jsxs)("div",{className:(0,n.A)("mx-install",e),children:[(0,r.jsx)("div",{className:"mx-install__tabs",role:"tablist","aria-label":"Install method",children:o.map(e=>(0,r.jsx)("button",{type:"button",role:"tab","aria-selected":e.id===s,className:(0,n.A)("mx-install__tab",e.id===s&&"is-active"),onClick:()=>t(e.id),children:e.label},e.id))}),(0,r.jsxs)("div",{className:"mx-install__cmd",children:[(0,r.jsx)("span",{className:"mx-install__prompt","aria-hidden":"true",children:"powershell"===s?"PS>":"$"}),(0,r.jsx)("code",{children:d.cmd}),(0,r.jsx)("button",{type:"button",className:"mx-install__copy",onClick:m,"aria-label":"Copy install command",children:l?"Copied":"Copy"})]}),(0,r.jsx)("p",{className:"mx-install__note",children:d.note})]})}},53410(e,s,t){t.d(s,{$_:()=>x,OZ:()=>u,Oe:()=>a,Tw:()=>k,V6:()=>c,W6:()=>r,YP:()=>n,aI:()=>y,g2:()=>i,kW:()=>l,l1:()=>d,l_:()=>h,n$:()=>m,x6:()=>o,xq:()=>p});let r="https://mercuryagent.sh",a="https://github.com/cosmicstack-labs/mercury-agent",n="https://www.npmjs.com/package/@cosmicstack/mercury-agent",o="https://skills.mercuryagent.sh",i={version:"1.5.0",name:"Mercury Desktop",notes:"/docs/releases/1.5.0"},l={title:"Mercury Agent: the soul-driven AI agent, loyal only to you",description:"Mercury is an open-source, soul-driven AI agent that runs 24/7 on your machine. It learns how you work, remembers what matters, asks before it acts, and works with any model from your terminal, browser, Telegram, Discord, Slack, or Signal."},c=[{k:"cmd",t:"mercury"},{k:"dim",t:"\u263F Mercury 1.3.1 \xb7 deepseek-chat \xb7 Ask Me mode"},{k:"gap",t:""},{k:"in",t:"tidy CHANGELOG for 1.3.1, push it, and open a PR"},{k:"ok",t:"git_status",n:"read \xb7 no prompt"},{k:"ok",t:"read_file CHANGELOG.md",n:"read \xb7 no prompt"},{k:"ok",t:"edit_file CHANGELOG.md",n:"+14 \u22122"},{k:"ok",t:'git_commit "docs: changelog for 1.3.1"'},{k:"ask",t:"git_push origin docs/changelog-1.3.1 \u2014 modifies a remote"},{k:"sel",t:"Yes \u2014 approve once"},{k:"opt",t:"Always \u2014 remember this permission"},{k:"opt",t:"No \u2014 deny"},{k:"ok",t:"git_push",n:"approved once"},{k:"ok",t:'create_pr #214 "docs: changelog for 1.3.1"'},{k:"done",t:"Task complete \xb7 6 steps \xb7 38s"},{k:"mem",t:"Remembered \xb7 changelog PRs go on a docs/* branch"}],d=[{id:"asks-first",kicker:"01 \xb7 Control",title:"It asks before it acts.",body:"Reads are free. Anything that writes, runs, pushes, or reaches outside its scope waits for your answer. Approve once, approve for good, or say no. Some commands never run, no matter what mode you pick.",points:["Ask Me or Allow All, chosen per session","Shell blocklist: sudo, rm -rf /, and its flag-swapped variants","Folder-level read/write scopes per channel and per sender role","Bots fail closed: a missing permission is a denial, not a pop-up"],link:{to:"/docs/reference/permissions",label:"How permissions work"},script:[{k:"in",t:"clear out the build cache and old logs"},{k:"ok",t:"list_dir ./build",n:"read \xb7 no prompt"},{k:"ask",t:"run_command rm -rf build/.cache logs/*.old"},{k:"sel",t:"Yes \u2014 approve once"},{k:"opt",t:"Always \u2014 remember this permission"},{k:"opt",t:"No \u2014 deny"},{k:"ok",t:"run_command",n:"approved once"},{k:"gap",t:""},{k:"in",t:"now wipe everything under /"},{k:"warn",t:"Blocked \xb7 `rm -rf /` is on the shell blocklist. It never runs, in any mode."}],scriptTitle:"mercury \xb7 ask me"},{id:"remembers",kicker:"02 \xb7 Memory",title:"It remembers what matters.",body:"A Second Brain on your own disk. Mercury pulls out preferences, people, and decisions as you work, resolves contradictions, and consolidates every hour, so tomorrow does not start from zero.",points:["SQLite + FTS5 full-text search, stored in ~/.mercury","10 memory types, auto-extraction, conflict resolution","/memory to search, pause, or clear it at any time","Personality lives in markdown files you own: soul.md, persona.md"],link:{to:"/docs/reference/second-brain",label:"Inside the Second Brain"},script:[{k:"in",t:"draft the weekly update for the team"},{k:"ok",t:'search_memory "weekly update"',n:"3 hits"},{k:"dim",t:"  \xb7 prefers bullet points, no emoji"},{k:"dim",t:"  \xb7 Friday updates go to #eng-leads"},{k:"dim",t:"  \xb7 Priya owns the billing migration"},{k:"say",t:"Drafted in your usual format: bullets, billing migration first (Priya), ready for #eng-leads."},{k:"mem",t:'Updated \xb7 billing migration moved to "in review"'}],scriptTitle:"mercury \xb7 second brain"},{id:"always-on",kicker:"03 \xb7 Autonomy",title:"It keeps working when you don\u2019t.",body:"One command makes Mercury a background service that starts on boot and restarts itself on a crash. Schedule routines, run a fleet of persistent bots, and hear back on whichever channel you are on.",points:["mercury up: system service, crash recovery, boot start","Cron schedules, heartbeat checks, proactive notifications","Mercury Bots: persistent specialists with their own model and memory","Durable job queue: work survives restarts and failures can be replayed"],link:{to:"/docs/integrations/mercury-bots",label:"Meet Mercury Bots"},script:[{k:"cmd",t:"mercury up"},{k:"ok",t:"service installed \xb7 starts on boot"},{k:"ok",t:"daemon running",n:"pid 48211"},{k:"gap",t:""},{k:"dim",t:"07:00  \u25F7  daily-brief       \u2192 Telegram"},{k:"dim",t:"09:00  \u2712  release-notes bot \u2192 drafted 620 words"},{k:"dim",t:"09:02  \u2691  fact-checker      \u2192 14/14 sourced"},{k:"warn",t:"11:40  needs you \xb7 deploy bot wants shell access it was never granted"},{k:"done",t:"Fleet idle \xb7 journals clean \xb7 0 in dead-letter queue"}],scriptTitle:"mercury \xb7 daemon"},{id:"honest",kicker:"04 \xb7 Honesty",title:"It tells you the truth about \u201Cdone\u201D.",body:"Agents love to say \u201Ctask complete\u201D. Mercury works under a completion contract: a task ends either verified, with a build, typecheck, or test that actually ran, or paused with the blocker named. Mercury never claims success it can\u2019t show.",points:["Evidence-gated completion banners in Mercury Code","Honest pauses that name the blocker, never a silent stop","Daily token budgets with live usage and Token Saver Mode","Provider fallback mid-task, so one outage does not end the run"],link:{to:"/docs/reference/completion-architecture",label:"The completion contract"},script:[{k:"in",t:"migrate the settings page to the new form library"},{k:"ok",t:"edit_file src/settings/Form.tsx",n:"+86 \u221241"},{k:"ok",t:"run_command npm run typecheck",n:"0 errors"},{k:"ok",t:"run_command npm test settings",n:"12 passed"},{k:"done",t:"Task complete \xb7 9 steps \xb7 2m 14s",n:"verified"},{k:"gap",t:""},{k:"in",t:"and the billing page"},{k:"ok",t:"edit_file src/billing/Form.tsx",n:"+52 \u221230"},{k:"warn",t:'Paused \xb7 npm test billing fails (2). Not calling this done. Say "continue" to resume.'}],scriptTitle:"mercury code \xb7 auto"}],m=[{cmd:"/code",name:"Mercury Code",title:"A senior engineer",titleEm:"inside your repo.",body:"A full-screen, repo-aware coding environment. Mercury plans and builds in one AUTO flow, shows every step on a live checklist, and only calls a task done after a build, typecheck, or test actually ran.",points:["AUTO mode: plan and build in one flow, one confirmation for big changes","Live plan checklist, per-file diffs, and a workspace IDE (/ws)","/code agent hands work to a background sub-agent while you keep chatting","Stall watchdog, compact-on-pressure, provider fallback mid-task"],link:{to:"/docs/integrations/coding-workspace",label:"Explore Mercury Code"},scriptTitle:"mercury code \xb7 auto",script:[{k:"cmd",t:"mercury code ~/projects/acme"},{k:"dim",t:"\u263F Mercury Code \xb7 AUTO \xb7 branch main"},{k:"gap",t:""},{k:"in",t:"refactor the auth module to JWT and add tests"},{k:"ok",t:"read_file src/auth/handler.ts",n:"plan 1/4"},{k:"ok",t:"create_file src/auth/jwt.ts",n:"+64"},{k:"ok",t:"edit_file src/auth/handler.ts",n:"+31 \u221248"},{k:"ok",t:"create_file tests/auth.test.ts",n:"+112"},{k:"ok",t:"run_command npm test",n:"8 passed"},{k:"done",t:"Task complete \xb7 6 steps \xb7 34s",n:"verified"},{k:"dim",t:"  3 files changed \xb7 /code diff to review \xb7 /ws to commit"}]},{cmd:"/chat",name:"Mercury Chat",title:"Talk to it like",titleEm:"someone who knows you.",body:"The everyday Mercury: ask, plan, delegate, schedule. It answers from what it remembers about you, works with ~50 built-in tools, and follows you from the terminal to Telegram, Discord, Slack, Signal, or the web.",points:["Answers shaped by your Second Brain, not a blank context","Schedules reminders and recurring tasks, then pings you on your channel","Slash commands that cost no tokens: /status, /budget, /memory, /models","Personality from soul.md and persona.md, files you own and edit"],link:{to:"/docs/cli-commands/in-chat-commands",label:"In-chat commands"},scriptTitle:"mercury \xb7 chat",script:[{k:"cmd",t:"mercury"},{k:"in",t:"what\u2019s on my plate today?"},{k:"ok",t:'search_memory "today"',n:"4 hits"},{k:"say",t:"Three things: the billing review with Priya at 2pm, the 1.3.1 changelog, and your 6pm gym slot. Want me to draft the changelog now?"},{k:"gap",t:""},{k:"in",t:"yes, and remind me at 1:45 for the review"},{k:"ok",t:'schedule_task "billing review" 13:45',n:"\u2192 Telegram"},{k:"say",t:"Reminder set. Changelog draft coming up, in your usual bullet style."},{k:"mem",t:"Remembered \xb7 reminders 15 minutes before meetings"}]},{cmd:"/bots",name:"Mercury Bots",title:"A small team,",titleEm:"not a single chat.",body:"Persistent bots, each with its own persona, model, memory, and permissions. Send one a job and keep talking to Mercury: the bot works in the background and delivers to its own thread. Promote one to fleet lead and it recruits a crew.",points:["Onboard from /bots, the web cockpit, or the HTTP API","Fleet leads recruit and run their own crews","Durable job queue with a replayable dead-letter queue","Export a whole fleet as one bundle; imports start disabled"],link:{to:"/docs/integrations/mercury-bots",label:"Meet Mercury Bots"},scriptTitle:"mercury \xb7 /bots",script:[{k:"in",t:'/bots send newsroom "write up the 1.3 launch for the blog"'},{k:"dim",t:"\u263F newsroom \xb7 fleet lead \xb7 dispatching 4 crew"},{k:"ok",t:"article-writer drafted notes",n:"620 words"},{k:"ok",t:"fact-checker verified",n:"14/14 sourced"},{k:"ok",t:"voice-editor humanized",n:"AI-flavor 0"},{k:"ok",t:"dispatch-controller queued",n:"publish 09:00"},{k:"done",t:"Fleet idle \xb7 journals clean \xb7 fleet verified"},{k:"dim",t:"  delivered to the newsroom thread \xb7 /bots inbox"}]}],u={title:"Mercury Cloud",body:"Optional. Pair from the terminal and keep your agent reachable from anywhere, with no port forwarding, reverse proxy, or certificates.",to:"/cloud"},h=[{name:"Terminal",note:"Ink TUI, slash commands, workspace IDE"},{name:"Web",note:"Local dashboard, Kanban, bot cockpit"},{name:"Telegram",note:"Pinned status card, admin/member roles"},{name:"Discord",note:"Slash commands, streaming edits"},{name:"Slack",note:"Socket Mode, no public endpoint"},{name:"Signal",note:"End-to-end encrypted via signal-cli"}],p=["Anthropic","OpenAI","DeepSeek","Grok","ChatGPT Plus / Pro","GitHub Copilot","Ollama Local","Ollama Cloud","Atomic Chat","Mercury Cloud"],y={head:["","Mercury","Claude Code","Codex CLI","Gemini CLI"],rows:[["Model providers","Any provider, API key or OAuth, auto-fallback","Anthropic + third-party","OpenAI only","Gemini only"],["Scheduled autonomy","Daemon + cron + bot routines, 24/7 local","Cloud routines + desktop tasks","\u2014","\u2014"],["Persistent agents","Bots with persona, memory, permissions","Sub-agents + background agents","\u2014","\u2014"],["Messaging channels","Telegram, Discord, Slack, Signal, Web","Slack, Telegram, Discord, iMessage","\u2014","\u2014"],["Long-term memory","Second Brain (SQLite, auto-extract, conflict resolution)","Auto memory","AGENTS.md","GEMINI.md"],["Token budget","Daily budget + overrides + live stats","\u2014","\u2014","\u2014"],["Security model","Permission modes + blocklist + scopes","Sandboxed execution + prompts","OS-level sandbox","Sandbox profiles"],["MCP external tools","\u2713 (each call asks in Ask Me mode)","\u2713","\u2713","\u2713"],["IDE surface","Mercury Desktop + built-in workspace (files, git)","VS Code, JetBrains, Desktop","VS Code, Cursor, Windsurf","IDE integrations"],["License","MIT","Source-available","Apache-2.0","Apache-2.0"]]},x=[{title:"Desktop app not code-signed yet",body:"Mercury Desktop 1.5.0 isn\u2019t signed with an Apple or Windows certificate, so macOS and Windows ask once before the first launch. Its updates are signed and checked before they install."},{title:"No OS-level sandbox",body:"Safety comes from approvals, a blocklist, and folder scopes. The process itself is not sandboxed, so Ask Me is the default for a reason."},{title:"Signal skips Windows",body:"The signal-cli bridge runs natively on Linux, and on macOS with Java 17+. Every other channel works on all three operating systems."}],k=[{q:"Is Mercury free?",a:"Yes. Mercury is MIT-licensed open source. You bring the model: an API key, your ChatGPT Plus/Pro or GitHub Copilot subscription through OAuth, or a local Ollama model at zero cost. Mercury Cloud is optional."},{q:"Where does my data live?",a:"On your machine, in ~/.mercury. Memory is a local SQLite database you can search, pause, or clear, and the agent ships no telemetry. Prompts go only to the model provider you configure. With Ollama Local, nothing leaves your machine."},{q:"Could it do something destructive?",a:"In Ask Me mode, every file write, shell command, push, and scope change waits for your approval. Commands like sudo and rm -rf / are on a blocklist that never executes in any mode. Reads and writes are scoped to the folders you allow, and bots fail closed."},{q:"How is it different from Claude Code or Codex?",a:"Those are coding sessions you open and close. Mercury is a personal agent that stays running: it has memory, schedules, persistent bots, and chat channels. It also includes Mercury Code, a full coding environment, for when you need one."},{q:"Which platforms does it run on?",a:"Mercury Desktop runs on macOS (Apple Silicon and Intel), Windows and Linux. The Mercury runtime runs on the same three as a standalone binary or through npm (Node.js 22+), on Android via Termux, and on any cloud VM. Mercury Desktop can connect to any of them."},{q:"Does it support MCP?",a:"Yes, since 1.5.0. Add a local or remote MCP server with mercury mcp add, allow the tools you want, and the agent can call them next to its ~50 built-in tools and 126+ skills. Every MCP call asks first in Ask Me mode."}]},25452(e,s,t){t.r(s),t.d(s,{default:()=>b});var r=t(74848),a=t(72072),n=t(23937),o=t(96540),i=t(95310),l=t(53572),c=t(60816),d=t(34164),m=t(21462),u=t(58843),h=t(53410),p=t(88204),y=t(81944);let x="Download Mercury Desktop for macOS, Windows and Linux",k=[{os:"macos",title:"macOS",keys:["macos-arm64","macos-x64"]},{os:"windows",title:"Windows",keys:["windows-x64-setup","windows-x64-msi"]},{os:"linux",title:"Linux",keys:["linux-appimage","linux-deb","linux-rpm"]}];function g({group:e,mine:s}){let t=e.keys.map(e=>({key:e,a:(0,y.LY)(e)})).filter(e=>e.a);return(0,r.jsxs)("section",{className:(0,d.A)("mx-dlp__os",s&&"is-mine"),"aria-labelledby":`dl-${e.os}`,children:[(0,r.jsxs)("h2",{id:`dl-${e.os}`,className:"mx-dlp__os-title",children:[e.title,s&&(0,r.jsx)("span",{className:"mx-dlp__mine",children:"This computer"})]}),"macos"===e.os&&t.length>0&&(0,r.jsx)(u.A,{className:"mx-dlp__mac"}),"macos"===e.os&&t.length>0&&(0,r.jsx)("p",{className:"mx-dlp__or",children:"Or download the app:"}),0===t.length?(0,r.jsxs)("p",{className:"mx-dlp__none",children:["Not in this release yet. See ",(0,r.jsx)("a",{href:y.j9,target:"_blank",rel:"noopener noreferrer",children:"all releases on GitHub"}),"."]}):(0,r.jsx)("ul",{className:"mx-dlp__list",children:t.map(({key:e,a:s})=>(0,r.jsx)("li",{children:(0,r.jsxs)(n.A,{assetKey:e,href:s.url,className:"mx-dlp__file",children:[(0,r.jsx)("span",{className:"mx-dlp__what",children:y.d_[e].what}),(0,r.jsxs)("span",{className:"mx-dlp__detail",children:[y.d_[e].detail,(0,y.$d)(s)&&` \xb7 ${(0,y.$d)(s)}`]})]})},e))})]})}function b(){let[e,s]=(0,o.useState)("unknown");return(0,o.useEffect)(()=>{(0,p.o0)().then(e=>s(e.os)).catch(()=>{})},[]),(0,r.jsxs)(c.A,{description:"Download Mercury Desktop, the app for Mercury Agent, for macOS (Apple Silicon and Intel), Windows and Linux. Or install the Mercury server from the command line.",wrapperClassName:"mx-home",children:[(0,r.jsxs)(l.A,{children:[(0,r.jsx)("title",{children:x}),(0,r.jsx)("meta",{property:"og:title",content:x}),(0,r.jsx)("meta",{property:"og:url",content:`${h.W6}/download`}),(0,r.jsx)("link",{rel:"canonical",href:`${h.W6}/download`})]}),(0,r.jsx)("main",{className:"mx-section mx-dlp",children:(0,r.jsxs)("div",{className:"mx-wrap",children:[(0,r.jsxs)("div",{className:"mx-head mx-head--left",children:[(0,r.jsx)("p",{className:"mx-kicker",children:"Download"}),(0,r.jsxs)("h1",{className:"mx-h2",children:["Mercury Desktop ",(0,r.jsx)("em",{children:y.Vp.version})]}),(0,r.jsxs)("p",{className:"mx-lead",children:["Released ",(0,y.kM)()," \xb7 ",(0,r.jsx)("a",{href:y.Vp.notesUrl,target:"_blank",rel:"noopener noreferrer",children:"Release notes"})," \xb7"," ",(0,r.jsx)(i.A,{to:"/docs/desktop/mercury-desktop",children:"How to set it up"})]}),(0,r.jsx)("p",{className:"mx-lead mx-lead--small",children:"The app installs Mercury on your computer for you, or connects to a Mercury you already run elsewhere. It updates itself."})]}),"mobile"===e&&(0,r.jsx)("p",{className:"mx-dlp__notice",children:"Mercury Desktop runs on computers. Open this page on your Mac, Windows or Linux computer to download it."}),(0,r.jsx)("div",{className:"mx-dlp__grid",children:k.map(s=>(0,r.jsx)(g,{group:s,mine:e===s.os},s.os))}),(0,r.jsxs)("section",{className:"mx-dlp__first","aria-labelledby":"first-open",children:[(0,r.jsx)(a.A,{as:"h2",id:"first-open",className:"mx-h3",children:"Opening it the first time"}),(0,r.jsx)("p",{children:"This release isn't code-signed yet, so your computer asks before it opens the app once. Signing is coming in a later release. Every update after that is checked against Mercury's update signature before it installs."}),(0,r.jsxs)("div",{className:"mx-dlp__steps",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("h3",{children:"macOS"}),(0,r.jsxs)("p",{children:["Installed with the Terminal command above? Nothing to do: it opens straight away. With the ",(0,r.jsx)("code",{children:".dmg"}),":"]}),(0,r.jsxs)("ol",{children:[(0,r.jsxs)("li",{children:["Open the ",(0,r.jsx)("code",{children:".dmg"})," and drag Mercury to Applications."]}),(0,r.jsxs)("li",{children:['Open Mercury. macOS says it can\'t verify the developer ("Apple could not verify\u2026"). Click ',(0,r.jsx)("strong",{children:"Done"}),"."]}),(0,r.jsxs)("li",{children:["Open ",(0,r.jsx)("strong",{children:"System Settings \u2192 Privacy & Security"}),", scroll to Security and click ",(0,r.jsx)("strong",{children:"Open Anyway"})," next to Mercury, then confirm."]})]}),(0,r.jsxs)("p",{className:"mx-dlp__alt",children:["On older macOS versions you can also right-click Mercury in Applications and choose ",(0,r.jsx)("strong",{children:"Open"}),"."]}),(0,r.jsxs)("p",{className:"mx-dlp__alt",children:['If macOS says Mercury "is damaged", run ',(0,r.jsx)("code",{children:"xattr -dr com.apple.quarantine /Applications/Mercury.app"})," in Terminal, then open it again."]}),(0,r.jsxs)("p",{className:"mx-dlp__alt",children:["Something else? The ",(0,r.jsx)(i.A,{to:"/docs/desktop/macos",children:"macOS guide"})," covers every message macOS shows."]})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("h3",{children:"Windows"}),(0,r.jsxs)("ol",{children:[(0,r.jsx)("li",{children:"Run the installer."}),(0,r.jsxs)("li",{children:['If Microsoft Defender SmartScreen says "Windows protected your PC", click ',(0,r.jsx)("strong",{children:"More info"}),", then ",(0,r.jsx)("strong",{children:"Run anyway"}),"."]})]}),(0,r.jsxs)("p",{className:"mx-dlp__alt",children:["The ",(0,r.jsx)("code",{children:".msi"})," is for installs managed by an administrator."]})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("h3",{children:"Linux"}),(0,r.jsxs)("ol",{children:[(0,r.jsxs)("li",{children:["AppImage: ",(0,r.jsx)("code",{children:"chmod +x Mercury_*.AppImage"}),", then run it."]}),(0,r.jsxs)("li",{children:["Debian / Ubuntu: ",(0,r.jsx)("code",{children:"sudo apt install ./Mercury_*.deb"})]}),(0,r.jsxs)("li",{children:["Fedora / openSUSE: ",(0,r.jsx)("code",{children:"sudo dnf install ./Mercury-*.rpm"})]})]})]})]})]}),(0,r.jsxs)("section",{className:"mx-dlp__server","aria-labelledby":"server-cli",children:[(0,r.jsx)("h2",{id:"server-cli",className:"mx-h3",children:"Run Mercury on a server"}),(0,r.jsxs)("p",{children:["On a server, a Raspberry Pi or any machine without a screen, install the Mercury runtime from the command line. Mercury Desktop can then connect to it. See ",(0,r.jsx)(i.A,{to:"/docs/desktop/remote-access",children:"remote access and security"}),"."]}),(0,r.jsx)(m.A,{}),(0,r.jsxs)("p",{className:"mx-fine",children:["All builds, checksums and older versions are on ",(0,r.jsx)("a",{href:y.j9,target:"_blank",rel:"noopener noreferrer",children:"GitHub Releases"}),"."]})]})]})})]})}}}]);