1:"$Sreact.fragment"
2:I[522016,["/_next/static/chunks/2c8nlh6knmtnq.js?dpl=english-user-ui-20261015","/_next/static/chunks/1m3ma-gy861g8.js?dpl=english-user-ui-20261015","/_next/static/chunks/0i-6lx54d9m_g.js?dpl=english-user-ui-20261015","/_next/static/chunks/1pqbn14pqnkn6.js?dpl=english-user-ui-20261015","/_next/static/chunks/34nn5lu2srgqr.js?dpl=english-user-ui-20261015","/_next/static/chunks/1o1rk7geqdbq3.js?dpl=english-user-ui-20261015","/_next/static/chunks/1kgfoa7r694r2.js?dpl=english-user-ui-20261015","/_next/static/chunks/3votgfujq5sjd.js?dpl=english-user-ui-20261015","/_next/static/chunks/08bacm9oj9045.js?dpl=english-user-ui-20261015","/_next/static/chunks/1s9uwx83ym55i.js?dpl=english-user-ui-20261015"],""]
3:I[258541,["/_next/static/chunks/2c8nlh6knmtnq.js?dpl=english-user-ui-20261015","/_next/static/chunks/1m3ma-gy861g8.js?dpl=english-user-ui-20261015","/_next/static/chunks/0i-6lx54d9m_g.js?dpl=english-user-ui-20261015","/_next/static/chunks/1pqbn14pqnkn6.js?dpl=english-user-ui-20261015","/_next/static/chunks/34nn5lu2srgqr.js?dpl=english-user-ui-20261015","/_next/static/chunks/1o1rk7geqdbq3.js?dpl=english-user-ui-20261015","/_next/static/chunks/1kgfoa7r694r2.js?dpl=english-user-ui-20261015","/_next/static/chunks/3votgfujq5sjd.js?dpl=english-user-ui-20261015","/_next/static/chunks/08bacm9oj9045.js?dpl=english-user-ui-20261015","/_next/static/chunks/1s9uwx83ym55i.js?dpl=english-user-ui-20261015"],"default"]
a:X
f:X
f:C
0:{"buildId":"","data":[{"rsc":["$","$1","c",{"children":[["$","div",null,{"className":"min-h-screen bg-background","children":[["$","header",null,{"className":"border-b border-border bg-background","children":["$","div",null,{"className":"mx-auto flex min-h-16 w-full max-w-6xl flex-wrap items-center justify-between gap-3 px-4 py-3 sm:px-6 lg:px-8","children":[["$","$L2",null,{"href":"/tutorials","className":"flex items-center gap-2 text-sm font-semibold text-foreground","children":[["$","span",null,{"className":"flex size-8 items-center justify-center rounded-sm bg-sky-800 text-white","children":["$","$L3",null,{"iconNode":[["path",{"d":"M12 7v14","key":"1akyts"}],["path",{"d":"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z","key":"ruj8y"}]],"className":"lucide-book-open size-4"}]}],"OpenOx ",["$","span",null,{"className":"font-normal text-muted-foreground","children":"/ Tutorials"}]]}],["$","div",null,{"className":"flex items-center gap-4","children":[["$","$L2",null,{"href":"/tutorials","className":"inline-flex items-center gap-1.5 text-sm text-muted-foreground transition hover:text-foreground","children":[["$","$L3",null,{"iconNode":[["path",{"d":"m12 19-7-7 7-7","key":"1l729n"}],["path",{"d":"M19 12H5","key":"x3x0zl"}]],"className":"lucide-arrow-left size-4"}]," All tutorials"]}],["$","$L2",null,{"href":"/dashboard/keys","className":"text-sm font-medium text-foreground transition hover:text-sky-800","children":"API keys"}]]}]]}]}],["$","main",null,{"className":"mx-auto w-full max-w-6xl px-4 sm:px-6 lg:px-8","children":["$","div",null,{"className":"grid gap-8 py-8 sm:py-10 lg:grid-cols-[minmax(0,44rem)_13rem] lg:gap-14 lg:py-12","children":[["$","div",null,{"className":"min-w-0","children":[["$","nav",null,{"aria-label":"Breadcrumb","className":"mb-6 text-xs text-muted-foreground","children":[["$","$L2",null,{"href":"/tutorials","className":"hover:text-foreground","children":"Tutorials"}],["$","span",null,{"className":"px-2","children":"/"}],"Claude",["$","span",null,{"className":"px-2","children":"/"}],"macOS"]}],["$","header",null,{"className":"mb-8 max-w-[44rem] border-b border-border pb-7","children":[["$","div",null,{"className":"mb-3 flex flex-wrap items-center gap-x-3 gap-y-1 text-xs font-medium text-muted-foreground","children":[["$","span",null,{"className":"text-sky-800","children":"Claude"}],["$","span",null,{"aria-hidden":"true","className":"text-border","children":"/"}],["$","span",null,{"children":"macOS"}],["$","span",null,{"aria-hidden":"true","className":"text-border","children":"/"}],["$","span",null,{"children":[4," min read"]}]]}],["$","h1",null,{"className":"text-3xl font-semibold leading-tight text-foreground sm:text-4xl","children":"Claude Code"}],["$","p",null,{"className":"mt-3 max-w-2xl text-base leading-7 text-muted-foreground","children":"Install and configure Claude Code on macOS."}]]}],["$","details",null,{"className":"group mb-8 border-y border-border py-3 lg:hidden","children":[["$","summary",null,{"className":"flex cursor-pointer list-none items-center justify-between text-sm font-medium text-foreground","children":[["$","span",null,{"className":"inline-flex items-center gap-2","children":[["$","$L3",null,{"iconNode":[["path",{"d":"M3 5h.01","key":"18ugdj"}],["path",{"d":"M3 12h.01","key":"nlz23k"}],["path",{"d":"M3 19h.01","key":"noohij"}],["path",{"d":"M8 5h13","key":"1pao27"}],["path",{"d":"M8 12h13","key":"1za7za"}],["path",{"d":"M8 19h13","key":"m83p4d"}]],"className":"lucide-list size-4 text-sky-800"}]," On this page"]}],["$","$L3",null,{"iconNode":[["path",{"d":"m6 9 6 6 6-6","key":"qrunsl"}]],"className":"lucide-chevron-down size-4 text-muted-foreground transition-transform group-open:rotate-180"}]]}],["$","nav",null,{"aria-label":"On this page","className":"mt-3 grid gap-2 border-l border-border pl-4 text-sm","children":[["$","a","section-1",{"href":"#section-1","className":"leading-5 text-muted-foreground hover:text-foreground","children":"1. Install the Basic Environment"}],["$","a","section-2",{"href":"#section-2","className":"leading-5 text-muted-foreground hover:text-foreground","children":"2. Install Claude Code"}],["$","a","section-3",{"href":"#section-3","className":"leading-5 text-muted-foreground hover:text-foreground","children":"3. Configure CC Switch"}]]}]]}],"$L4","$L5"]}],"$L6"]}]}]]}],["$L7"],"$L8"]}],"isPartial":"$@9","staleTime":"$a","varyParams":null},{"rsc":"$Lb","isPartial":"$@c","staleTime":"$a","varyParams":null},{"rsc":"$Ld","isPartial":"$@e","staleTime":"$a","varyParams":"$f"},{"rsc":"$L10","isPartial":"$@11","staleTime":"$a","varyParams":"$f"}],"isUpgradeableISRFallback":false,"a":"$@12","rootVaryParams":null,"needsRuntimeRequest":"$@13"}
51:I[897367,["/_next/static/chunks/2c8nlh6knmtnq.js?dpl=english-user-ui-20261015","/_next/static/chunks/1m3ma-gy861g8.js?dpl=english-user-ui-20261015","/_next/static/chunks/0i-6lx54d9m_g.js?dpl=english-user-ui-20261015","/_next/static/chunks/1pqbn14pqnkn6.js?dpl=english-user-ui-20261015","/_next/static/chunks/34nn5lu2srgqr.js?dpl=english-user-ui-20261015","/_next/static/chunks/1o1rk7geqdbq3.js?dpl=english-user-ui-20261015","/_next/static/chunks/1kgfoa7r694r2.js?dpl=english-user-ui-20261015","/_next/static/chunks/3votgfujq5sjd.js?dpl=english-user-ui-20261015","/_next/static/chunks/08bacm9oj9045.js?dpl=english-user-ui-20261015"],"OutletBoundary"]
52:"$Sreact.suspense"
54:I[897367,["/_next/static/chunks/2c8nlh6knmtnq.js?dpl=english-user-ui-20261015","/_next/static/chunks/1m3ma-gy861g8.js?dpl=english-user-ui-20261015","/_next/static/chunks/0i-6lx54d9m_g.js?dpl=english-user-ui-20261015","/_next/static/chunks/1pqbn14pqnkn6.js?dpl=english-user-ui-20261015","/_next/static/chunks/34nn5lu2srgqr.js?dpl=english-user-ui-20261015","/_next/static/chunks/1o1rk7geqdbq3.js?dpl=english-user-ui-20261015","/_next/static/chunks/1kgfoa7r694r2.js?dpl=english-user-ui-20261015","/_next/static/chunks/3votgfujq5sjd.js?dpl=english-user-ui-20261015","/_next/static/chunks/08bacm9oj9045.js?dpl=english-user-ui-20261015"],"ViewportBoundary"]
55:I[897367,["/_next/static/chunks/2c8nlh6knmtnq.js?dpl=english-user-ui-20261015","/_next/static/chunks/1m3ma-gy861g8.js?dpl=english-user-ui-20261015","/_next/static/chunks/0i-6lx54d9m_g.js?dpl=english-user-ui-20261015","/_next/static/chunks/1pqbn14pqnkn6.js?dpl=english-user-ui-20261015","/_next/static/chunks/34nn5lu2srgqr.js?dpl=english-user-ui-20261015","/_next/static/chunks/1o1rk7geqdbq3.js?dpl=english-user-ui-20261015","/_next/static/chunks/1kgfoa7r694r2.js?dpl=english-user-ui-20261015","/_next/static/chunks/3votgfujq5sjd.js?dpl=english-user-ui-20261015","/_next/static/chunks/08bacm9oj9045.js?dpl=english-user-ui-20261015"],"MetadataBoundary"]
56:I[27201,["/_next/static/chunks/2c8nlh6knmtnq.js?dpl=english-user-ui-20261015","/_next/static/chunks/1m3ma-gy861g8.js?dpl=english-user-ui-20261015","/_next/static/chunks/0i-6lx54d9m_g.js?dpl=english-user-ui-20261015","/_next/static/chunks/1pqbn14pqnkn6.js?dpl=english-user-ui-20261015","/_next/static/chunks/34nn5lu2srgqr.js?dpl=english-user-ui-20261015","/_next/static/chunks/1o1rk7geqdbq3.js?dpl=english-user-ui-20261015","/_next/static/chunks/1kgfoa7r694r2.js?dpl=english-user-ui-20261015","/_next/static/chunks/3votgfujq5sjd.js?dpl=english-user-ui-20261015","/_next/static/chunks/08bacm9oj9045.js?dpl=english-user-ui-20261015"],"IconMark"]
57:I[339756,["/_next/static/chunks/2c8nlh6knmtnq.js?dpl=english-user-ui-20261015","/_next/static/chunks/1m3ma-gy861g8.js?dpl=english-user-ui-20261015","/_next/static/chunks/0i-6lx54d9m_g.js?dpl=english-user-ui-20261015","/_next/static/chunks/1pqbn14pqnkn6.js?dpl=english-user-ui-20261015","/_next/static/chunks/34nn5lu2srgqr.js?dpl=english-user-ui-20261015","/_next/static/chunks/1o1rk7geqdbq3.js?dpl=english-user-ui-20261015","/_next/static/chunks/1kgfoa7r694r2.js?dpl=english-user-ui-20261015","/_next/static/chunks/3votgfujq5sjd.js?dpl=english-user-ui-20261015","/_next/static/chunks/08bacm9oj9045.js?dpl=english-user-ui-20261015"],"default"]
58:I[837457,["/_next/static/chunks/2c8nlh6knmtnq.js?dpl=english-user-ui-20261015","/_next/static/chunks/1m3ma-gy861g8.js?dpl=english-user-ui-20261015","/_next/static/chunks/0i-6lx54d9m_g.js?dpl=english-user-ui-20261015","/_next/static/chunks/1pqbn14pqnkn6.js?dpl=english-user-ui-20261015","/_next/static/chunks/34nn5lu2srgqr.js?dpl=english-user-ui-20261015","/_next/static/chunks/1o1rk7geqdbq3.js?dpl=english-user-ui-20261015","/_next/static/chunks/1kgfoa7r694r2.js?dpl=english-user-ui-20261015","/_next/static/chunks/3votgfujq5sjd.js?dpl=english-user-ui-20261015","/_next/static/chunks/08bacm9oj9045.js?dpl=english-user-ui-20261015"],"default"]
4:["$","article",null,{"className":"min-w-0 max-w-[44rem]","children":["$","div",null,{"children":[["$","p","content-0",{"className":"my-4 max-w-[68ch] text-base leading-7 text-foreground/90","children":[" Note: The easiest method is to ask ChatGPT to download Claude Code for you"]}],["$","p","content-1",{"className":"my-4 max-w-[68ch] text-base leading-7 text-foreground/90","children":["For Mac users. After completing this tutorial, you will be able to use Claude Code in the Mac terminal and manage your openox API Key configuration through CC Switch."]}],["$","p","content-2",{"className":"my-4 max-w-[68ch] text-base leading-7 text-foreground/90","children":["Before you begin, make sure that:"]}],["$","ol","content-3",{"className":"my-4 list-decimal space-y-2 pl-6 text-base leading-7 text-foreground/90","children":[["$","li","content-3-0",{"className":"pl-1","children":["You have registered an openrouter account."]}],["$","li","content-3-1",{"className":"pl-1","children":["You have created an API Key."]}],["$","li","content-3-2",{"className":"pl-1","children":["An API Key is usually a string beginning with sk."]}],["$","li","content-3-3",{"className":"pl-1","children":["Your account has a sufficient balance."]}]]}],["$","hr","content-4",{"className":"my-8 border-border"}],["$","h3","content-5",{"className":"mb-2 mt-9 scroll-mt-24 text-lg font-semibold leading-7 text-foreground","id":"section-1","children":["1. Install the Basic Environment"]}],["$","ol","content-6",{"className":"my-4 list-decimal space-y-2 pl-6 text-base leading-7 text-foreground/90","children":[["$","li","content-6-0",{"className":"pl-1","children":["Open the Mac terminal."]}]]}],["$","p","content-7",{"className":"my-4 max-w-[68ch] text-base leading-7 text-foreground/90","children":["Click the search button in the upper-right corner of your Mac, or press:"]}],["$","p","content-8",{"className":"my-4 max-w-[68ch] text-base leading-7 text-foreground/90","children":[["$","code","content-8-0",{"className":"rounded bg-muted px-1.5 py-0.5 font-mono text-[0.9em] text-emerald-800","children":["Command + Space"]}]]}],["$","p","content-9",{"className":"my-4 max-w-[68ch] text-base leading-7 text-foreground/90","children":["Search for:"]}],["$","pre","content-10",{"className":"my-5 overflow-x-auto rounded-md bg-slate-950 p-4 text-sm leading-6 text-slate-100","children":["$","code",null,{"children":"Terminal"}]}],["$","p","content-11",{"className":"my-4 max-w-[68ch] text-base leading-7 text-foreground/90","children":["Then open [Terminal]"]}],["$","hr","content-12",{"className":"my-8 border-border"}],["$","ol","content-13",{"className":"my-4 list-decimal space-y-2 pl-6 text-base leading-7 text-foreground/90","start":2,"children":[["$","li","content-13-0",{"className":"pl-1","children":["Check whether Homebrew is already installed."]}]]}],["$","p","content-14",{"className":"my-4 max-w-[68ch] text-base leading-7 text-foreground/90","children":["Enter the following command in the terminal:"]}],["$","pre","content-15",{"className":"my-5 overflow-x-auto rounded-md bg-slate-950 p-4 text-sm leading-6 text-slate-100","children":["$","code",null,{"children":"brew -v"}]}],["$","p","content-16",{"className":"my-4 max-w-[68ch] text-base leading-7 text-foreground/90","children":["If a version number appears, Homebrew is installed and you can proceed to the next step."]}],["$","p","content-17",{"className":"my-4 max-w-[68ch] text-base leading-7 text-foreground/90","children":["If you see command not found: brew, Homebrew is not installed and you need to install it first."]}],["$","hr","content-18",{"className":"my-8 border-border"}],["$","ol","content-19",{"className":"my-4 list-decimal space-y-2 pl-6 text-base leading-7 text-foreground/90","start":3,"children":[["$","li","content-19-0",{"className":"pl-1","children":["Install Homebrew."]}]]}],"$L14","$L15","$L16","$L17","$L18","$L19","$L1a","$L1b","$L1c","$L1d","$L1e","$L1f","$L20","$L21","$L22","$L23","$L24","$L25","$L26","$L27","$L28","$L29","$L2a","$L2b","$L2c","$L2d","$L2e","$L2f","$L30","$L31","$L32","$L33","$L34","$L35","$L36","$L37","$L38","$L39","$L3a","$L3b","$L3c","$L3d","$L3e","$L3f","$L40","$L41","$L42","$L43","$L44","$L45","$L46","$L47","$L48","$L49","$L4a","$L4b","$L4c","$L4d","$L4e","$L4f","$L50"]}]}]
5:["$","footer",null,{"className":"mt-12 flex flex-wrap items-center justify-between gap-3 border-t border-border pt-5 text-sm","children":[["$","$L2",null,{"href":"/tutorials","className":"inline-flex items-center gap-1.5 font-medium text-sky-800 hover:text-sky-950","children":[["$","$L3",null,{"iconNode":"$0:data:0:rsc:props:children:0:props:children:0:props:children:props:children:1:props:children:0:props:children:0:props:iconNode","className":"lucide-arrow-left size-4"}]," Browse all tutorials"]}],["$","a",null,{"href":"https://www.yuque.com/u68893529/mf3d4r/fg788nsbc5nfzg69","target":"_blank","rel":"noopener noreferrer","className":"inline-flex items-center gap-1.5 text-muted-foreground underline underline-offset-4 hover:text-foreground","children":["View source on Yuque ",["$","$L3",null,{"iconNode":[["path",{"d":"M15 3h6v6","key":"1q9fwt"}],["path",{"d":"M10 14 21 3","key":"gplh6r"}],["path",{"d":"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6","key":"a6xqqp"}]],"className":"lucide-external-link size-3.5"}]]}]]}]
6:["$","aside",null,{"className":"hidden lg:block","children":["$","div",null,{"className":"sticky top-8 border-l border-border pl-4","children":[["$","p",null,{"className":"mb-3 text-xs font-semibold uppercase text-muted-foreground","children":"On this page"}],["$","nav",null,{"aria-label":"On this page","className":"flex max-h-[70vh] flex-col gap-2 overflow-y-auto text-sm","children":[["$","a","section-1",{"href":"#section-1","className":"leading-5 text-muted-foreground transition hover:text-foreground pl-3","children":"1. Install the Basic Environment"}],["$","a","section-2",{"href":"#section-2","className":"leading-5 text-muted-foreground transition hover:text-foreground pl-3","children":"2. Install Claude Code"}],["$","a","section-3",{"href":"#section-3","className":"leading-5 text-muted-foreground transition hover:text-foreground pl-3","children":"3. Configure CC Switch"}]]}]]}]}]
7:["$","script","script-0",{"src":"/_next/static/chunks/1s9uwx83ym55i.js?dpl=english-user-ui-20261015","async":true}]
8:["$","$L51",null,{"children":["$","$52",null,{"name":"Next.MetadataOutlet","children":"$@53"}]}]
b:["$","$1","h",{"children":[null,["$","$L54",null,{"children":[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}]]}],["$","div",null,{"hidden":true,"children":["$","$L55",null,{"children":["$","$52",null,{"name":"Next.Metadata","children":[["$","title","0",{"children":"Claude Code | OpenOx Tutorials"}],["$","meta","1",{"name":"description","content":"Install and configure Claude Code on macOS."}],["$","link","2",{"rel":"shortcut icon","href":"/favicon.ico"}],["$","link","3",{"rel":"icon","href":"/favicon.ico?favicon.3qhkd1y7ty6pp.ico?dpl=english-user-ui-20261015","sizes":"32x32","type":"image/x-icon"}],["$","link","4",{"rel":"icon","href":"/icon.png","type":"image/png"}],["$","link","5",{"rel":"icon","href":"/favicon.ico","type":"image/x-icon"}],["$","link","6",{"rel":"apple-touch-icon","href":"/apple-icon.png"}],["$","$L56","7",{}]]}]}]}],["$","meta",null,{"name":"next-size-adjust","content":""}]]}]
d:["$","$1","c",{"children":[null,["$","$L57",null,{"parallelRouterKey":"children","template":["$","$L58",null,{}]}]]}]
10:["$","$1","c",{"children":[null,["$","$L57",null,{"parallelRouterKey":"children","template":["$","$L58",null,{}]}]]}]
13:true
59:I[605500,["/_next/static/chunks/2c8nlh6knmtnq.js?dpl=english-user-ui-20261015","/_next/static/chunks/1m3ma-gy861g8.js?dpl=english-user-ui-20261015","/_next/static/chunks/0i-6lx54d9m_g.js?dpl=english-user-ui-20261015","/_next/static/chunks/1pqbn14pqnkn6.js?dpl=english-user-ui-20261015","/_next/static/chunks/34nn5lu2srgqr.js?dpl=english-user-ui-20261015","/_next/static/chunks/1o1rk7geqdbq3.js?dpl=english-user-ui-20261015","/_next/static/chunks/1kgfoa7r694r2.js?dpl=english-user-ui-20261015","/_next/static/chunks/3votgfujq5sjd.js?dpl=english-user-ui-20261015","/_next/static/chunks/08bacm9oj9045.js?dpl=english-user-ui-20261015","/_next/static/chunks/1s9uwx83ym55i.js?dpl=english-user-ui-20261015"],"Image"]
14:["$","p","content-20",{"className":"my-4 max-w-[68ch] text-base leading-7 text-foreground/90","children":["Copy and run the following command in the terminal:"]}]
15:["$","pre","content-21",{"className":"my-5 overflow-x-auto rounded-md bg-slate-950 p-4 text-sm leading-6 text-slate-100","children":["$","code",null,{"children":"/bin/bash -c \"$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)\""}]}]
16:["$","p","content-22",{"className":"my-4 max-w-[68ch] text-base leading-7 text-foreground/90","children":["After running it, follow the prompts in the terminal."]}]
17:["$","p","content-23",{"className":"my-4 max-w-[68ch] text-base leading-7 text-foreground/90","children":["If you are prompted for a password, enter your Mac login password."]}]
18:["$","p","content-24",{"className":"my-4 max-w-[68ch] text-base leading-7 text-foreground/90","children":["Note: The terminal does not display any characters while you enter your password. This is normal. Press Enter when you have finished typing."]}]
19:["$","p","content-25",{"className":"my-4 max-w-[68ch] text-base leading-7 text-foreground/90","children":["Important:"]}]
1a:["$","p","content-26",{"className":"my-4 max-w-[68ch] text-base leading-7 text-foreground/90","children":["After Homebrew is installed, if Next steps appears in the terminal, first copy and run the commands it provides."]}]
1b:["$","p","content-27",{"className":"my-4 max-w-[68ch] text-base leading-7 text-foreground/90","children":["First, copy and run the first line:"]}]
1c:["$","pre","content-28",{"className":"my-5 overflow-x-auto rounded-md bg-slate-950 p-4 text-sm leading-6 text-slate-100","children":["$","code",null,{"children":"echo 'eval \"$(/opt/homebrew/bin/brew shellenv)\"' >> ~/.zprofile"}]}]
1d:["$","p","content-29",{"className":"my-4 max-w-[68ch] text-base leading-7 text-foreground/90","children":["When it finishes, copy and run the second line:"]}]
1e:["$","pre","content-30",{"className":"my-5 overflow-x-auto rounded-md bg-slate-950 p-4 text-sm leading-6 text-slate-100","children":["$","code",null,{"children":"eval \"$(/opt/homebrew/bin/brew shellenv)\""}]}]
1f:["$","p","content-31",{"className":"my-4 max-w-[68ch] text-base leading-7 text-foreground/90","children":["When it finishes, enter the following command to check:"]}]
20:["$","pre","content-32",{"className":"my-5 overflow-x-auto rounded-md bg-slate-950 p-4 text-sm leading-6 text-slate-100","children":["$","code",null,{"children":"brew -v"}]}]
21:["$","p","content-33",{"className":"my-4 max-w-[68ch] text-base leading-7 text-foreground/90","children":["If the Homebrew version number appears, Homebrew has been configured successfully and you can proceed to the next step."]}]
22:["$","p","content-34",{"className":"my-4 max-w-[68ch] text-base leading-7 text-foreground/90","children":["If you still see command not found: brew, close and reopen the terminal, then enter brew -v again to check."]}]
23:["$","hr","content-35",{"className":"my-8 border-border"}]
24:["$","ol","content-36",{"className":"my-4 list-decimal space-y-2 pl-6 text-base leading-7 text-foreground/90","start":4,"children":[["$","li","content-36-0",{"className":"pl-1","children":["Install Git and the Node.js environment."]}]]}]
25:["$","p","content-37",{"className":"my-4 max-w-[68ch] text-base leading-7 text-foreground/90","children":["After confirming that brew -v displays a version number correctly, copy and run the following command in the terminal:"]}]
26:["$","pre","content-38",{"className":"my-5 overflow-x-auto rounded-md bg-slate-950 p-4 text-sm leading-6 text-slate-100","children":["$","code",null,{"children":"brew install git node"}]}]
27:["$","p","content-39",{"className":"my-4 max-w-[68ch] text-base leading-7 text-foreground/90","children":["Wait for the installation to finish. Do not close the terminal."]}]
28:["$","hr","content-40",{"className":"my-8 border-border"}]
29:["$","ol","content-41",{"className":"my-4 list-decimal space-y-2 pl-6 text-base leading-7 text-foreground/90","start":5,"children":[["$","li","content-41-0",{"className":"pl-1","children":["Check whether the environment was installed successfully."]}]]}]
2a:["$","p","content-42",{"className":"my-4 max-w-[68ch] text-base leading-7 text-foreground/90","children":["After installation, enter the following commands one at a time:"]}]
2b:["$","pre","content-43",{"className":"my-5 overflow-x-auto rounded-md bg-slate-950 p-4 text-sm leading-6 text-slate-100","children":["$","code",null,{"children":"git --version"}]}]
2c:["$","pre","content-44",{"className":"my-5 overflow-x-auto rounded-md bg-slate-950 p-4 text-sm leading-6 text-slate-100","children":["$","code",null,{"children":"node -v"}]}]
2d:["$","pre","content-45",{"className":"my-5 overflow-x-auto rounded-md bg-slate-950 p-4 text-sm leading-6 text-slate-100","children":["$","code",null,{"children":"npm -v"}]}]
2e:["$","p","content-46",{"className":"my-4 max-w-[68ch] text-base leading-7 text-foreground/90","children":["If all three commands display version numbers, the basic environment has been installed successfully."]}]
2f:["$","p","content-47",{"className":"my-4 max-w-[68ch] text-base leading-7 text-foreground/90","children":["Note: If you see command ","not found,"," close and reopen the terminal, then enter the commands again to test."]}]
30:["$","hr","content-48",{"className":"my-8 border-border"}]
31:["$","h3","content-49",{"className":"mb-2 mt-9 scroll-mt-24 text-lg font-semibold leading-7 text-foreground","id":"section-2","children":["2. Install Claude Code"]}]
32:["$","ol","content-50",{"className":"my-4 list-decimal space-y-2 pl-6 text-base leading-7 text-foreground/90","children":[["$","li","content-50-0",{"className":"pl-1","children":["Copy and run the following command in the terminal:"]}]]}]
33:["$","pre","content-51",{"className":"my-5 overflow-x-auto rounded-md bg-slate-950 p-4 text-sm leading-6 text-slate-100","children":["$","code",null,{"children":"npm install -g @anthropic-ai/claude-code"}]}]
34:["$","p","content-52",{"className":"my-4 max-w-[68ch] text-base leading-7 text-foreground/90","children":["Installation may take 1-3 minutes. Please wait patiently and do not close the terminal."]}]
35:["$","hr","content-53",{"className":"my-8 border-border"}]
36:["$","ol","content-54",{"className":"my-4 list-decimal space-y-2 pl-6 text-base leading-7 text-foreground/90","start":2,"children":[["$","li","content-54-0",{"className":"pl-1","children":["After installation, enter the following command to check whether it was successful:"]}]]}]
37:["$","pre","content-55",{"className":"my-5 overflow-x-auto rounded-md bg-slate-950 p-4 text-sm leading-6 text-slate-100","children":["$","code",null,{"children":"claude --version"}]}]
38:["$","p","content-56",{"className":"my-4 max-w-[68ch] text-base leading-7 text-foreground/90","children":["If a version number appears, Claude Code has been installed successfully."]}]
39:["$","p","content-57",{"className":"my-4 max-w-[68ch] text-base leading-7 text-foreground/90","children":["Note: If you see claude: command not found, first close and reopen the terminal, then enter claude --version to test."]}]
3a:["$","h3","content-58",{"className":"mb-2 mt-9 scroll-mt-24 text-lg font-semibold leading-7 text-foreground","id":"section-3","children":["3. Configure CC Switch"]}]
3b:["$","p","content-59",{"className":"my-4 max-w-[68ch] text-base leading-7 text-foreground/90","children":["Mac installation package:"]}]
3c:["$","p","content-60",{"className":"my-4 max-w-[68ch] text-base leading-7 text-foreground/90","children":["Open CC Switch and go to the configuration page."]}]
3d:["$","p","content-61",{"className":"my-4 max-w-[68ch] text-base leading-7 text-foreground/90","children":[["$","a","content-61-0",{"className":"font-medium text-sky-700 underline decoration-sky-700/30 underline-offset-4 hover:text-sky-900","href":"https://www.yuque.com/attachments/yuque/0/2026/zip/70692954/1790090427151-7509d358-4d0f-4df5-995d-e1215a6efa73.zip","target":"_blank","rel":"noopener noreferrer","children":["CC-Switch-v3.14.0-macOS.zip"]}]]}]
3e:["$","ol","content-62",{"className":"my-4 list-decimal space-y-2 pl-6 text-base leading-7 text-foreground/90","children":[["$","li","content-62-0",{"className":"pl-1","children":["Download and install CC Switch, then open the application. On the home page, click the [+] add button in the upper-right corner to open the provider configuration page"]}]]}]
3f:["$","div","content-63",{"className":"space-y-6","children":[["$","figure","content-63-0",{"className":"my-8","children":[["$","div",null,{"className":"overflow-hidden rounded-sm border border-border bg-white","children":["$","$L59",null,{"src":"/tutorials/guides/5ef0ca44c9fef80c3215.webp","alt":"Claude Code setup screenshot","width":1498,"height":1050,"unoptimized":true,"sizes":"(max-width: 768px) 100vw, 760px","className":"h-auto w-full"}]}],["$","figcaption",null,{"className":"mt-2 text-xs leading-5 text-muted-foreground","children":"Claude Code setup screenshot"}]]}]]}]
40:["$","ol","content-64",{"className":"my-4 list-decimal space-y-2 pl-6 text-base leading-7 text-foreground/90","start":2,"children":[["$","li","content-64-0",{"className":"pl-1","children":["Follow the prompts on the page to enter the OpenOx configuration: enter Openox as the provider name; enter the key beginning with sk that you created earlier as the API Key; enter https://openox.tech as the request URL, without adding /v1 at the end. When finished, click [Save] in the lower-right corner"]}]]}]
41:["$","div","content-65",{"className":"space-y-6","children":[["$","figure","content-65-0",{"className":"my-8","children":[["$","div",null,{"className":"overflow-hidden rounded-sm border border-border bg-white","children":["$","$L59",null,{"src":"/tutorials/guides/8ff0a6108afe198252c8.webp","alt":"Claude Code setup screenshot","width":1626,"height":967,"unoptimized":true,"sizes":"(max-width: 768px) 100vw, 760px","className":"h-auto w-full"}]}],["$","figcaption",null,{"className":"mt-2 text-xs leading-5 text-muted-foreground","children":"Claude Code setup screenshot"}]]}]]}]
42:["$","ol","content-66",{"className":"my-4 list-decimal space-y-2 pl-6 text-base leading-7 text-foreground/90","start":3,"children":[["$","li","content-66-0",{"className":"pl-1","children":["After saving, return to the CC Switch home page, select the OpenOx configuration you just created, and make sure it is enabled. Once configuration is complete, open Claude Code to test it."]}],["$","li","content-66-1",{"className":"pl-1","children":["Test whether Claude Code works."]}]]}]
43:["$","p","content-67",{"className":"my-4 max-w-[68ch] text-base leading-7 text-foreground/90","children":["Close and reopen PowerShell, then enter:"]}]
44:["$","ul","content-68",{"className":"my-4 list-disc space-y-2 pl-6 text-base leading-7 text-foreground/90","children":[["$","li","content-68-0",{"className":"pl-1","children":[["$","strong","content-68-0-0",{"children":["Note:"]}],["$","strong","content-68-0-1",{"children":[" The 4."]}],["$","strong","content-68-0-2",{"children":["7 model c"]}],["$","strong","content-68-0-3",{"children":["onsumes"]}],["$","strong","content-68-0-4",{"children":[" more credits. When using it for the first time, you can enter /model and press Enter to switch to another model!"]}]]}],["$","li","content-68-1",{"className":"pl-1","children":[["$","strong","content-68-1-0",{"children":["Keep an ey"]}],["$","strong","content-68-1-1",{"children":["e on the "]}],["$","strong","content-68-1-2",{"children":["conversation length in each chat "]}],["$","strong","content-68-1-3",{"children":["window. Overly"]}],["$","strong","content-68-1-4",{"children":[" long conversations consume credits faster, slow down responses, and reduce output quality. When a conversation gets long, enter compact to compress the context, then copy the summary into a new window to continue."]}]]}]]}]
45:["$","pre","content-69",{"className":"my-5 overflow-x-auto rounded-md bg-slate-950 p-4 text-sm leading-6 text-slate-100","children":["$","code",null,{"children":"claude"}]}]
46:["$","p","content-70",{"className":"my-4 max-w-[68ch] text-base leading-7 text-foreground/90","children":["If you can access the Claude Code interface normally, the configuration is successful"]}]
47:["$","div","content-71",{"className":"space-y-6","children":[["$","figure","content-71-0",{"className":"my-8","children":[["$","div",null,{"className":"overflow-hidden rounded-sm border border-border bg-white","children":["$","$L59",null,{"src":"/tutorials/guides/a5e4b4108c4f89158fb6.webp","alt":"Claude Code setup screenshot","width":1722,"height":913,"unoptimized":true,"sizes":"(max-width: 768px) 100vw, 760px","className":"h-auto w-full"}]}],["$","figcaption",null,{"className":"mt-2 text-xs leading-5 text-muted-foreground","children":"Claude Code setup screenshot"}]]}]]}]
48:["$","div","content-72",{"className":"space-y-6","children":[["$","figure","content-72-0",{"className":"my-8","children":[["$","div",null,{"className":"overflow-hidden rounded-sm border border-border bg-white","children":["$","$L59",null,{"src":"/tutorials/guides/105ebdc398d62ad32a4b.webp","alt":"Claude Code setup screenshot","width":1714,"height":918,"unoptimized":true,"sizes":"(max-width: 768px) 100vw, 760px","className":"h-auto w-full"}]}],["$","figcaption",null,{"className":"mt-2 text-xs leading-5 text-muted-foreground","children":"Claude Code setup screenshot"}]]}]]}]
49:["$","p","content-73",{"className":"my-4 max-w-[68ch] text-base leading-7 text-foreground/90","children":["Notes:"]}]
4a:["$","p","content-74",{"className":"my-4 max-w-[68ch] text-base leading-7 text-foreground/90","children":["1. CC Switch is only a configuration management tool; it is not a model platform itself."]}]
4b:["$","p","content-75",{"className":"my-4 max-w-[68ch] text-base leading-7 text-foreground/90","children":["2. The API Key is the Token Key created earlier and usually begins with sk."]}]
4c:["$","p","content-76",{"className":"my-4 max-w-[68ch] text-base leading-7 text-foreground/90","children":["3. Once generated, a Key can be used long term. When your balance is low, you only need to top up. The original Key remains usable and does not need to be recreated or replaced."]}]
4d:["$","p","content-77",{"className":"my-4 max-w-[68ch] text-base leading-7 text-foreground/90","children":["4. If it does not work after configuration, check whether the API Key was copied in full, whether your balance is sufficient, and whether the Base URL is set to https://openox.tech/."]}]
4e:["$","p","content-78",{"className":"my-4 max-w-[68ch] text-base leading-7 text-foreground/90","children":[["$","strong","content-78-0",{"children":["Common Reasons for Configuration Failure"]}]]}]
4f:["$","ol","content-79",{"className":"my-4 list-decimal space-y-2 pl-6 text-base leading-7 text-foreground/90","children":[["$","li","content-79-0",{"className":"pl-1","children":[["$","strong","content-79-0-0",{"children":["The configuration file was not saved, so the configuration did not take effect. Usually, clicking Save and fully exiting the application, or switching networks and reopening it, resolves the issue."]}]]}],["$","li","content-79-1",{"className":"pl-1","children":[["$","strong","content-79-1-0",{"children":["If it still does not work after completing the first step, there is a local file conflict. Following the image below, go to the user/.Claude/ directory and find the corresponding Setting.json file. Clear the original configuration, paste in the configuration from the main text, replace the KEY, then save and exit for it to take effect. (Refer to the Windows image below; the same applies to Mac.)"]}]]}]]}]
50:["$","div","content-80",{"className":"space-y-6","children":[["$","figure","content-80-0",{"className":"my-8","children":[["$","div",null,{"className":"overflow-hidden rounded-sm border border-border bg-white","children":["$","$L59",null,{"src":"/tutorials/guides/d475cd9f530af13ed699.webp","alt":"Claude Code setup screenshot","width":1337,"height":1177,"unoptimized":true,"sizes":"(max-width: 768px) 100vw, 760px","className":"h-auto w-full"}]}],["$","figcaption",null,{"className":"mt-2 text-xs leading-5 text-muted-foreground","children":"Claude Code setup screenshot"}]]}]]}]
53:null
a:300
a:C
12:0
c:"$undefined"
e:"$undefined"
11:"$undefined"
9:"$undefined"
