[{"data":1,"prerenderedAt":615},["ShallowReactive",2],{"doc-\u002Fen\u002Fdocs\u002Fguides\u002Fterminal":3,"doc-surround-\u002Fen\u002Fdocs\u002Fguides\u002Fterminal":508,"doc-nav-en":517},{"id":4,"title":5,"body":6,"description":498,"extension":499,"meta":500,"navigation":501,"order":502,"path":503,"section":504,"seo":505,"stem":506,"__hash__":507},"docs_en\u002Fen\u002Fdocs\u002F02.guides\u002F11.terminal.md","Integrated Terminal",{"type":7,"value":8,"toc":493},"minimark",[9,13,26,30,51,55,58,148,165,169,180,424,427,472,489],[10,11,5],"h1",{"id":12},"integrated-terminal",[14,15,16,17,21,22,25],"p",{},"LingXizhi ships a PTY-based integrated terminal, with two lines of defense for AI-initiated commands: ",[18,19,20],"strong",{},"risk-tiered interception"," and ",[18,23,24],{},"sandbox isolation",".",[27,28,5],"h2",{"id":29},"integrated-terminal-1",[31,32,33,37,48],"ul",{},[34,35,36],"li",{},"Supports multiple sessions in parallel, each with its own working directory and window size.",[34,38,39,40,44,45,25],{},"Default shell: PowerShell on Windows; on macOS it reads the ",[41,42,43],"code",{},"$SHELL"," environment variable and falls back to ",[41,46,47],{},"\u002Fbin\u002Fbash",[34,49,50],{},"Command execution has timeout control — on timeout, the command is terminated automatically and the output produced so far is returned.",[27,52,54],{"id":53},"dangerous-command-interception","Dangerous-Command Interception",[14,56,57],{},"All commands (including those initiated by the AI) are classified into five risk levels:",[59,60,61,77],"table",{},[62,63,64],"thead",{},[65,66,67,71,74],"tr",{},[68,69,70],"th",{},"Risk level",[68,72,73],{},"Examples",[68,75,76],{},"Handling",[78,79,80,95,106,120,134],"tbody",{},[65,81,82,86,92],{},[83,84,85],"td",{},"Safe",[83,87,88,89],{},"Reading files, ",[41,90,91],{},"git status",[83,93,94],{},"Allowed automatically",[65,96,97,100,103],{},[83,98,99],{},"Low",[83,101,102],{},"Listing, searching",[83,104,105],{},"Allowed automatically and logged",[65,107,108,111,117],{},[83,109,110],{},"Medium",[83,112,113,114],{},"Writing files, ",[41,115,116],{},"git add",[83,118,119],{},"Allowed by default; configurable",[65,121,122,125,131],{},[83,123,124],{},"High",[83,126,127,128],{},"Executing commands, ",[41,129,130],{},"git push",[83,132,133],{},"Requires user confirmation",[65,135,136,139,145],{},[83,137,138],{},"Critical",[83,140,141,142],{},"Deleting directories, ",[41,143,144],{},"rm -rf",[83,146,147],{},"Mandatory manual approval",[14,149,150,151,154,155,154,158,154,161,164],{},"Command strings also pass shell metacharacter filtering, blocking injection risks from ",[41,152,153],{},";"," ",[41,156,157],{},"|",[41,159,160],{},"&",[41,162,163],{},"$"," and similar characters.",[27,166,168],{"id":167},"sandbox-execution","Sandbox Execution",[14,170,171,172,175,176,179],{},"Enable and configure the sandbox in the ",[41,173,174],{},"sandbox"," section of ",[41,177,178],{},"lxz.config.json",":",[181,182,183,342],"code-group",{},[184,185,191],"pre",{"className":186,"code":187,"filename":188,"language":189,"meta":190,"style":190},"language-json shiki shiki-themes tokyo-night","{\n  \"sandbox\": {\n    \"enabled\": true,\n    \"type\": \"process\",\n    \"max_memory_mb\": 512,\n    \"max_cpu_percent\": 80,\n    \"timeout_sec\": 300,\n    \"network_enabled\": false\n  }\n}\n","Process sandbox","json","",[41,192,193,202,220,241,264,281,298,315,330,336],{"__ignoreMap":190},[194,195,198],"span",{"class":196,"line":197},"line",1,[194,199,201],{"class":200},"sgJMe","{\n",[194,203,205,209,212,215,217],{"class":196,"line":204},2,[194,206,208],{"class":207},"sAklC","  \"",[194,210,174],{"class":211},"s3R4Z",[194,213,214],{"class":207},"\"",[194,216,179],{"class":207},[194,218,219],{"class":200}," {\n",[194,221,223,226,230,232,234,238],{"class":196,"line":222},3,[194,224,225],{"class":207},"    \"",[194,227,229],{"class":228},"sySf4","enabled",[194,231,214],{"class":207},[194,233,179],{"class":207},[194,235,237],{"class":236},"sOJ5S"," true",[194,239,240],{"class":207},",\n",[194,242,244,246,249,251,253,256,260,262],{"class":196,"line":243},4,[194,245,225],{"class":207},[194,247,248],{"class":228},"type",[194,250,214],{"class":207},[194,252,179],{"class":207},[194,254,255],{"class":207}," \"",[194,257,259],{"class":258},"sPY7s","process",[194,261,214],{"class":207},[194,263,240],{"class":207},[194,265,267,269,272,274,276,279],{"class":196,"line":266},5,[194,268,225],{"class":207},[194,270,271],{"class":228},"max_memory_mb",[194,273,214],{"class":207},[194,275,179],{"class":207},[194,277,278],{"class":236}," 512",[194,280,240],{"class":207},[194,282,284,286,289,291,293,296],{"class":196,"line":283},6,[194,285,225],{"class":207},[194,287,288],{"class":228},"max_cpu_percent",[194,290,214],{"class":207},[194,292,179],{"class":207},[194,294,295],{"class":236}," 80",[194,297,240],{"class":207},[194,299,301,303,306,308,310,313],{"class":196,"line":300},7,[194,302,225],{"class":207},[194,304,305],{"class":228},"timeout_sec",[194,307,214],{"class":207},[194,309,179],{"class":207},[194,311,312],{"class":236}," 300",[194,314,240],{"class":207},[194,316,318,320,323,325,327],{"class":196,"line":317},8,[194,319,225],{"class":207},[194,321,322],{"class":228},"network_enabled",[194,324,214],{"class":207},[194,326,179],{"class":207},[194,328,329],{"class":236}," false\n",[194,331,333],{"class":196,"line":332},9,[194,334,335],{"class":200},"  }\n",[194,337,339],{"class":196,"line":338},10,[194,340,341],{"class":200},"}\n",[184,343,346],{"className":186,"code":344,"filename":345,"language":189,"meta":190,"style":190},"{\n  \"sandbox\": {\n    \"enabled\": true,\n    \"type\": \"docker\",\n    \"docker_image\": \"lingxizhi\u002Fsandbox:latest\"\n  }\n}\n","Docker sandbox",[41,347,348,352,364,378,397,416,420],{"__ignoreMap":190},[194,349,350],{"class":196,"line":197},[194,351,201],{"class":200},[194,353,354,356,358,360,362],{"class":196,"line":204},[194,355,208],{"class":207},[194,357,174],{"class":211},[194,359,214],{"class":207},[194,361,179],{"class":207},[194,363,219],{"class":200},[194,365,366,368,370,372,374,376],{"class":196,"line":222},[194,367,225],{"class":207},[194,369,229],{"class":228},[194,371,214],{"class":207},[194,373,179],{"class":207},[194,375,237],{"class":236},[194,377,240],{"class":207},[194,379,380,382,384,386,388,390,393,395],{"class":196,"line":243},[194,381,225],{"class":207},[194,383,248],{"class":228},[194,385,214],{"class":207},[194,387,179],{"class":207},[194,389,255],{"class":207},[194,391,392],{"class":258},"docker",[194,394,214],{"class":207},[194,396,240],{"class":207},[194,398,399,401,404,406,408,410,413],{"class":196,"line":266},[194,400,225],{"class":207},[194,402,403],{"class":228},"docker_image",[194,405,214],{"class":207},[194,407,179],{"class":207},[194,409,255],{"class":207},[194,411,412],{"class":258},"lingxizhi\u002Fsandbox:latest",[194,414,415],{"class":207},"\"\n",[194,417,418],{"class":196,"line":283},[194,419,335],{"class":200},[194,421,422],{"class":196,"line":300},[194,423,341],{"class":200},[14,425,426],{},"Three isolation modes:",[31,428,429,453,466],{},[34,430,431,434,435,438,439,438,442,438,445,448,449,452],{},[18,432,433],{},"Process",": process-level isolation. Uses seccomp + namespaces + rlimits on Linux, and Job Objects on Windows; supports command allowlists\u002Fblocklists and a network access allowlist (network-requiring commands such as ",[41,436,437],{},"curl",", ",[41,440,441],{},"git",[41,443,444],{},"npm",[41,446,447],{},"pip",", and ",[41,450,451],{},"cargo"," are allowed by default).",[34,454,455,458,459,21,462,465],{},[18,456,457],{},"Docker",": container-level isolation, with ",[41,460,461],{},"cap-drop ALL",[41,463,464],{},"no-new-privileges"," security hardening enabled by default.",[34,467,468,471],{},[18,469,470],{},"Cloud",": submits tasks to a cloud sandbox for execution, using zero local resources.",[473,474,476],"callout",{"type":475},"warn",[14,477,478,479,482,483,485,486,25],{},"The sandbox is disabled by default (",[41,480,481],{},"enabled: false","). When handling untrusted code or letting the AI execute commands freely, it is recommended to enable the sandbox and keep ",[41,484,322],{}," set to ",[41,487,488],{},"false",[490,491,492],"style",{},"html pre.shiki code .sgJMe, html code.shiki .sgJMe{--shiki-default:#9ABDF5}html pre.shiki code .sAklC, html code.shiki .sAklC{--shiki-default:#89DDFF}html pre.shiki code .s3R4Z, html code.shiki .s3R4Z{--shiki-default:#7AA2F7}html pre.shiki code .sySf4, html code.shiki .sySf4{--shiki-default:#0DB9D7}html pre.shiki code .sOJ5S, html code.shiki .sOJ5S{--shiki-default:#FF9E64}html pre.shiki code .sPY7s, html code.shiki .sPY7s{--shiki-default:#9ECE6A}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}",{"title":190,"searchDepth":204,"depth":204,"links":494},[495,496,497],{"id":29,"depth":204,"text":5},{"id":53,"depth":204,"text":54},{"id":167,"depth":204,"text":168},"Multi-session PTY integrated terminal with built-in five-level dangerous-command interception and process\u002FDocker\u002Fcloud sandboxing","md",{},true,11,"\u002Fen\u002Fdocs\u002Fguides\u002Fterminal","Feature Guides",{"title":5,"description":498},"en\u002Fdocs\u002F02.guides\u002F11.terminal","8bUoaQxEwxZ7_caHmuFtjp5vhQKH2mtkpzkG4XrHodE",[509,513],{"title":510,"path":511,"stem":512,"children":-1},"Debugging & DAP","\u002Fen\u002Fdocs\u002Fguides\u002Fdebugging","en\u002Fdocs\u002F02.guides\u002F10.debugging",{"title":514,"path":515,"stem":516,"children":-1},"Models","\u002Fen\u002Fdocs\u002Fmodels-billing\u002Fmodels","en\u002Fdocs\u002F03.models-billing\u002F12.models",[518],{"title":519,"path":520,"stem":521,"children":522,"page":549},"En","\u002Fen","en",[523],{"title":524,"path":525,"stem":526,"children":527,"page":549},"Docs","\u002Fen\u002Fdocs","en\u002Fdocs",[528,550,576,590],{"title":529,"path":530,"stem":531,"children":532,"page":549},"Getting Started","\u002Fen\u002Fdocs\u002Fgetting-started","en\u002Fdocs\u002F01.getting-started",[533,537,541,545],{"title":534,"path":535,"stem":536},"Installation & Download","\u002Fen\u002Fdocs\u002Fgetting-started\u002Finstallation","en\u002Fdocs\u002F01.getting-started\u002F01.installation",{"title":538,"path":539,"stem":540},"Register & Sign In","\u002Fen\u002Fdocs\u002Fgetting-started\u002Fregister-login","en\u002Fdocs\u002F01.getting-started\u002F02.register-login",{"title":542,"path":543,"stem":544},"First-Time Setup","\u002Fen\u002Fdocs\u002Fgetting-started\u002Ffirst-setup","en\u002Fdocs\u002F01.getting-started\u002F03.first-setup",{"title":546,"path":547,"stem":548},"Migrate from VS Code","\u002Fen\u002Fdocs\u002Fgetting-started\u002Fmigrate-from-vscode","en\u002Fdocs\u002F01.getting-started\u002F04.migrate-from-vscode",false,{"title":504,"path":551,"stem":552,"children":553,"page":549},"\u002Fen\u002Fdocs\u002Fguides","en\u002Fdocs\u002F02.guides",[554,558,562,566,570,574,575],{"title":555,"path":556,"stem":557},"AI Chat & Inline Edit","\u002Fen\u002Fdocs\u002Fguides\u002Fai-chat","en\u002Fdocs\u002F02.guides\u002F05.ai-chat",{"title":559,"path":560,"stem":561},"RUSH Deep Task","\u002Fen\u002Fdocs\u002Fguides\u002Frush","en\u002Fdocs\u002F02.guides\u002F06.rush",{"title":563,"path":564,"stem":565},"FIM Code Completion","\u002Fen\u002Fdocs\u002Fguides\u002Ffim-completion","en\u002Fdocs\u002F02.guides\u002F07.fim-completion",{"title":567,"path":568,"stem":569},"Semantic Code Graph","\u002Fen\u002Fdocs\u002Fguides\u002Fcode-graph","en\u002Fdocs\u002F02.guides\u002F08.code-graph",{"title":571,"path":572,"stem":573},"MCP Tools & Marketplace","\u002Fen\u002Fdocs\u002Fguides\u002Fmcp","en\u002Fdocs\u002F02.guides\u002F09.mcp",{"title":510,"path":511,"stem":512},{"title":5,"path":503,"stem":506},{"title":577,"path":578,"stem":579,"children":580,"page":549},"Models & Billing","\u002Fen\u002Fdocs\u002Fmodels-billing","en\u002Fdocs\u002F03.models-billing",[581,582,586],{"title":514,"path":515,"stem":516},{"title":583,"path":584,"stem":585},"Plans & Credits","\u002Fen\u002Fdocs\u002Fmodels-billing\u002Fplans-quota","en\u002Fdocs\u002F03.models-billing\u002F13.plans-quota",{"title":587,"path":588,"stem":589},"BYOK (Bring Your Own Key)","\u002Fen\u002Fdocs\u002Fmodels-billing\u002Fbyok","en\u002Fdocs\u002F03.models-billing\u002F14.byok",{"title":591,"path":592,"stem":593,"children":594,"page":549},"Reference & FAQ","\u002Fen\u002Fdocs\u002Freference","en\u002Fdocs\u002F04.reference",[595,599,603,607,611],{"title":596,"path":597,"stem":598},"Keyboard Shortcuts","\u002Fen\u002Fdocs\u002Freference\u002Fshortcuts","en\u002Fdocs\u002F04.reference\u002F15.shortcuts",{"title":600,"path":601,"stem":602},"Configuration","\u002Fen\u002Fdocs\u002Freference\u002Fconfiguration","en\u002Fdocs\u002F04.reference\u002F16.configuration",{"title":604,"path":605,"stem":606},"Kernel API","\u002Fen\u002Fdocs\u002Freference\u002Fkernel-api","en\u002Fdocs\u002F04.reference\u002F17.kernel-api",{"title":608,"path":609,"stem":610},"FAQ","\u002Fen\u002Fdocs\u002Freference\u002Ffaq","en\u002Fdocs\u002F04.reference\u002F18.faq",{"title":612,"path":613,"stem":614},"Cloud REST API","\u002Fen\u002Fdocs\u002Freference\u002Fcloud-api","en\u002Fdocs\u002F04.reference\u002F19.cloud-api",1788542300514]