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([["7439"],{76764(e,n,s){s.r(n),s.d(n,{metadata:()=>r,default:()=>h,frontMatter:()=>l,contentTitle:()=>a,toc:()=>d,assets:()=>c});var r=JSON.parse('{"id":"getting-started/platforms/macos","title":"macOS","description":"Mercury supports macOS 11 (Big Sur) and later, on both Apple Silicon (arm64) and Intel (x64).","source":"@site/docs/getting-started/platforms/macos.mdx","sourceDirName":"getting-started/platforms","slug":"/getting-started/platforms/macos","permalink":"/docs/getting-started/platforms/macos","draft":false,"unlisted":false,"editUrl":"https://github.com/cosmicstack-labs/mercury-agent/tree/main/website/docs/getting-started/platforms/macos.mdx","tags":[],"version":"current","frontMatter":{"id":"macos","title":"macOS","sidebar_label":"macOS"},"sidebar":"docsSidebar","previous":{"title":"Remote access & security","permalink":"/docs/desktop/remote-access"},"next":{"title":"Linux","permalink":"/docs/getting-started/platforms/linux"}}'),t=s(74848),i=s(28453);let l={id:"macos",title:"macOS",sidebar_label:"macOS"},a,c={},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:"Apple Silicon vs Intel",id:"apple-silicon-vs-intel",level:2},{value:"Pinning a version",id:"pinning-a-version",level:2},{value:"Custom install location",id:"custom-install-location",level:2},{value:"Gatekeeper / "unidentified developer"",id:"gatekeeper--unidentified-developer",level:2},{value:"Uninstall",id:"uninstall",level:2},{value:"Next steps",id:"next-steps",level:2}];function o(e){let n={a:"a",code:"code",h2:"h2",li:"li",p:"p",pre:"pre",strong:"strong",table:"table",tbody:"tbody",td:"td",th:"th",thead:"thead",tr:"tr",ul:"ul",...(0,i.R)(),...e.components};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(n.p,{children:["Mercury supports macOS 11 (Big Sur) and later, on both ",(0,t.jsx)(n.strong,{children:"Apple Silicon (arm64)"})," and ",(0,t.jsx)(n.strong,{children:"Intel (x64)"}),"."]}),"\n",(0,t.jsx)(n.h2,{id:"quickest-install-recommended",children:"Quickest install (recommended)"}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-bash",children:"curl -fsSL https://mercuryagent.sh/install.sh | sh\n"})}),"\n",(0,t.jsxs)(n.p,{children:["This downloads the latest binary for your CPU, verifies its SHA-256 against the published ",(0,t.jsx)(n.code,{children:"checksums.txt"}),", and installs to ",(0,t.jsx)(n.code,{children:"~/.mercury/bin/mercury"}),". Your shell ",(0,t.jsx)(n.code,{children:"PATH"})," is updated in ",(0,t.jsx)(n.code,{children:"~/.zshrc"})," (or ",(0,t.jsx)(n.code,{children:"~/.bashrc"})," if you use bash)."]}),"\n",(0,t.jsx)(n.p,{children:"After install:"}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-bash",children:"exec $SHELL -l # reload PATH\nmercury --version\n"})}),"\n",(0,t.jsx)(n.h2,{id:"via-npm-if-you-already-have-node",children:"Via npm (if you already have Node)"}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-bash",children:"npm i -g @cosmicstack/mercury-agent\nmercury\n"})}),"\n",(0,t.jsxs)(n.p,{children:["Requires ",(0,t.jsx)(n.strong,{children:"Node.js 22+"}),". Install Node via ",(0,t.jsx)(n.a,{href:"https://github.com/nvm-sh/nvm",children:"nvm"}),", Homebrew (",(0,t.jsx)(n.code,{children:"brew install node@22"}),"), or the official installer."]}),"\n",(0,t.jsx)(n.h2,{id:"apple-silicon-vs-intel",children:"Apple Silicon vs Intel"}),"\n",(0,t.jsx)(n.p,{children:"The installer auto-selects:"}),"\n",(0,t.jsxs)(n.table,{children:[(0,t.jsx)(n.thead,{children:(0,t.jsxs)(n.tr,{children:[(0,t.jsx)(n.th,{children:"CPU"}),(0,t.jsx)(n.th,{children:"Asset"})]})}),(0,t.jsxs)(n.tbody,{children:[(0,t.jsxs)(n.tr,{children:[(0,t.jsx)(n.td,{children:"Apple Silicon (M1/M2/M3/M4)"}),(0,t.jsx)(n.td,{children:(0,t.jsx)(n.code,{children:"mercury-macos-arm64"})})]}),(0,t.jsxs)(n.tr,{children:[(0,t.jsx)(n.td,{children:"Intel"}),(0,t.jsx)(n.td,{children:(0,t.jsx)(n.code,{children:"mercury-macos-x64"})})]})]})]}),"\n",(0,t.jsx)(n.p,{children:"To verify which architecture your Mac uses:"}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-bash",children:"uname -m # arm64 or x86_64\n"})}),"\n",(0,t.jsx)(n.h2,{id:"pinning-a-version",children:"Pinning a version"}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-bash",children:"curl -fsSL https://mercuryagent.sh/install.sh | MERCURY_VERSION=1.1.9 sh\n"})}),"\n",(0,t.jsx)(n.h2,{id:"custom-install-location",children:"Custom install location"}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-bash",children:"curl -fsSL https://mercuryagent.sh/install.sh | \\\n MERCURY_INSTALL=/opt/mercury MERCURY_NO_PATH=1 sh\n"})}),"\n",(0,t.jsxs)(n.p,{children:["Add ",(0,t.jsx)(n.code,{children:"/opt/mercury/bin"})," to your ",(0,t.jsx)(n.code,{children:"PATH"})," manually."]}),"\n",(0,t.jsx)(n.h2,{id:"gatekeeper--unidentified-developer",children:'Gatekeeper / "unidentified developer"'}),"\n",(0,t.jsx)(n.p,{children:"The binary is currently unsigned. On first run macOS may quarantine it. Either:"}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-bash",children:"xattr -d com.apple.quarantine ~/.mercury/bin/mercury\n"})}),"\n",(0,t.jsxs)(n.p,{children:["\u2026or right-click the binary in Finder and choose ",(0,t.jsx)(n.strong,{children:"Open"})," to whitelist it once."]}),"\n",(0,t.jsx)(n.p,{children:"A signed/notarized build is on the roadmap."}),"\n",(0,t.jsx)(n.h2,{id:"uninstall",children:"Uninstall"}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-bash",children:"rm -rf ~/.mercury\n# then remove the PATH line added to ~/.zshrc or ~/.bashrc\n"})}),"\n",(0,t.jsx)(n.p,{children:"For npm installs:"}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-bash",children:"npm uninstall -g @cosmicstack/mercury-agent\n"})}),"\n",(0,t.jsx)(n.h2,{id:"next-steps",children:"Next steps"}),"\n",(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsxs)(n.li,{children:[(0,t.jsx)(n.a,{href:"../setup",children:"Setup"})," \u2014 configure your first provider"]}),"\n",(0,t.jsx)(n.li,{children:(0,t.jsx)(n.a,{href:"../starting",children:"Starting Mercury"})}),"\n"]})]})}function h(e={}){let{wrapper:n}={...(0,i.R)(),...e.components};return n?(0,t.jsx)(n,{...e,children:(0,t.jsx)(o,{...e})}):o(e)}},28453(e,n,s){s.d(n,{R:()=>l,x:()=>a});var r=s(96540);let t={},i=r.createContext(t);function l(e){let n=r.useContext(i);return r.useMemo(function(){return"function"==typeof e?e(n):{...n,...e}},[n,e])}function a(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(t):e.components||t:l(e.components),r.createElement(i.Provider,{value:n},e.children)}}}]);