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.

7.8 KB
Raw Blame
"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([["9216"],{24759(e,s,n){n.r(s),n.d(s,{metadata:()=>r,default:()=>h,frontMatter:()=>l,contentTitle:()=>a,toc:()=>c,assets:()=>d});var r=JSON.parse('{"id":"getting-started/platforms/linux","title":"Linux","description":"Mercury publishes standalone Linux binaries for x86_64 and arm64 on glibc-based systems. Alpine/musl, Android/bionic, and 32-bit systems need another installation route; see the support limits.","source":"@site/docs/getting-started/platforms/linux.mdx","sourceDirName":"getting-started/platforms","slug":"/getting-started/platforms/linux","permalink":"/docs/getting-started/platforms/linux","draft":false,"unlisted":false,"editUrl":"https://github.com/cosmicstack-labs/mercury-agent/tree/main/website/docs/getting-started/platforms/linux.mdx","tags":[],"version":"current","frontMatter":{"id":"linux","title":"Linux","sidebar_label":"Linux"},"sidebar":"docsSidebar","previous":{"title":"macOS","permalink":"/docs/getting-started/platforms/macos"},"next":{"title":"Windows","permalink":"/docs/getting-started/platforms/windows"}}'),i=n(74848),t=n(28453);let l={id:"linux",title:"Linux",sidebar_label:"Linux"},a,d={},c=[{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:"Architecture matrix",id:"architecture-matrix",level:2},{value:"Pinning a version",id:"pinning-a-version",level:2},{value:"System-wide install",id:"system-wide-install",level:2},{value:"Running as a service",id:"running-as-a-service",level:2},{value:"Headless / SSH usage",id:"headless--ssh-usage",level:2},{value:"Uninstall",id:"uninstall",level:2},{value:"Next steps",id:"next-steps",level:2}];function o(e){let s={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,t.R)(),...e.components};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(s.p,{children:["Mercury publishes standalone Linux binaries for ",(0,i.jsx)(s.strong,{children:"x86_64"})," and ",(0,i.jsx)(s.strong,{children:"arm64"})," on glibc-based systems. Alpine/musl, Android/bionic, and 32-bit systems need another installation route; see the ",(0,i.jsx)(s.a,{href:"/docs/#standalone-support-limits",children:"support limits"}),"."]}),"\n",(0,i.jsx)(s.h2,{id:"quickest-install-recommended",children:"Quickest install (recommended)"}),"\n",(0,i.jsx)(s.pre,{children:(0,i.jsx)(s.code,{className:"language-bash",children:"curl -fsSL https://mercuryagent.sh/install.sh | sh\n"})}),"\n",(0,i.jsxs)(s.p,{children:["The installer picks the right binary for your CPU, verifies the SHA-256 checksum, places it at ",(0,i.jsx)(s.code,{children:"~/.mercury/bin/mercury"}),", and adds that directory to your shell ",(0,i.jsx)(s.code,{children:"PATH"})," (",(0,i.jsx)(s.code,{children:"~/.bashrc"}),", ",(0,i.jsx)(s.code,{children:"~/.zshrc"}),", or ",(0,i.jsx)(s.code,{children:"~/.config/fish/config.fish"}),")."]}),"\n",(0,i.jsx)(s.p,{children:"After install:"}),"\n",(0,i.jsx)(s.pre,{children:(0,i.jsx)(s.code,{className:"language-bash",children:"exec $SHELL -l\nmercury --version\n"})}),"\n",(0,i.jsxs)(s.p,{children:[":::note Older x86-64 CPUs\nThe default Linux x64 build uses AVX2. On a CPU without it (Intel before 2013, some VMs) the installer picks the ",(0,i.jsx)(s.strong,{children:"baseline"})," build automatically \u2014 from ",(0,i.jsx)(s.code,{children:"/proc/cpuinfo"}),", or by switching after an ",(0,i.jsx)(s.code,{children:"Illegal instruction"})," crash. To force it: ",(0,i.jsx)(s.code,{children:"curl -fsSL https://mercuryagent.sh/install.sh | MERCURY_ASSET=mercury-linux-x64-baseline sh"}),".\n:::"]}),"\n",(0,i.jsx)(s.h2,{id:"via-npm-if-you-already-have-node",children:"Via npm (if you already have Node)"}),"\n",(0,i.jsx)(s.pre,{children:(0,i.jsx)(s.code,{className:"language-bash",children:"npm i -g @cosmicstack/mercury-agent\n"})}),"\n",(0,i.jsxs)(s.p,{children:["Requires ",(0,i.jsx)(s.strong,{children:"Node.js 22+"}),". Recommended via ",(0,i.jsx)(s.a,{href:"https://github.com/nvm-sh/nvm",children:"nvm"})," so you avoid ",(0,i.jsx)(s.code,{children:"sudo"})," for global packages."]}),"\n",(0,i.jsx)(s.h2,{id:"architecture-matrix",children:"Architecture matrix"}),"\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:"CPU"}),(0,i.jsx)(s.th,{children:"Asset"})]})}),(0,i.jsxs)(s.tbody,{children:[(0,i.jsxs)(s.tr,{children:[(0,i.jsx)(s.td,{children:"x86_64"}),(0,i.jsx)(s.td,{children:(0,i.jsx)(s.code,{children:"mercury-linux-x64"})})]}),(0,i.jsxs)(s.tr,{children:[(0,i.jsx)(s.td,{children:"aarch64 / arm64 (Raspberry Pi 4/5 64-bit, AWS Graviton, etc.)"}),(0,i.jsx)(s.td,{children:(0,i.jsx)(s.code,{children:"mercury-linux-arm64"})})]})]})]}),"\n",(0,i.jsx)(s.p,{children:"Check yours:"}),"\n",(0,i.jsx)(s.pre,{children:(0,i.jsx)(s.code,{className:"language-bash",children:"uname -m   # x86_64 or aarch64\n"})}),"\n",(0,i.jsxs)(s.p,{children:["There is no prebuilt 32-bit ARM binary. The ",(0,i.jsx)(s.a,{href:"#via-npm-if-you-already-have-node",children:"npm route"})," requires a compatible Node.js 22+ build and dependencies for the device; older boards are not covered by the standard binary releases."]}),"\n",(0,i.jsx)(s.h2,{id:"pinning-a-version",children:"Pinning a version"}),"\n",(0,i.jsx)(s.pre,{children:(0,i.jsx)(s.code,{className:"language-bash",children:"curl -fsSL https://mercuryagent.sh/install.sh | MERCURY_VERSION=1.1.9 sh\n"})}),"\n",(0,i.jsx)(s.h2,{id:"system-wide-install",children:"System-wide install"}),"\n",(0,i.jsx)(s.pre,{children:(0,i.jsx)(s.code,{className:"language-bash",children:"curl -fsSL https://mercuryagent.sh/install.sh | \\\n  sudo MERCURY_INSTALL=/usr/local MERCURY_NO_PATH=1 sh\n"})}),"\n",(0,i.jsxs)(s.p,{children:["This puts ",(0,i.jsx)(s.code,{children:"mercury"})," at ",(0,i.jsx)(s.code,{children:"/usr/local/bin/mercury"})," (already on most users' PATH)."]}),"\n",(0,i.jsx)(s.h2,{id:"running-as-a-service",children:"Running as a service"}),"\n",(0,i.jsxs)(s.p,{children:["To run Mercury as a long-lived daemon under systemd, see the ",(0,i.jsx)(s.a,{href:"../../daemon-mode/system-service",children:"Daemon Mode \u2192 System Service"})," guide."]}),"\n",(0,i.jsx)(s.h2,{id:"headless--ssh-usage",children:"Headless / SSH usage"}),"\n",(0,i.jsxs)(s.p,{children:["Mercury's TUI works fine over SSH. For long sessions, run it inside ",(0,i.jsx)(s.code,{children:"tmux"})," or ",(0,i.jsx)(s.code,{children:"screen"}),":"]}),"\n",(0,i.jsx)(s.pre,{children:(0,i.jsx)(s.code,{className:"language-bash",children:"tmux new -s mercury\nmercury\n# detach: Ctrl-b d\n# reattach: tmux attach -t mercury\n"})}),"\n",(0,i.jsx)(s.h2,{id:"uninstall",children:"Uninstall"}),"\n",(0,i.jsx)(s.pre,{children:(0,i.jsx)(s.code,{className:"language-bash",children:"rm -rf ~/.mercury\n# remove the PATH line from your shell rc\n"})}),"\n",(0,i.jsx)(s.pre,{children:(0,i.jsx)(s.code,{className:"language-bash",children:"npm uninstall -g @cosmicstack/mercury-agent\n"})}),"\n",(0,i.jsx)(s.h2,{id:"next-steps",children:"Next steps"}),"\n",(0,i.jsxs)(s.ul,{children:["\n",(0,i.jsx)(s.li,{children:(0,i.jsx)(s.a,{href:"../setup",children:"Setup"})}),"\n",(0,i.jsxs)(s.li,{children:[(0,i.jsx)(s.a,{href:"../../daemon-mode/daemon-mode",children:"Daemon Mode"})," for 24/7 operation"]}),"\n"]})]})}function h(e={}){let{wrapper:s}={...(0,t.R)(),...e.components};return s?(0,i.jsx)(s,{...e,children:(0,i.jsx)(o,{...e})}):o(e)}},28453(e,s,n){n.d(s,{R:()=>l,x:()=>a});var r=n(96540);let i={},t=r.createContext(i);function l(e){let s=r.useContext(t);return r.useMemo(function(){return"function"==typeof e?e(s):{...s,...e}},[s,e])}function a(e){let s;return s=e.disableParentContext?"function"==typeof e.components?e.components(i):e.components||i:l(e.components),r.createElement(t.Provider,{value:s},e.children)}}}]);