[{"data":1,"prerenderedAt":531},["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,"updatedAt":529,"__hash__":530},"docs_en\u002Fintegrations\u002Fopenclaw.md",{"type":55,"value":56,"toc":513},"minimark",[57,69,80,85,457,461,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,443,447],"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 laras-ink","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},"sifj9","export",[106,115,117],{"class":116},"snt3o"," LARAS_API_KEY",[106,119,120],{"class":112},"=",[106,122,124],{"class":123},"sIGQv","\"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 laras-ink","{\n  agents: {\n    defaults: {\n      model: { primary: \"laras\u002Fdeepseek-v4.1-flash\" },\n      models: { \"laras\u002Fdeepseek-v4.1-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-v4.1-flash\",\n            name: \"DeepSeek Flash (Laras Router)\",\n            reasoning: false,\n            input: [\"text\", \"image\"],\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,370,391,400,409,415,421,427,432,437],{"__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-v4.1-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-v4.1-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,368],{"class":108,"line":359},19,[106,361,362],{"class":123},"            reasoning",[106,364,196],{"class":116},[106,366,367],{"class":123},"false",[106,369,259],{"class":116},[106,371,373,376,379,382,385,388],{"class":108,"line":372},20,[106,374,375],{"class":123},"            input",[106,377,378],{"class":116},": [",[106,380,381],{"class":123},"\"text\"",[106,383,384],{"class":116},", ",[106,386,387],{"class":123},"\"image\"",[106,389,390],{"class":116},"],\n",[106,392,394,397],{"class":108,"line":393},21,[106,395,396],{"class":123},"            contextWindow",[106,398,399],{"class":116},": 1000000,\n",[106,401,403,406],{"class":108,"line":402},22,[106,404,405],{"class":123},"            maxTokens",[106,407,408],{"class":116},": 32000,\n",[106,410,412],{"class":108,"line":411},23,[106,413,414],{"class":116},"          },\n",[106,416,418],{"class":108,"line":417},24,[106,419,420],{"class":116},"        ],\n",[106,422,424],{"class":108,"line":423},25,[106,425,426],{"class":116},"      },\n",[106,428,430],{"class":108,"line":429},26,[106,431,231],{"class":116},[106,433,435],{"class":108,"line":434},27,[106,436,237],{"class":116},[106,438,440],{"class":108,"line":439},28,[106,441,442],{"class":116},"}\n",[89,444,446],{"id":445},"switch-to-the-model","Switch to the model",[58,448,449,450,453,454,68],{},"Switch to it with ",[73,451,452],{},"\u002Fmodel laras\u002Fdeepseek-v4.1-flash",", or run ",[73,455,456],{},"openclaw models set laras\u002Fdeepseek-v4.1-flash",[81,458,460],{"id":459},"good-to-know","Good to know",[462,463,464,484],"ul",{},[465,466,467,468,471,472,475,476,479,480,483],"li",{},"The entry in ",[73,469,470],{},"models.providers.laras.models"," is what registers the model; the ",[73,473,474],{},"agents.defaults.models"," entry adds it to the model list with an alias. If you restrict models with ",[73,477,478],{},"agents.defaults.modelPolicy.allow",", add ",[73,481,482],{},"laras\u002Fdeepseek-v4.1-flash"," there too.",[465,485,486,489,490,493,494,497],{},[73,487,488],{},"input: [\"text\", \"image\"]"," lets OpenClaw send images to ",[73,491,492],{},"deepseek-v4.1-flash"," as native images. 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 .sifj9, html code.shiki .sifj9{--shiki-default:#8A8F98}html pre.shiki code .snt3o, html code.shiki .snt3o{--shiki-default:#B4B8BF}html pre.shiki code .sIGQv, html code.shiki .sIGQv{--shiki-default:#F7F8F8}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);}",{"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":445,"depth":176,"text":446},{"id":459,"depth":167,"text":460},"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","2026-11-15","49amb4FeZGTnZuv4aBOGsFhCMDc3kS_XkH5QwlJYnbk",1796424411486]