[{"data":1,"prerenderedAt":450},["ShallowReactive",2],{"navigation_docs_en":3,"-en-guides-openclaw-hook-litellm":190,"-en-guides-openclaw-hook-litellm-surround":445},[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":62,"body":192,"description":438,"extension":439,"links":440,"meta":441,"navigation":442,"path":63,"seo":443,"stem":64,"__hash__":444},"docs_en/en/2.guides/2.openclaw/4.hook-litellm.md",{"type":193,"value":194,"toc":430},"minimark",[195,199,204,208,212,229,233,378,382,393,397,423],[196,197,62],"h1",{"id":198},"connect-openclaw-to-ai-guardrails",[200,201,203],"h2",{"id":202},"overview","Overview",[205,206,207],"p",{},"AI GuardRails adds security middleware between OpenClaw and your LLM providers. It provides PII protection, prompt injection detection, secret detection, and content moderation — ensuring your AI agent operates safely.",[200,209,211],{"id":210},"prerequisites","Prerequisites",[213,214,215,224],"ul",{},[216,217,218,219,223],"li",{},"OpenClaw deployed and running (see ",[220,221,222],"a",{"href":55},"Installation",")",[216,225,226,227,223],{},"AI GuardRails addon deployed (see ",[220,228,90],{"href":91},[200,230,232],{"id":231},"steps","Steps",[231,234,235,326,330,338,341,367,375],{},[236,237,238,256,275],"ol",{},[216,239,240,244,247,248,251,252,255],{},[241,242,243],"strong",{},"Deploy AI GuardRails",[245,246],"br",{},"Go to your project > ",[241,249,250],{},"Addons"," section and deploy the ",[241,253,254],{},"AI GuardRails"," addon. Wait for it to become active.",[216,257,258,261,263,264],{},[241,259,260],{},"Get the GuardRails endpoint",[245,262],{},"From the AI GuardRails addon details, copy the endpoint URL. It will look like:",[265,266,271],"pre",{"className":267,"code":269,"language":270},[268],"language-text","http://guardrails-\u003Cproject-id>:4000\n","text",[272,273,269],"code",{"__ignoreMap":274},"",[216,276,277,280,282,283,285,286],{},[241,278,279],{},"Route OpenClaw through GuardRails",[245,281],{},"Go to your OpenClaw application > ",[241,284,124],{}," and update:",[287,288,289,302],"table",{},[290,291,292],"thead",{},[293,294,295,299],"tr",{},[296,297,298],"th",{},"Variable",[296,300,301],{},"Value",[303,304,305,316],"tbody",{},[293,306,307,313],{},[308,309,310],"td",{},[272,311,312],{},"OPENAI_API_BASE",[308,314,315],{},"Your GuardRails endpoint URL",[293,317,318,323],{},[308,319,320],{},[272,321,322],{},"OPENAI_API_KEY",[308,324,325],{},"Your GuardRails API key",[327,328,329],"note",{},"If you're also using 9Router, chain them: OpenClaw → GuardRails → 9Router → LLM providers.",[236,331,333],{"start":332},4,[216,334,335],{},[241,336,337],{},"Configure guardrail policies",[205,339,340],{},"Open the AI GuardRails dashboard and configure:",[213,342,343,349,355,361],{},[216,344,345,348],{},[241,346,347],{},"PII Detection"," — Automatically redact personal information",[216,350,351,354],{},[241,352,353],{},"Prompt Injection Detection"," — Block malicious prompts",[216,356,357,360],{},[241,358,359],{},"Secret Detection"," — Prevent API keys from leaking in responses",[216,362,363,366],{},[241,364,365],{},"Content Moderation"," — Filter inappropriate content",[236,368,370],{"start":369},5,[216,371,372],{},[241,373,374],{},"Restart OpenClaw",[205,376,377],{},"Save your environment variables and restart the application.",[200,379,381],{"id":380},"test-the-guardrails","Test the Guardrails",[236,383,384,387,390],{},[216,385,386],{},"Send a message to OpenClaw containing test PII (e.g., a fake phone number)",[216,388,389],{},"Check the GuardRails dashboard to see if it was detected and handled",[216,391,392],{},"Verify that responses are properly filtered",[200,394,396],{"id":395},"benefits","Benefits",[213,398,399,405,411,417],{},[216,400,401,404],{},[241,402,403],{},"PII Protection"," — Automatically detect and redact personal data",[216,406,407,410],{},[241,408,409],{},"Prompt Safety"," — Block injection attacks before they reach the LLM",[216,412,413,416],{},[241,414,415],{},"Audit Trail"," — Log all guardrail actions for compliance",[216,418,419,422],{},[241,420,421],{},"Configurable Policies"," — Fine-tune what gets blocked vs. allowed",[424,425,426,427,429],"tip",{},"For a full guide on AI GuardRails configuration, see ",[220,428,90],{"href":91},".",{"title":274,"searchDepth":431,"depth":431,"links":432},2,[433,434,435,436,437],{"id":202,"depth":431,"text":203},{"id":210,"depth":431,"text":211},{"id":231,"depth":431,"text":232},{"id":380,"depth":431,"text":381},{"id":395,"depth":431,"text":396},"Add security middleware between OpenClaw and your LLM providers for PII protection, prompt injection detection, and content moderation.","md",null,{},true,{"title":62,"description":438},"67J3wk7D8eswbI09xAnyek0aIbLs2QM_5yposPi9OIw",[446,448],{"title":58,"path":59,"stem":60,"description":447,"children":-1},"Route OpenClaw's AI requests through 9Router for multi-provider LLM access with automatic fallback and cost tracking.",{"title":72,"path":73,"stem":74,"description":449,"children":-1},"Learn what CoPaw is — a multi-agent AI assistant platform with messaging integration.",1776142508527]