[{"data":1,"prerenderedAt":530},["ShallowReactive",2],{"docs-nav-titles":3,"page-docs_en-\u002Fintegrations\u002Fopenclaw":52},{"en":4,"id":39},{"\u002Fauthentication":5,"\u002Fchangelog":6,"\u002Fguides\u002Fbilling":7,"\u002Fguides\u002Ferrors":8,"\u002Fguides\u002Fjson-output":9,"\u002Fguides\u002Frate-limits":10,"\u002Fguides\u002Freasoning":11,"\u002Fguides\u002Fstreaming":12,"\u002Fguides\u002Ftool-calling":13,"\u002Fguides\u002Ftop-up":14,"\u002F":15,"\u002Fintegrations\u002Faider":16,"\u002Fintegrations\u002Fclaude-code":17,"\u002Fintegrations\u002Fcline":18,"\u002Fintegrations\u002Fcontinue":19,"\u002Fintegrations\u002Fgoose":20,"\u002Fintegrations\u002Fhermes":21,"\u002Fintegrations":22,"\u002Fintegrations\u002Fkilo-code":23,"\u002Fintegrations\u002Flangchain":24,"\u002Fintegrations\u002Foh-my-pi":25,"\u002Fintegrations\u002Fopenai-sdk":26,"\u002Fintegrations\u002Fopenclaw":27,"\u002Fintegrations\u002Fopencode":28,"\u002Fintegrations\u002Fpi":29,"\u002Fintegrations\u002Fvercel-ai-sdk":30,"\u002Fintegrations\u002Fzed":31,"\u002Fmodels":32,"\u002Fquickstart":33,"\u002Freference\u002Fchat-completions":34,"\u002Freference":22,"\u002Freference\u002Fmessages":35,"\u002Freference\u002Fmodels":36,"\u002Freference\u002Fmodels-retrieve":37,"\u002Fsupport":38},"Authentication","Changelog","Billing","Errors & retries","JSON output","Rate limits","Reasoning content","Streaming","Tool calling","Topping up with QRIS","Introduction","Aider","Claude Code","Cline","Continue","Goose","Hermes Agent","Overview","Kilo Code","LangChain (Python)","Oh My Pi","OpenAI SDKs","OpenClaw","OpenCode","Pi","Vercel AI SDK","Zed","Models","Quickstart","Chat completions","Messages","List models","Retrieve a model","Support",{"\u002Fauthentication":40,"\u002Fchangelog":6,"\u002Fguides\u002Fbilling":7,"\u002Fguides\u002Ferrors":41,"\u002Fguides\u002Fjson-output":42,"\u002Fguides\u002Frate-limits":43,"\u002Fguides\u002Freasoning":44,"\u002Fguides\u002Fstreaming":12,"\u002Fguides\u002Ftool-calling":13,"\u002Fguides\u002Ftop-up":45,"\u002F":46,"\u002Fintegrations\u002Faider":16,"\u002Fintegrations\u002Fclaude-code":17,"\u002Fintegrations\u002Fcline":18,"\u002Fintegrations\u002Fcontinue":19,"\u002Fintegrations\u002Fgoose":20,"\u002Fintegrations\u002Fhermes":21,"\u002Fintegrations":47,"\u002Fintegrations\u002Fkilo-code":23,"\u002Fintegrations\u002Flangchain":24,"\u002Fintegrations\u002Foh-my-pi":25,"\u002Fintegrations\u002Fopenai-sdk":48,"\u002Fintegrations\u002Fopenclaw":27,"\u002Fintegrations\u002Fopencode":28,"\u002Fintegrations\u002Fpi":29,"\u002Fintegrations\u002Fvercel-ai-sdk":30,"\u002Fintegrations\u002Fzed":31,"\u002Fmodels":49,"\u002Fquickstart":33,"\u002Freference\u002Fchat-completions":34,"\u002Freference":47,"\u002Freference\u002Fmessages":35,"\u002Freference\u002Fmodels":50,"\u002Freference\u002Fmodels-retrieve":51,"\u002Fsupport":38},"Autentikasi","Error & retry","Output JSON","Rate limit","Konten reasoning","Isi saldo dengan QRIS","Pengantar","Ringkasan","OpenAI SDK","Model","Daftar model","Ambil satu model",{"id":53,"title":27,"body":54,"description":521,"extension":522,"eyebrow":523,"meta":524,"navTitle":523,"navigation":525,"path":526,"seo":527,"stem":528,"__hash__":529},"docs_en\u002Fintegrations\u002Fopenclaw.md",{"type":55,"value":56,"toc":513},"minimark",[57,69,80,85,460,464,498,509],[58,59,60,61,68],"p",{},"This guide connects OpenClaw to Laras Router. Every step was checked against the ",[62,63,67],"a",{"href":64,"rel":65},"https:\u002F\u002Fdocs.openclaw.ai\u002Fconcepts\u002Fmodel-providers\u002Fcustom-providers",[66],"nofollow","OpenClaw documentation",".",[58,70,71,72,76,77,68],{},"You need an API key (",[73,74,75],"code",{},"lr_live_…",") and a topped-up balance. New to Laras Router? Start with the ",[62,78,33],{"href":79},"\u002Fquickstart",[81,82,84],"h2",{"id":83},"set-up","Set up",[86,87,88,93,96,125,129,148,446,450],"steps",{},[89,90,92],"h3",{"id":91},"set-your-api-key","Set your API key",[58,94,95],{},"Make your key available to the OpenClaw Gateway process.",[97,98,103],"pre",{"className":99,"code":100,"language":101,"meta":102,"style":102},"language-bash shiki shiki-themes github-dark-default github-light-default","export LARAS_API_KEY=\"lr_live_your_key_here\"\n","bash","",[73,104,105],{"__ignoreMap":102},[106,107,110,114,118,121],"span",{"class":108,"line":109},"line",1,[106,111,113],{"class":112},"s1PA9","export",[106,115,117],{"class":116},"sUq8j"," LARAS_API_KEY",[106,119,120],{"class":112},"=",[106,122,124],{"class":123},"sHdZ9","\"lr_live_your_key_here\"\n",[89,126,128],{"id":127},"add-the-provider","Add the provider",[58,130,131,132,135,136,139,140,143,144,147],{},"In ",[73,133,134],{},"~\u002F.openclaw\u002Fopenclaw.json",", add a provider under ",[73,137,138],{},"models.providers"," with ",[73,141,142],{},"api"," set to ",[73,145,146],{},"openai-completions",", and make its model the default.",[97,149,158],{"className":150,"code":151,"filename":152,"highlights":153,"language":157,"meta":102,"style":102},"language-json5 shiki shiki-themes github-dark-default github-light-default","{\n  agents: {\n    defaults: {\n      model: { primary: \"laras\u002Fdeepseek-flash\" },\n      models: { \"laras\u002Fdeepseek-flash\": { alias: \"laras\" } },\n    },\n  },\n  models: {\n    mode: \"merge\",\n    providers: {\n      laras: {\n        baseUrl: \"https:\u002F\u002Fapi.larasrouter.com\u002Fv1\",\n        apiKey: \"${LARAS_API_KEY}\",\n        api: \"openai-completions\",\n        models: [\n          {\n            id: \"deepseek-flash\",\n            name: \"DeepSeek Flash (Laras Router)\",\n            reasoning: false,\n            input: [\"text\"],\n            contextWindow: 1000000,\n            maxTokens: 32000,\n          },\n        ],\n      },\n    },\n  },\n}\n","openclaw.json",[154,155,156],12,13,14,"json5",[73,159,160,165,174,182,203,226,232,238,246,260,268,276,290,303,316,325,331,344,357,371,386,399,412,418,424,430,435,440],{"__ignoreMap":102},[106,161,162],{"class":108,"line":109},[106,163,164],{"class":116},"{\n",[106,166,168,171],{"class":108,"line":167},2,[106,169,170],{"class":123},"  agents",[106,172,173],{"class":116},": {\n",[106,175,177,180],{"class":108,"line":176},3,[106,178,179],{"class":123},"    defaults",[106,181,173],{"class":116},[106,183,185,188,191,194,197,200],{"class":108,"line":184},4,[106,186,187],{"class":123},"      model",[106,189,190],{"class":116},": { ",[106,192,193],{"class":123},"primary",[106,195,196],{"class":116},": ",[106,198,199],{"class":123},"\"laras\u002Fdeepseek-flash\"",[106,201,202],{"class":116}," },\n",[106,204,206,209,211,213,215,218,220,223],{"class":108,"line":205},5,[106,207,208],{"class":123},"      models",[106,210,190],{"class":116},[106,212,199],{"class":123},[106,214,190],{"class":116},[106,216,217],{"class":123},"alias",[106,219,196],{"class":116},[106,221,222],{"class":123},"\"laras\"",[106,224,225],{"class":116}," } },\n",[106,227,229],{"class":108,"line":228},6,[106,230,231],{"class":116},"    },\n",[106,233,235],{"class":108,"line":234},7,[106,236,237],{"class":116},"  },\n",[106,239,241,244],{"class":108,"line":240},8,[106,242,243],{"class":123},"  models",[106,245,173],{"class":116},[106,247,249,252,254,257],{"class":108,"line":248},9,[106,250,251],{"class":123},"    mode",[106,253,196],{"class":116},[106,255,256],{"class":123},"\"merge\"",[106,258,259],{"class":116},",\n",[106,261,263,266],{"class":108,"line":262},10,[106,264,265],{"class":123},"    providers",[106,267,173],{"class":116},[106,269,271,274],{"class":108,"line":270},11,[106,272,273],{"class":123},"      laras",[106,275,173],{"class":116},[106,277,280,283,285,288],{"class":278,"line":154},[108,279],"highlight",[106,281,282],{"class":123},"        baseUrl",[106,284,196],{"class":116},[106,286,287],{"class":123},"\"https:\u002F\u002Fapi.larasrouter.com\u002Fv1\"",[106,289,259],{"class":116},[106,291,293,296,298,301],{"class":292,"line":155},[108,279],[106,294,295],{"class":123},"        apiKey",[106,297,196],{"class":116},[106,299,300],{"class":123},"\"${LARAS_API_KEY}\"",[106,302,259],{"class":116},[106,304,306,309,311,314],{"class":305,"line":156},[108,279],[106,307,308],{"class":123},"        api",[106,310,196],{"class":116},[106,312,313],{"class":123},"\"openai-completions\"",[106,315,259],{"class":116},[106,317,319,322],{"class":108,"line":318},15,[106,320,321],{"class":123},"        models",[106,323,324],{"class":116},": [\n",[106,326,328],{"class":108,"line":327},16,[106,329,330],{"class":116},"          {\n",[106,332,334,337,339,342],{"class":108,"line":333},17,[106,335,336],{"class":123},"            id",[106,338,196],{"class":116},[106,340,341],{"class":123},"\"deepseek-flash\"",[106,343,259],{"class":116},[106,345,347,350,352,355],{"class":108,"line":346},18,[106,348,349],{"class":123},"            name",[106,351,196],{"class":116},[106,353,354],{"class":123},"\"DeepSeek Flash (Laras Router)\"",[106,356,259],{"class":116},[106,358,360,363,365,369],{"class":108,"line":359},19,[106,361,362],{"class":123},"            reasoning",[106,364,196],{"class":116},[106,366,368],{"class":367},"sYnYM","false",[106,370,259],{"class":116},[106,372,374,377,380,383],{"class":108,"line":373},20,[106,375,376],{"class":123},"            input",[106,378,379],{"class":116},": [",[106,381,382],{"class":123},"\"text\"",[106,384,385],{"class":116},"],\n",[106,387,389,392,394,397],{"class":108,"line":388},21,[106,390,391],{"class":123},"            contextWindow",[106,393,196],{"class":116},[106,395,396],{"class":367},"1000000",[106,398,259],{"class":116},[106,400,402,405,407,410],{"class":108,"line":401},22,[106,403,404],{"class":123},"            maxTokens",[106,406,196],{"class":116},[106,408,409],{"class":367},"32000",[106,411,259],{"class":116},[106,413,415],{"class":108,"line":414},23,[106,416,417],{"class":116},"          },\n",[106,419,421],{"class":108,"line":420},24,[106,422,423],{"class":116},"        ],\n",[106,425,427],{"class":108,"line":426},25,[106,428,429],{"class":116},"      },\n",[106,431,433],{"class":108,"line":432},26,[106,434,231],{"class":116},[106,436,438],{"class":108,"line":437},27,[106,439,237],{"class":116},[106,441,443],{"class":108,"line":442},28,[106,444,445],{"class":116},"}\n",[89,447,449],{"id":448},"switch-to-the-model","Switch to the model",[58,451,452,453,456,457,68],{},"Switch to it with ",[73,454,455],{},"\u002Fmodel laras\u002Fdeepseek-flash",", or run ",[73,458,459],{},"openclaw models set laras\u002Fdeepseek-flash",[81,461,463],{"id":462},"good-to-know","Good to know",[465,466,467,487],"ul",{},[468,469,470,471,474,475,478,479,482,483,486],"li",{},"The entry in ",[73,472,473],{},"models.providers.laras.models"," is what registers the model; the ",[73,476,477],{},"agents.defaults.models"," entry adds it to the model list with an alias. If you restrict models with ",[73,480,481],{},"agents.defaults.modelPolicy.allow",", add ",[73,484,485],{},"laras\u002Fdeepseek-flash"," there too.",[468,488,489,490,493,494,497],{},"Keep ",[73,491,492],{},"input"," text only: Laras Router does not accept image input. Without ",[73,495,496],{},"contextWindow",", OpenClaw assumes 200,000 tokens.",[58,499,500,501,504,505,68],{},"Settings and screens can change between versions. If something looks different, check the ",[62,502,67],{"href":64,"rel":503},[66],". For other tools, see all ",[62,506,508],{"href":507},"\u002Fintegrations","integrations",[510,511,512],"style",{},"html pre.shiki code .s1PA9, html code.shiki .s1PA9{--shiki-default:#FF7B72;--shiki-light:#CF222E}html pre.shiki code .sUq8j, html code.shiki .sUq8j{--shiki-default:#E6EDF3;--shiki-light:#1F2328}html pre.shiki code .sHdZ9, html code.shiki .sHdZ9{--shiki-default:#A5D6FF;--shiki-light:#0A3069}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);}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html pre.shiki code .sYnYM, html code.shiki .sYnYM{--shiki-default:#79C0FF;--shiki-light:#0550AE}",{"title":102,"searchDepth":176,"depth":176,"links":514},[515,520],{"id":83,"depth":167,"text":84,"children":516},[517,518,519],{"id":91,"depth":176,"text":92},{"id":127,"depth":176,"text":128},{"id":448,"depth":176,"text":449},{"id":462,"depth":167,"text":463},"Self-hosted personal AI assistant with a gateway and chat apps. Step-by-step setup with Laras Router.","md",null,{},true,"\u002Fintegrations\u002Fopenclaw",{"title":27,"description":521},"integrations\u002Fopenclaw","jflAqa2tJNp_fJZx862ML1kFvKn-hGy1Qrbfb_5nF3o",1793333618580]