[{"data":1,"prerenderedAt":1022},["ShallowReactive",2],{"navigation_docs_en":3,"-en-ai-ai-security":190,"-en-ai-ai-security-surround":1017},[4,19,79,93,103,177],{"title":5,"icon":6,"path":7,"stem":8,"children":9,"page":18},"Getting Started","i-lucide-rocket","/en/getting-started","en/1.getting-started",[10,14],{"title":11,"path":12,"stem":13},"What is OpenCloud?","/en/getting-started/what-is-opencloud","en/1.getting-started/1.what-is-opencloud",{"title":15,"path":16,"stem":17},"Quick Start","/en/getting-started/quick-start","en/1.getting-started/2.quick-start",false,{"title":20,"icon":21,"path":22,"stem":23,"children":24,"page":18},"Guides","i-lucide-compass","/en/guides","en/2.guides",[25,43,65],{"title":26,"icon":27,"path":28,"stem":29,"children":30,"page":18},"N8N","i-custom-n8n","/en/guides/n8n","en/2.guides/1.n8n",[31,35,39],{"title":32,"path":33,"stem":34},"n8n Overview","/en/guides/n8n/overview","en/2.guides/1.n8n/1.overview",{"title":36,"path":37,"stem":38},"n8n Installation","/en/guides/n8n/installation","en/2.guides/1.n8n/2.installation",{"title":40,"path":41,"stem":42},"n8n Configuration","/en/guides/n8n/configuration","en/2.guides/1.n8n/3.configuration",{"title":44,"icon":45,"path":46,"stem":47,"children":48,"page":18},"OpenClaw","i-custom-openclaw","/en/guides/openclaw","en/2.guides/2.openclaw",[49,53,57,61],{"title":50,"path":51,"stem":52},"OpenClaw Overview","/en/guides/openclaw/overview","en/2.guides/2.openclaw/1.overview",{"title":54,"path":55,"stem":56},"OpenClaw Installation","/en/guides/openclaw/installation","en/2.guides/2.openclaw/2.installation",{"title":58,"path":59,"stem":60},"Connect OpenClaw to 9Router","/en/guides/openclaw/hook-9router","en/2.guides/2.openclaw/3.hook-9router",{"title":62,"path":63,"stem":64},"Connect OpenClaw to AI GuardRails","/en/guides/openclaw/hook-litellm","en/2.guides/2.openclaw/4.hook-litellm",{"title":66,"icon":67,"path":68,"stem":69,"children":70,"page":18},"CoPaw","i-lucide-bot","/en/guides/copaw","en/2.guides/3.copaw",[71,75],{"title":72,"path":73,"stem":74},"CoPaw Overview","/en/guides/copaw/overview","en/2.guides/3.copaw/1.overview",{"title":76,"path":77,"stem":78},"CoPaw Installation","/en/guides/copaw/installation","en/2.guides/3.copaw/2.installation",{"title":80,"icon":81,"path":82,"stem":83,"children":84,"page":18},"AI","i-lucide-sparkles","/en/ai","en/3.ai",[85,89],{"title":86,"path":87,"stem":88},"AI Connections (9Router)","/en/ai/ai-connections","en/3.ai/2.ai-connections",{"title":90,"path":91,"stem":92},"AI Security","/en/ai/ai-security","en/3.ai/3.ai-security",{"title":94,"icon":95,"path":96,"stem":97,"children":98,"page":18},"Concepts","i-lucide-lightbulb","/en/concepts","en/4.concepts",[99],{"title":100,"path":101,"stem":102},"Key Concepts","/en/concepts/key-concepts","en/4.concepts/1.key-concepts",{"title":104,"icon":105,"path":106,"stem":107,"children":108,"page":18},"Essentials","i-lucide-book-open","/en/essentials","en/5.essentials",[109,123,127,149,159,163],{"title":110,"icon":111,"path":112,"stem":113,"children":114,"page":18},"Project","i-lucide-folder","/en/essentials/project","en/5.essentials/1.project",[115,119],{"title":116,"path":117,"stem":118},"Application","/en/essentials/project/application","en/5.essentials/1.project/1.application",{"title":120,"path":121,"stem":122},"Resource","/en/essentials/project/resource","en/5.essentials/1.project/2.resource",{"title":124,"path":125,"stem":126},"Environment Variables","/en/essentials/environment-variables","en/5.essentials/2.environment-variables",{"title":128,"icon":129,"path":130,"stem":131,"children":132,"page":18},"Billing","i-lucide-credit-card","/en/essentials/billing","en/5.essentials/3.billing",[133,137,141,145],{"title":134,"path":135,"stem":136},"Credits & Pricing","/en/essentials/billing/credits-and-pricing","en/5.essentials/3.billing/1.credits-and-pricing",{"title":138,"path":139,"stem":140},"Plans","/en/essentials/billing/plans","en/5.essentials/3.billing/2.plans",{"title":142,"path":143,"stem":144},"Vouchers","/en/essentials/billing/vouchers","en/5.essentials/3.billing/3.vouchers",{"title":146,"path":147,"stem":148},"Billing Alerts","/en/essentials/billing/alerts","en/5.essentials/3.billing/4.alerts",{"title":150,"icon":151,"path":152,"stem":153,"children":154,"page":18},"Settings","i-lucide-settings","/en/essentials/settings","en/5.essentials/4.settings",[155],{"title":156,"path":157,"stem":158},"Profile & Settings","/en/essentials/settings/profile","en/5.essentials/4.settings/1.profile",{"title":160,"path":161,"stem":162},"Activity Log","/en/essentials/activity","en/5.essentials/5.activity",{"title":164,"icon":165,"path":166,"stem":167,"children":168,"page":18},"Support & Help","i-lucide-life-buoy","/en/essentials/support","en/5.essentials/6.support",[169,173],{"title":170,"path":171,"stem":172},"Submit a Support Ticket","/en/essentials/support/submit-ticket","en/5.essentials/6.support/1.submit-ticket",{"title":174,"path":175,"stem":176},"FAQ","/en/essentials/support/faq","en/5.essentials/6.support/2.faq",{"title":178,"icon":179,"path":180,"stem":181,"children":182,"page":18},"Referral Program","i-lucide-gift","/en/referral-program","en/6.referral-program",[183,186],{"title":178,"path":184,"stem":185},"/en/referral-program/for-users","en/6.referral-program/1.for-users",{"title":187,"path":188,"stem":189},"Ambassador Program","/en/referral-program/for-ambassadors","en/6.referral-program/2.for-ambassadors",{"id":191,"title":90,"body":192,"description":1010,"extension":1011,"links":1012,"meta":1013,"navigation":1014,"path":91,"seo":1015,"stem":92,"__hash__":1016},"docs_en/en/3.ai/3.ai-security.md",{"type":193,"value":194,"toc":988},"minimark",[195,199,207,218,230,241,251,256,259,281,285,395,399,402,426,430,435,446,449,460,464,475,479,546,550,554,624,628,631,671,675,678,723,727,730,793,800,804,868,872,935,939],[196,197,90],"h1",{"id":198},"ai-security",[200,201,202,203,206],"p",{},"The ",[204,205,90],"strong",{}," page lets you configure security policies and access controls for your AI deployments. This helps you protect your AI API keys, control costs, and ensure safe usage of AI models.",[208,209,210,213,214,217],"tip",{},[204,211,212],{},"For step-by-step integration with OpenClaw",", see ",[215,216,62],"a",{"href":63},".",[200,219,220,221,229],{},"OpenCloud uses ",[204,222,223],{},[215,224,228],{"href":225,"rel":226},"https://docs.litellm.ai/",[227],"nofollow","LiteLLM"," as the engine behind AI Security. LiteLLM is an open-source AI security middleware that acts as a protective gateway between your applications and AI models, providing a unified API to access 100+ AI models while adding safety guardrails.",[231,232,237],"pre",{"className":233,"code":235,"language":236},[234],"language-text","Your Apps → AI Security (LiteLLM) → OpenAI, Anthropic, Google, etc.\n","text",[238,239,235],"code",{"__ignoreMap":240},"",[208,242,243,246,247,217],{},[204,244,245],{},"Official documentation:"," For advanced configuration and full feature reference, see the ",[215,248,250],{"href":225,"rel":249},[227],"LiteLLM Documentation",[252,253,255],"h2",{"id":254},"why-ai-security-matters","Why AI Security matters",[200,257,258],{},"When using AI services:",[260,261,262,269,275],"ul",{},[263,264,265,268],"li",{},[204,266,267],{},"API keys are valuable"," — If stolen, someone could run up charges on your AI provider account",[263,270,271,274],{},[204,272,273],{},"Costs can escalate quickly"," — Without limits, a single runaway application can consume thousands of dollars in AI credits",[263,276,277,280],{},[204,278,279],{},"Safety matters"," — You may want to restrict which AI models can be used and what they can be asked to do",[252,282,284],{"id":283},"key-features","Key features",[286,287,288,301],"table",{},[289,290,291],"thead",{},[292,293,294,298],"tr",{},[295,296,297],"th",{},"Feature",[295,299,300],{},"Description",[302,303,304,315,325,335,345,355,365,375,385],"tbody",{},[292,305,306,312],{},[307,308,309],"td",{},[204,310,311],{},"Unified API",[307,313,314],{},"One API endpoint to access 100+ AI models from any provider",[292,316,317,322],{},[307,318,319],{},[204,320,321],{},"Secret detection",[307,323,324],{},"Automatically detects and hides API keys, passwords, and tokens in prompts",[292,326,327,332],{},[307,328,329],{},[204,330,331],{},"Banned keywords",[307,333,334],{},"Blocks requests containing dangerous keywords (hack, exploit, jailbreak)",[292,336,337,342],{},[307,338,339],{},[204,340,341],{},"Content moderation",[307,343,344],{},"Filters violent, harmful, or inappropriate content",[292,346,347,352],{},[307,348,349],{},[204,350,351],{},"Prompt injection detection",[307,353,354],{},"Detects and blocks jailbreak attempts",[292,356,357,362],{},[307,358,359],{},[204,360,361],{},"Rate limiting",[307,363,364],{},"Control how many AI requests each app can make",[292,366,367,372],{},[307,368,369],{},[204,370,371],{},"Model routing",[307,373,374],{},"Route different requests to different AI models",[292,376,377,382],{},[307,378,379],{},[204,380,381],{},"Master key auth",[307,383,384],{},"Single master key for API authentication",[292,386,387,392],{},[307,388,389],{},[204,390,391],{},"Retry logic",[307,393,394],{},"Automatically retries failed requests (up to 3 times)",[252,396,398],{"id":397},"built-in-guardrails","Built-in guardrails",[200,400,401],{},"AI Security comes pre-configured with four security guardrails:",[403,404,405,411,416,421],"card-group",{},[406,407,410],"card",{"icon":408,"title":409},"i-lucide-key","Secret Detection","Scans outgoing prompts for API keys, passwords, and tokens. Automatically hides them before sending to the AI model.",[406,412,415],{"icon":413,"title":414},"i-lucide-ban","Banned Keywords","Blocks requests containing dangerous keywords like \"hack\", \"exploit\", \"jailbreak\", and others.",[406,417,420],{"icon":418,"title":419},"i-lucide-shield-check","Content Moderation","Filters violent, harmful, or inappropriate content using heuristic analysis.",[406,422,425],{"icon":423,"title":424},"i-lucide-shield-alert","Prompt Injection Detection","Detects patterns commonly used to bypass AI safety measures and blocks them.",[252,427,429],{"id":428},"security-features","Security features",[431,432,434],"h3",{"id":433},"access-control","Access control",[260,436,437,440,443],{},[263,438,439],{},"Control which applications can access AI services",[263,441,442],{},"Set permissions per user or per application",[263,444,445],{},"Restrict access to specific AI models",[431,447,361],{"id":448},"rate-limiting",[260,450,451,454,457],{},[263,452,453],{},"Set limits on how many AI requests can be made per minute/hour/day",[263,455,456],{},"Prevent runaway costs from misbehaving applications",[263,458,459],{},"Fair usage across multiple applications",[431,461,463],{"id":462},"monitoring","Monitoring",[260,465,466,469,472],{},[263,467,468],{},"Track AI API usage across all your applications",[263,470,471],{},"See which applications are making the most AI requests",[263,473,474],{},"Monitor costs in real-time",[252,476,478],{"id":477},"requirements-on-opencloud","Requirements on OpenCloud",[286,480,481,491],{},[289,482,483],{},[292,484,485,488],{},[295,486,487],{},"Requirement",[295,489,490],{},"Details",[302,492,493,503,513,523,533],{},[292,494,495,500],{},[307,496,497],{},[204,498,499],{},"Type",[307,501,502],{},"Addon (system service)",[292,504,505,510],{},[307,506,507],{},[204,508,509],{},"Database",[307,511,512],{},"None required",[292,514,515,520],{},[307,516,517],{},[204,518,519],{},"Plan",[307,521,522],{},"Fixed addon plan (1 CPU, 2 GB RAM, ~$1/month)",[292,524,525,530],{},[307,526,527],{},[204,528,529],{},"Default port",[307,531,532],{},"4000",[292,534,535,540],{},[307,536,537],{},[204,538,539],{},"Network alias",[307,541,542,545],{},[238,543,544],{},"litellm.proxy"," (used by other apps to discover AI Security)",[252,547,549],{"id":548},"installation","Installation",[431,551,553],{"id":552},"step-by-step-deployment","Step-by-step deployment",[555,556,557],"steps",{},[558,559,560,596,615],"ol",{},[263,561,562,565],{},[204,563,564],{},"Deploy AI Security (LiteLLM)",[260,566,567,578,584,587,590],{},[263,568,569,570,573,574,577],{},"Go to ",[204,571,572],{},"Applications"," > ",[204,575,576],{},"Create Application"," (or the Addons section)",[263,579,580,581],{},"Select ",[204,582,583],{},"LiteLLM (AI GuardRails)",[263,585,586],{},"The plan is fixed: 1 CPU, 2 GB RAM, 5 GB storage (~$1/month)",[263,588,589],{},"Select your project",[263,591,592,593],{},"Click ",[204,594,595],{},"Deploy",[263,597,598,601],{},[204,599,600],{},"Get your master key",[260,602,603,608],{},[263,604,605,606],{},"Go to your LiteLLM application > ",[204,607,124],{},[263,609,610,611,614],{},"Find ",[238,612,613],{},"LITELLM_MASTER_KEY"," — this is the API key your apps use to connect",[263,616,617,620,623],{},[204,618,619],{},"Access the admin dashboard",[621,622],"br",{},"Open the LiteLLM link to access the admin dashboard.",[431,625,627],{"id":626},"connecting-your-apps","Connecting your apps",[200,629,630],{},"Other applications in your project can connect to AI Security using its internal network alias:",[286,632,633,643],{},[289,634,635],{},[292,636,637,640],{},[295,638,639],{},"Setting",[295,641,642],{},"Value",[302,644,645,658],{},[292,646,647,652],{},[307,648,649],{},[204,650,651],{},"API Base URL",[307,653,654,657],{},[238,655,656],{},"http://litellm.proxy:4000/v1"," (internal) or your LiteLLM's public URL",[292,659,660,665],{},[307,661,662],{},[204,663,664],{},"API Key",[307,666,667,668,670],{},"Your ",[238,669,613],{}," value",[431,672,674],{"id":673},"adding-ai-models","Adding AI models",[200,676,677],{},"Configure which AI models are available:",[555,679,680],{},[558,681,682,685,694,720],{},[263,683,684],{},"Open the admin dashboard",[263,686,569,687,690,691],{},[204,688,689],{},"Models"," or ",[204,692,693],{},"Model List",[263,695,696,697],{},"Add a model:\n",[260,698,699,709,715],{},[263,700,701,704,705,708],{},[204,702,703],{},"Model name"," — The name your apps will use (e.g., ",[238,706,707],{},"gpt-4o",")",[263,710,711,714],{},[204,712,713],{},"Provider"," — The AI provider (openai, anthropic, google, etc.)",[263,716,717,719],{},[204,718,664],{}," — Your provider's API key",[263,721,722],{},"Save the configuration",[431,724,726],{"id":725},"guardrails-configuration","Guardrails configuration",[200,728,729],{},"The four guardrails are active by default:",[286,731,732,745],{},[289,733,734],{},[292,735,736,739,742],{},[295,737,738],{},"Guardrail",[295,740,741],{},"Mode",[295,743,744],{},"What it does",[302,746,747,759,770,781],{},[292,748,749,753,756],{},[307,750,751],{},[204,752,409],{},[307,754,755],{},"Pre-call",[307,757,758],{},"Hides API keys and passwords before sending to AI",[292,760,761,765,767],{},[307,762,763],{},[204,764,414],{},[307,766,755],{},[307,768,769],{},"Blocks dangerous keywords",[292,771,772,776,778],{},[307,773,774],{},[204,775,419],{},[307,777,755],{},[307,779,780],{},"Filters harmful content",[292,782,783,788,790],{},[307,784,785],{},[204,786,787],{},"Prompt Injection",[307,789,755],{},[307,791,792],{},"Blocks jailbreak attempts",[200,794,795,796,799],{},"To customize guardrails, update the ",[238,797,798],{},"LITELLM_GUARDRAILS"," environment variable or modify the configuration through the admin dashboard.",[252,801,803],{"id":802},"configuration","Configuration",[286,805,806,817],{},[289,807,808],{},[292,809,810,812,815],{},[295,811,639],{},[295,813,814],{},"Default",[295,816,300],{},[302,818,819,831,846,857],{},[292,820,821,825,828],{},[307,822,823],{},[238,824,613],{},[307,826,827],{},"Auto-generated",[307,829,830],{},"Master API key for authentication",[292,832,833,837,843],{},[307,834,835],{},[238,836,798],{},[307,838,839,842],{},[238,840,841],{},"[]"," (uses config file defaults)",[307,844,845],{},"Custom guardrail configuration",[292,847,848,851,854],{},[307,849,850],{},"Request timeout",[307,852,853],{},"120 seconds",[307,855,856],{},"Maximum time for AI requests",[292,858,859,862,865],{},[307,860,861],{},"Retries",[307,863,864],{},"3",[307,866,867],{},"Number of automatic retries on failure",[252,869,871],{"id":870},"how-other-opencloud-apps-use-ai-security","How other OpenCloud apps use AI Security",[286,873,874,886],{},[289,875,876],{},[292,877,878,880,883],{},[295,879,116],{},[295,881,882],{},"Automatic?",[295,884,885],{},"How it connects",[302,887,888,900,919],{},[292,889,890,894,897],{},[307,891,892],{},[204,893,66],{},[307,895,896],{},"Yes",[307,898,899],{},"Auto-configured as default LLM provider",[292,901,902,906,909],{},[307,903,904],{},[204,905,44],{},[307,907,908],{},"Manual",[307,910,911,912,915,916,708],{},"Set model prefix to ",[238,913,914],{},"litellm/"," (see ",[215,917,918],{"href":63},"integration guide",[292,920,921,926,928],{},[307,922,923],{},[204,924,925],{},"n8n",[307,927,908],{},[307,929,930,931,934],{},"Set ",[238,932,933],{},"OPENAI_API_BASE"," to LiteLLM URL in workflow credentials",[252,936,938],{"id":937},"troubleshooting","Troubleshooting",[286,940,941,951],{},[289,942,943],{},[292,944,945,948],{},[295,946,947],{},"Problem",[295,949,950],{},"Solution",[302,952,953,964,972,980],{},[292,954,955,958],{},[307,956,957],{},"Apps can't connect",[307,959,960,961,963],{},"Check the ",[238,962,613],{}," matches in both apps",[292,965,966,969],{},[307,967,968],{},"AI requests fail",[307,970,971],{},"Verify your AI provider API keys in the config",[292,973,974,977],{},[307,975,976],{},"Guardrails blocking valid requests",[307,978,979],{},"Customize guardrail settings to reduce false positives",[292,981,982,985],{},[307,983,984],{},"High latency",[307,986,987],{},"AI Security adds minimal overhead; check the underlying AI provider",{"title":240,"searchDepth":989,"depth":989,"links":990},2,[991,992,993,994,1000,1001,1007,1008,1009],{"id":254,"depth":989,"text":255},{"id":283,"depth":989,"text":284},{"id":397,"depth":989,"text":398},{"id":428,"depth":989,"text":429,"children":995},[996,998,999],{"id":433,"depth":997,"text":434},3,{"id":448,"depth":997,"text":361},{"id":462,"depth":997,"text":463},{"id":477,"depth":989,"text":478},{"id":548,"depth":989,"text":549,"children":1002},[1003,1004,1005,1006],{"id":552,"depth":997,"text":553},{"id":626,"depth":997,"text":627},{"id":673,"depth":997,"text":674},{"id":725,"depth":997,"text":726},{"id":802,"depth":989,"text":803},{"id":870,"depth":989,"text":871},{"id":937,"depth":989,"text":938},"Configure security policies, guardrails, and access controls for your AI deployments on OpenCloud.","md",null,{},true,{"title":90,"description":1010},"L2FHSoaYKTzkek2g9WZZZD3YDrhcfbMrJWHsDGnR7mc",[1018,1020],{"title":86,"path":87,"stem":88,"description":1019,"children":-1},"Manage your AI service connections and integrations on OpenCloud using 9Router.",{"title":100,"path":101,"stem":102,"description":1021,"children":-1},"Learn the important terms and ideas you need to know when using OpenCloud.",1776142503699]