[{"data":1,"prerenderedAt":439},["ShallowReactive",2],{"navigation_docs_en":3,"-en-guides-openclaw-hook-9router":190,"-en-guides-openclaw-hook-9router-surround":434},[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":58,"body":192,"description":427,"extension":428,"links":429,"meta":430,"navigation":431,"path":59,"seo":432,"stem":60,"__hash__":433},"docs_en/en/2.guides/2.openclaw/3.hook-9router.md",{"type":193,"value":194,"toc":419},"minimark",[195,199,204,208,212,230,234,367,371,382,386,412],[196,197,58],"h1",{"id":198},"connect-openclaw-to-9router",[200,201,203],"h2",{"id":202},"overview","Overview",[205,206,207],"p",{},"9Router is a central AI proxy hub that gives OpenClaw access to multiple LLM providers with automatic fallback, cost tracking, and load balancing. Instead of connecting OpenClaw directly to a single AI provider, route requests through 9Router for flexibility and reliability.",[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],{},"9Router addon deployed in the same project (see ",[220,228,229],{"href":87},"AI Connections",[200,231,233],{"id":232},"steps","Steps",[232,235,236],{},[237,238,239,257,276,343,351,359],"ol",{},[216,240,241,245,248,249,252,253,256],{},[242,243,244],"strong",{},"Deploy 9Router",[246,247],"br",{},"Go to your project > ",[242,250,251],{},"Addons"," section and deploy the ",[242,254,255],{},"9Router"," addon. Wait for it to become active.",[216,258,259,262,264,265],{},[242,260,261],{},"Get the 9Router endpoint",[246,263],{},"From the 9Router addon details, copy the API endpoint URL. It will look like:",[266,267,272],"pre",{"className":268,"code":270,"language":271},[269],"language-text","http://9router-\u003Cproject-id>:4000\n","text",[273,274,270],"code",{"__ignoreMap":275},"",[216,277,278,281,283,284,286,287],{},[242,279,280],{},"Configure OpenClaw to use 9Router",[246,282],{},"Go to your OpenClaw application > ",[242,285,124],{}," and update:",[288,289,290,303],"table",{},[291,292,293],"thead",{},[294,295,296,300],"tr",{},[297,298,299],"th",{},"Variable",[297,301,302],{},"Value",[304,305,306,323,333],"tbody",{},[294,307,308,314],{},[309,310,311],"td",{},[273,312,313],{},"OPENCLAW_PRIMARY_MODEL",[309,315,316,319,320,223],{},[273,317,318],{},"9router/\u003Cmodel-alias>"," (e.g., ",[273,321,322],{},"9router/gemini-2.5-flash",[294,324,325,330],{},[309,326,327],{},[273,328,329],{},"OPENAI_API_BASE",[309,331,332],{},"Your 9Router endpoint URL",[294,334,335,340],{},[309,336,337],{},[273,338,339],{},"OPENAI_API_KEY",[309,341,342],{},"Your 9Router API key",[216,344,345,348,350],{},[242,346,347],{},"Create API keys in 9Router",[246,349],{},"Open the 9Router dashboard and add API keys for the providers you want to use (OpenAI, Google, Anthropic, etc.).",[216,352,353,356,358],{},[242,354,355],{},"Configure model aliases",[246,357],{},"In 9Router, set up model aliases for easy switching between providers without changing OpenClaw configuration.",[216,360,361,364,366],{},[242,362,363],{},"Restart OpenClaw",[246,365],{},"Save your environment variables and restart the application.",[200,368,370],{"id":369},"verify-connection","Verify Connection",[237,372,373,376,379],{},[216,374,375],{},"Open OpenClaw and send a test message",[216,377,378],{},"Check the 9Router dashboard to confirm the request was routed",[216,380,381],{},"Verify the response comes back correctly",[200,383,385],{"id":384},"benefits","Benefits",[213,387,388,394,400,406],{},[216,389,390,393],{},[242,391,392],{},"Multi-provider fallback"," — If one provider is down, 9Router automatically routes to another",[216,395,396,399],{},[242,397,398],{},"Cost tracking"," — Monitor AI spending per model and per request",[216,401,402,405],{},[242,403,404],{},"Load balancing"," — Distribute requests across multiple API keys",[216,407,408,411],{},[242,409,410],{},"Model switching"," — Change models in 9Router without redeploying OpenClaw",[413,414,415,416,418],"tip",{},"For a full guide on 9Router configuration, see ",[220,417,229],{"href":87},".",{"title":275,"searchDepth":420,"depth":420,"links":421},2,[422,423,424,425,426],{"id":202,"depth":420,"text":203},{"id":210,"depth":420,"text":211},{"id":232,"depth":420,"text":233},{"id":369,"depth":420,"text":370},{"id":384,"depth":420,"text":385},"Route OpenClaw's AI requests through 9Router for multi-provider LLM access with automatic fallback and cost tracking.","md",null,{},true,{"title":58,"description":427},"wU1il-h2hbeSly_KaJAr1m6xyYd1S0XQ0y2uzSY64ec",[435,437],{"title":54,"path":55,"stem":56,"description":436,"children":-1},"Step-by-step guide to deploying OpenClaw on OpenCloud.",{"title":62,"path":63,"stem":64,"description":438,"children":-1},"Add security middleware between OpenClaw and your LLM providers for PII protection, prompt injection detection, and content moderation.",1776142508518]