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([["1165"],{40626(e,n,s){s.r(n),s.d(n,{metadata:()=>r,default:()=>h,frontMatter:()=>l,contentTitle:()=>o,toc:()=>d,assets:()=>a});var r=JSON.parse('{"id":"getting-started/platforms/windows","title":"Windows","description":"Mercury runs natively on Windows 10 (build 1809+) and Windows 11, on x64. Native arm64 and 32-bit Windows binaries are not published. On Windows on ARM, consider WSL or the npm route with a compatible Node.js 22+ build.","source":"@site/docs/getting-started/platforms/windows.mdx","sourceDirName":"getting-started/platforms","slug":"/getting-started/platforms/windows","permalink":"/docs/getting-started/platforms/windows","draft":false,"unlisted":false,"editUrl":"https://github.com/cosmicstack-labs/mercury-agent/tree/main/website/docs/getting-started/platforms/windows.mdx","tags":[],"version":"current","frontMatter":{"id":"windows","title":"Windows","sidebar_label":"Windows"},"sidebar":"docsSidebar","previous":{"title":"Linux","permalink":"/docs/getting-started/platforms/linux"},"next":{"title":"Termux & Mobile","permalink":"/docs/getting-started/platforms/termux"}}'),i=s(74848),t=s(28453);let l={id:"windows",title:"Windows",sidebar_label:"Windows"},o,a={},d=[{value:"Quickest install (recommended)",id:"quickest-install-recommended",level:2},{value:"Via npm (if you already have Node)",id:"via-npm-if-you-already-have-node",level:2},{value:"Pinning a version",id:"pinning-a-version",level:2},{value:"Custom install location",id:"custom-install-location",level:2},{value:"Windows Terminal recommended",id:"windows-terminal-recommended",level:2},{value:"WSL alternative",id:"wsl-alternative",level:2},{value:"SmartScreen / antivirus",id:"smartscreen--antivirus",level:2},{value:"Uninstall",id:"uninstall",level:2},{value:"Next steps",id:"next-steps",level:2}];function c(e){let n={a:"a",admonition:"admonition",code:"code",h2:"h2",li:"li",p:"p",pre:"pre",strong:"strong",ul:"ul",...(0,t.R)(),...e.components};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(n.p,{children:["Mercury runs natively on Windows 10 (build 1809+) and Windows 11, on ",(0,i.jsx)(n.strong,{children:"x64"}),". Native arm64 and 32-bit Windows binaries are not published. On Windows on ARM, consider WSL or the npm route with a compatible Node.js 22+ build."]}),"\n",(0,i.jsx)(n.h2,{id:"quickest-install-recommended",children:"Quickest install (recommended)"}),"\n",(0,i.jsx)(n.p,{children:"Open Windows PowerShell 5.1 or PowerShell 7 and run:"}),"\n",(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-powershell",children:"irm https://mercuryagent.sh/install.ps1 | iex\n"})}),"\n",(0,i.jsxs)(n.p,{children:["This downloads ",(0,i.jsx)(n.code,{children:"mercury-win-x64.exe"}),", verifies its SHA-256, installs it to ",(0,i.jsx)(n.code,{children:"%USERPROFILE%\\.mercury\\bin\\mercury.exe"}),", and prepends that directory to your ",(0,i.jsx)(n.strong,{children:"user"})," ",(0,i.jsx)(n.code,{children:"PATH"}),". No admin required."]}),"\n",(0,i.jsxs)(n.p,{children:["After install, ",(0,i.jsx)(n.strong,{children:"open a new terminal window"})," and run:"]}),"\n",(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-powershell",children:"mercury --version\n"})}),"\n",(0,i.jsxs)(n.admonition,{title:"Execution policy",type:"tip",children:[(0,i.jsx)(n.p,{children:"If PowerShell blocks the script, allow user scripts for the current session:"}),(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-powershell",children:"Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass\nirm https://mercuryagent.sh/install.ps1 | iex\n"})})]}),"\n",(0,i.jsx)(n.h2,{id:"via-npm-if-you-already-have-node",children:"Via npm (if you already have Node)"}),"\n",(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-powershell",children:"npm i -g @cosmicstack/mercury-agent\nmercury\n"})}),"\n",(0,i.jsxs)(n.p,{children:["Requires ",(0,i.jsx)(n.strong,{children:"Node.js 22+"})," (since 1.3.1). Install from ",(0,i.jsx)(n.a,{href:"https://nodejs.org",children:"nodejs.org"})," or via ",(0,i.jsx)(n.a,{href:"https://winget.run/pkg/OpenJS/NodeJS.LTS",children:(0,i.jsx)(n.code,{children:"winget install OpenJS.NodeJS.LTS"})}),"."]}),"\n",(0,i.jsx)(n.h2,{id:"pinning-a-version",children:"Pinning a version"}),"\n",(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-powershell",children:"$env:MERCURY_VERSION = '1.1.9'\nirm https://mercuryagent.sh/install.ps1 | iex\n"})}),"\n",(0,i.jsx)(n.h2,{id:"custom-install-location",children:"Custom install location"}),"\n",(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-powershell",children:"$env:MERCURY_INSTALL = 'C:\\Tools\\mercury'\n$env:MERCURY_NO_PATH = '1'\nirm https://mercuryagent.sh/install.ps1 | iex\n"})}),"\n",(0,i.jsxs)(n.p,{children:["Then add ",(0,i.jsx)(n.code,{children:"C:\\Tools\\mercury\\bin"})," to your ",(0,i.jsx)(n.code,{children:"PATH"})," manually via ",(0,i.jsx)(n.strong,{children:"System Properties \u2192 Environment Variables"}),"."]}),"\n",(0,i.jsx)(n.h2,{id:"windows-terminal-recommended",children:"Windows Terminal recommended"}),"\n",(0,i.jsxs)(n.p,{children:["Mercury's TUI uses Unicode, true color, and ANSI escapes. For best results, use ",(0,i.jsx)(n.strong,{children:"Windows Terminal"})," (default on Windows 11, ",(0,i.jsx)(n.a,{href:"https://aka.ms/terminal",children:"free from the Store"})," on Windows 10). The legacy ",(0,i.jsx)(n.code,{children:"cmd.exe"})," window may render box-drawing characters incorrectly."]}),"\n",(0,i.jsx)(n.h2,{id:"wsl-alternative",children:"WSL alternative"}),"\n",(0,i.jsx)(n.p,{children:"If you prefer a Linux environment, install Mercury inside WSL2:"}),"\n",(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-bash",children:"wsl --install -d Ubuntu\n# inside WSL:\ncurl -fsSL https://mercuryagent.sh/install.sh | sh\n"})}),"\n",(0,i.jsxs)(n.p,{children:["Follow the ",(0,i.jsx)(n.a,{href:"/docs/getting-started/platforms/linux",children:"Linux guide"})," from there."]}),"\n",(0,i.jsx)(n.h2,{id:"smartscreen--antivirus",children:"SmartScreen / antivirus"}),"\n",(0,i.jsxs)(n.p,{children:["The ",(0,i.jsx)(n.code,{children:".exe"}),' is unsigned today. SmartScreen may show "Windows protected your PC" on first run \u2014 click ',(0,i.jsx)(n.strong,{children:"More info \u2192 Run anyway"}),". A code-signed build is on the roadmap."]}),"\n",(0,i.jsx)(n.h2,{id:"uninstall",children:"Uninstall"}),"\n",(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-powershell",children:"Remove-Item -Recurse -Force $env:USERPROFILE\\.mercury\n"})}),"\n",(0,i.jsxs)(n.p,{children:["Then remove the entry from your user ",(0,i.jsx)(n.code,{children:"PATH"})," (System Properties \u2192 Environment Variables)."]}),"\n",(0,i.jsx)(n.p,{children:"For npm installs:"}),"\n",(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-powershell",children:"npm uninstall -g @cosmicstack/mercury-agent\n"})}),"\n",(0,i.jsx)(n.h2,{id:"next-steps",children:"Next steps"}),"\n",(0,i.jsxs)(n.ul,{children:["\n",(0,i.jsx)(n.li,{children:(0,i.jsx)(n.a,{href:"../setup",children:"Setup"})}),"\n",(0,i.jsxs)(n.li,{children:[(0,i.jsx)(n.a,{href:"../../daemon-mode/system-service",children:"Daemon Mode \u2192 System Service"})," for running Mercury as a Windows service"]}),"\n"]})]})}function h(e={}){let{wrapper:n}={...(0,t.R)(),...e.components};return n?(0,i.jsx)(n,{...e,children:(0,i.jsx)(c,{...e})}):c(e)}},28453(e,n,s){s.d(n,{R:()=>l,x:()=>o});var r=s(96540);let i={},t=r.createContext(i);function l(e){let n=r.useContext(t);return r.useMemo(function(){return"function"==typeof e?e(n):{...n,...e}},[n,e])}function o(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(i):e.components||i:l(e.components),r.createElement(t.Provider,{value:n},e.children)}}}]);