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([["7871"],{30810(e,t,r){r.r(t),r.d(t,{metadata:()=>n,default:()=>u,frontMatter:()=>o,contentTitle:()=>a,toc:()=>d,assets:()=>c});var n=JSON.parse('{"id":"getting-started/setup","title":"First-Time Setup","description":"Run mercury for the first time. The onboarding wizard asks for:","source":"@site/docs/getting-started/setup.mdx","sourceDirName":"getting-started","slug":"/getting-started/setup","permalink":"/docs/getting-started/setup","draft":false,"unlisted":false,"editUrl":"https://github.com/cosmicstack-labs/mercury-agent/tree/main/website/docs/getting-started/setup.mdx","tags":[],"version":"current","frontMatter":{"id":"setup","title":"First-Time Setup"},"sidebar":"docsSidebar","previous":{"title":"Cloud Instance","permalink":"/docs/getting-started/platforms/cloud-instance"},"next":{"title":"Starting Mercury","permalink":"/docs/getting-started/starting"}}'),s=r(74848),i=r(28453);let o={id:"setup",title:"First-Time Setup"},a,c={},d=[];function l(e){let t={admonition:"admonition",code:"code",li:"li",p:"p",strong:"strong",ul:"ul",...(0,i.R)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(t.p,{children:["Run ",(0,s.jsx)(t.code,{children:"mercury"})," for the first time. The onboarding wizard asks for:"]}),"\n",(0,s.jsxs)(t.ul,{children:["\n",(0,s.jsxs)(t.li,{children:[(0,s.jsx)(t.strong,{children:"Your name"})," \u2014 used by the agent to address you"]}),"\n",(0,s.jsxs)(t.li,{children:[(0,s.jsx)(t.strong,{children:"Agent name"}),' \u2014 defaults to "Mercury", customize it']}),"\n",(0,s.jsxs)(t.li,{children:[(0,s.jsx)(t.strong,{children:"LLM providers"})," \u2014 choose one or more: DeepSeek, OpenAI, Anthropic, Grok, Ollama Cloud, Ollama Local, Atomic Chat, or OpenAI Compatible"]}),"\n",(0,s.jsxs)(t.li,{children:[(0,s.jsx)(t.strong,{children:"Model selection"})," \u2014 after each valid key, Mercury fetches recommended chat models and lets you choose a default"]}),"\n",(0,s.jsxs)(t.li,{children:[(0,s.jsx)(t.strong,{children:"Telegram bot token"})," \u2014 optional, for remote access in private 1:1 chats"]}),"\n"]}),"\n",(0,s.jsx)(t.p,{children:"Provider keys are validated by format and then by fetching available models. If model discovery fails, Mercury asks you to re-enter the key instead of accepting random text."}),"\n",(0,s.jsxs)(t.p,{children:["If you enable Telegram during first-time setup, Mercury starts a temporary pairing flow: send ",(0,s.jsx)(t.code,{children:"/start"})," to your bot in Telegram, copy the pairing code you receive there, then paste that code into the CLI to finish setup."]}),"\n",(0,s.jsxs)(t.p,{children:["All config is stored in ",(0,s.jsx)(t.code,{children:"~/.mercury/"})," \u2014 nothing in your project directory."]}),"\n",(0,s.jsx)(t.admonition,{title:"Masked keys",type:"info",children:(0,s.jsxs)(t.p,{children:["When reconfiguring with ",(0,s.jsx)(t.code,{children:"mercury doctor"}),", existing API keys are shown masked like ",(0,s.jsx)(t.code,{children:"sk-x\u2022\u2022\u2022\u20224f2a"}),". Press Enter to keep the current value, or paste a new key to replace it."]})})]})}function u(e={}){let{wrapper:t}={...(0,i.R)(),...e.components};return t?(0,s.jsx)(t,{...e,children:(0,s.jsx)(l,{...e})}):l(e)}},28453(e,t,r){r.d(t,{R:()=>o,x:()=>a});var n=r(96540);let s={},i=n.createContext(s);function o(e){let t=n.useContext(i);return n.useMemo(function(){return"function"==typeof e?e(t):{...t,...e}},[t,e])}function a(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(s):e.components||s:o(e.components),n.createElement(i.Provider,{value:t},e.children)}}}]);