[{"data":1,"prerenderedAt":829},["ShallowReactive",2],{"navigation_docs_en":3,"-en-ai-ai-connections":190,"-en-ai-ai-connections-surround":824},[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":86,"body":192,"description":817,"extension":818,"links":819,"meta":820,"navigation":821,"path":87,"seo":822,"stem":88,"__hash__":823},"docs_en/en/3.ai/2.ai-connections.md",{"type":193,"value":194,"toc":800},"minimark",[195,199,208,219,224,227,234,245,249,349,353,356,387,391,445,449,454,526,530,533,583,587,590,613,617,620,662,666,729,732,735,752,755,759],[196,197,86],"h1",{"id":198},"ai-connections-9router",[200,201,202,203,207],"p",{},"The ",[204,205,206],"strong",{},"AI Connections"," page lets you manage integrations with AI services and large language models (LLMs). This is where you configure how your AI agents connect to AI providers.",[209,210,211,214,215,218],"tip",{},[204,212,213],{},"For step-by-step integration with OpenClaw",", see ",[216,217,58],"a",{"href":59},".",[220,221,223],"h2",{"id":222},"what-are-ai-connections","What are AI Connections?",[200,225,226],{},"AI Connections are links between your OpenCloud applications and external AI services (like OpenAI's GPT, Anthropic's Claude, or other AI models). Instead of configuring each AI connection separately in every application, you can manage them centrally from this page.",[200,228,229,230,233],{},"OpenCloud uses ",[204,231,232],{},"9Router"," — a lightweight proxy and management tool — as the engine behind AI Connections. It acts as a central hub that sits between your applications and AI providers, giving you a single place to manage all your AI connections.",[235,236,241],"pre",{"className":237,"code":239,"language":240},[238],"language-text","Your Apps → 9Router → OpenAI, Anthropic, Google, etc.\n","text",[242,243,239],"code",{"__ignoreMap":244},"",[220,246,248],{"id":247},"key-features","Key features",[250,251,252,265],"table",{},[253,254,255],"thead",{},[256,257,258,262],"tr",{},[259,260,261],"th",{},"Feature",[259,263,264],{},"Description",[266,267,268,279,289,299,309,319,329,339],"tbody",{},[256,269,270,276],{},[271,272,273],"td",{},[204,274,275],{},"Central API management",[271,277,278],{},"Configure all AI provider keys in one place",[256,280,281,286],{},[271,282,283],{},[204,284,285],{},"Provider routing",[271,287,288],{},"Route requests to different AI providers based on rules",[256,290,291,296],{},[271,292,293],{},[204,294,295],{},"Load balancing",[271,297,298],{},"Spread requests across multiple API keys or providers",[256,300,301,306],{},[271,302,303],{},[204,304,305],{},"Observability",[271,307,308],{},"Track all AI API calls — see which apps use what, how much, and when",[256,310,311,316],{},[271,312,313],{},[204,314,315],{},"Model aliases",[271,317,318],{},"Create shortcut names for AI models (e.g., \"smart\" → \"gpt-4o\")",[256,320,321,326],{},[271,322,323],{},[204,324,325],{},"API key management",[271,327,328],{},"Create API keys for your apps to use when connecting through AI Connections",[256,330,331,336],{},[271,332,333],{},[204,334,335],{},"Proxy pools",[271,337,338],{},"Manage multiple proxies for API connections",[256,340,341,346],{},[271,342,343],{},[204,344,345],{},"Login protection",[271,347,348],{},"Password-protected admin interface",[220,350,352],{"id":351},"when-should-you-use-ai-connections","When should you use AI Connections?",[200,354,355],{},"Use AI Connections if you:",[357,358,359,367,374,381],"ul",{},[360,361,362,363,366],"li",{},"Have ",[204,364,365],{},"multiple applications"," that use AI models",[360,368,369,370,373],{},"Want to ",[204,371,372],{},"manage all AI API keys"," in one place",[360,375,376,377,380],{},"Need to ",[204,378,379],{},"track AI usage"," across your applications",[360,382,369,383,386],{},[204,384,385],{},"route between providers"," (e.g., use Anthropic for some tasks, OpenAI for others)",[220,388,390],{"id":389},"requirements-on-opencloud","Requirements on OpenCloud",[250,392,393,403],{},[253,394,395],{},[256,396,397,400],{},[259,398,399],{},"Requirement",[259,401,402],{},"Details",[266,404,405,415,425,435],{},[256,406,407,412],{},[271,408,409],{},[204,410,411],{},"Type",[271,413,414],{},"Addon (system service)",[256,416,417,422],{},[271,418,419],{},[204,420,421],{},"Database",[271,423,424],{},"None required",[256,426,427,432],{},[271,428,429],{},[204,430,431],{},"Plan",[271,433,434],{},"Fixed addon plan (1 CPU, 1 GB RAM, ~$0.50/month)",[256,436,437,442],{},[271,438,439],{},[204,440,441],{},"Default port",[271,443,444],{},"20128",[220,446,448],{"id":447},"installation","Installation",[450,451,453],"h3",{"id":452},"step-by-step-deployment","Step-by-step deployment",[455,456,457],"steps",{},[458,459,460,499,518],"ol",{},[360,461,462,465,468,469],{},[204,463,464],{},"Deploy 9Router",[466,467],"br",{},"9Router is deployed as an addon (a lightweight system service):",[357,470,471,482,487,490,493],{},[360,472,473,474,477,478,481],{},"Go to ",[204,475,476],{},"Applications"," > ",[204,479,480],{},"Create Application"," (or look for the Addons section)",[360,483,484,485],{},"Select ",[204,486,232],{},[360,488,489],{},"The plan is fixed: 1 CPU, 1 GB RAM, 5 GB storage (~$0.50/month)",[360,491,492],{},"Select your project",[360,494,495,496],{},"Click ",[204,497,498],{},"Deploy",[360,500,501,504],{},[204,502,503],{},"Get your login password",[357,505,506,511],{},[360,507,508,509],{},"Go to your 9Router application > ",[204,510,124],{},[360,512,513,514,517],{},"Find ",[242,515,516],{},"INITIAL_PASSWORD"," — this is your admin login password",[360,519,520,523,525],{},[204,521,522],{},"Access 9Router",[466,524],{},"Open the 9Router link and log in with your password.",[450,527,529],{"id":528},"setting-up-ai-providers","Setting up AI providers",[200,531,532],{},"After logging in, add your AI provider connections:",[455,534,535],{},[458,536,537,543,548,575,580],{},[360,538,473,539,542],{},[204,540,541],{},"Provider Connections"," in the 9Router dashboard",[360,544,495,545],{},[204,546,547],{},"Add Provider",[360,549,550,551],{},"Enter your AI provider details:\n",[357,552,553,559,565],{},[360,554,555,558],{},[204,556,557],{},"Provider name"," (e.g., \"OpenAI\", \"Anthropic\")",[360,560,561,564],{},[204,562,563],{},"API Key"," — Your provider's API key",[360,566,567,570,571,574],{},[204,568,569],{},"Base URL"," — The API endpoint (e.g., ",[242,572,573],{},"https://api.openai.com/v1",")",[360,576,495,577],{},[204,578,579],{},"Save",[360,581,582],{},"Repeat for each AI provider you want to use",[450,584,586],{"id":585},"creating-api-keys-for-your-apps","Creating API keys for your apps",[200,588,589],{},"To let your other applications connect through 9Router:",[455,591,592],{},[458,593,594,599,604,607,610],{},[360,595,473,596,542],{},[204,597,598],{},"API Keys",[360,600,495,601],{},[204,602,603],{},"Create API Key",[360,605,606],{},"Give it a name (e.g., \"n8n-key\", \"openclaw-key\")",[360,608,609],{},"Copy the generated key",[360,611,612],{},"In your application's environment variables, set the AI API key to this 9Router key, and the API base URL to your 9Router's address",[450,614,616],{"id":615},"setting-up-model-aliases","Setting up model aliases",[200,618,619],{},"Model aliases let you create friendly names for AI models:",[455,621,622],{},[458,623,624,630,654],{},[360,625,473,626,629],{},[204,627,628],{},"Model Aliases"," in the dashboard",[360,631,632,633],{},"Add an alias:\n",[357,634,635,645],{},[360,636,637,640,641,644],{},[204,638,639],{},"Alias name:"," ",[242,642,643],{},"smart"," (or any name you like)",[360,646,647,640,650,653],{},[204,648,649],{},"Target model:",[242,651,652],{},"gpt-4o"," (the actual model name)",[360,655,656,657,659,660],{},"Now your apps can request model ",[242,658,643],{}," and 9Router routes it to ",[242,661,652],{},[220,663,665],{"id":664},"configuration","Configuration",[250,667,668,680],{},[253,669,670],{},[256,671,672,675,678],{},[259,673,674],{},"Setting",[259,676,677],{},"Default",[259,679,264],{},[266,681,682,694,708,718],{},[256,683,684,688,691],{},[271,685,686],{},[242,687,516],{},[271,689,690],{},"Auto-generated",[271,692,693],{},"Admin login password",[256,695,696,701,705],{},[271,697,698],{},[242,699,700],{},"ROUTER_PORT",[271,702,703],{},[242,704,444],{},[271,706,707],{},"API/UI port",[256,709,710,712,715],{},[271,711,305],{},[271,713,714],{},"Enabled",[271,716,717],{},"Tracks up to 1,000 API call records",[256,719,720,723,726],{},[271,721,722],{},"Login required",[271,724,725],{},"Yes",[271,727,728],{},"Password protection is on by default",[220,730,305],{"id":731},"observability",[200,733,734],{},"9Router tracks all API calls passing through it. In the dashboard, you can see:",[357,736,737,740,743,746,749],{},[360,738,739],{},"Total number of API calls",[360,741,742],{},"Calls per provider",[360,744,745],{},"Calls per application",[360,747,748],{},"Response times",[360,750,751],{},"Error rates",[200,753,754],{},"This data helps you understand your AI usage patterns and costs.",[220,756,758],{"id":757},"troubleshooting","Troubleshooting",[250,760,761,771],{},[253,762,763],{},[256,764,765,768],{},[259,766,767],{},"Problem",[259,769,770],{},"Solution",[266,772,773,784,792],{},[256,774,775,778],{},[271,776,777],{},"Can't log in",[271,779,780,781,783],{},"Check ",[242,782,516],{}," in environment variables",[256,785,786,789],{},[271,787,788],{},"Apps can't connect",[271,790,791],{},"Verify the 9Router URL and API key in your app's config",[256,793,794,797],{},[271,795,796],{},"Provider errors",[271,798,799],{},"Check that your AI provider API key is valid and has credit",{"title":244,"searchDepth":801,"depth":801,"links":802},2,[803,804,805,806,807,814,815,816],{"id":222,"depth":801,"text":223},{"id":247,"depth":801,"text":248},{"id":351,"depth":801,"text":352},{"id":389,"depth":801,"text":390},{"id":447,"depth":801,"text":448,"children":808},[809,811,812,813],{"id":452,"depth":810,"text":453},3,{"id":528,"depth":810,"text":529},{"id":585,"depth":810,"text":586},{"id":615,"depth":810,"text":616},{"id":664,"depth":801,"text":665},{"id":731,"depth":801,"text":305},{"id":757,"depth":801,"text":758},"Manage your AI service connections and integrations on OpenCloud using 9Router.","md",null,{},true,{"title":86,"description":817},"m2k-8hm6SmCgDl5CXkFQdbdApQ9cKhmjwGTSDaHQXIA",[825,827],{"title":76,"path":77,"stem":78,"description":826,"children":-1},"Step-by-step guide to deploying CoPaw on OpenCloud.",{"title":90,"path":91,"stem":92,"description":828,"children":-1},"Configure security policies, guardrails, and access controls for your AI deployments on OpenCloud.",1776142503699]