[{"data":1,"prerenderedAt":444},["ShallowReactive",2],{"docs-nav-titles":3,"page-docs_en-\u002Fintegrations\u002Foh-my-pi":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":25,"body":54,"description":434,"extension":435,"eyebrow":436,"meta":437,"navTitle":436,"navigation":438,"path":439,"seo":440,"stem":441,"updatedAt":442,"__hash__":443},"docs_en\u002Fintegrations\u002Foh-my-pi.md",{"type":55,"value":56,"toc":425},"minimark",[57,69,80,85,340,344,410,421],[58,59,60,61,68],"p",{},"This guide connects Oh My Pi to Laras Router. Every step was checked against the ",[62,63,67],"a",{"href":64,"rel":65},"https:\u002F\u002Fgithub.com\u002Fcan1357\u002Foh-my-pi",[66],"nofollow","Oh My Pi repository",".",[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,99,126,132,136,139,160,164,170,314,318],"steps",{},[89,90,92],"h3",{"id":91},"install-oh-my-pi","Install Oh My Pi",[58,94,95,96,68],{},"Install with Bun 1.4.4 or newer. The command is ",[73,97,98],{},"omp",[100,101,106],"pre",{"className":102,"code":103,"language":104,"meta":105,"style":105},"language-bash shiki shiki-themes laras-ink","bun install -g @oh-my-pi\u002Fpi-coding-agent\n","bash","",[73,107,108],{"__ignoreMap":105},[109,110,113,117,120,123],"span",{"class":111,"line":112},"line",1,[109,114,116],{"class":115},"sIGQv","bun",[109,118,119],{"class":115}," install",[109,121,122],{"class":115}," -g",[109,124,125],{"class":115}," @oh-my-pi\u002Fpi-coding-agent\n",[58,127,128,129,68],{},"Or use the shell installer: ",[73,130,131],{},"curl -fsSL https:\u002F\u002Fomp.sh\u002Finstall | sh",[89,133,135],{"id":134},"set-your-api-key","Set your API key",[58,137,138],{},"Put your key in an environment variable.",[100,140,142],{"className":102,"code":141,"language":104,"meta":105,"style":105},"export LARAS_API_KEY=\"lr_live_your_key_here\"\n",[73,143,144],{"__ignoreMap":105},[109,145,146,150,154,157],{"class":111,"line":112},[109,147,149],{"class":148},"sifj9","export",[109,151,153],{"class":152},"snt3o"," LARAS_API_KEY",[109,155,156],{"class":148},"=",[109,158,159],{"class":115},"\"lr_live_your_key_here\"\n",[89,161,163],{"id":162},"add-the-provider","Add the provider",[58,165,166,167,68],{},"Create ",[73,168,169],{},"~\u002F.omp\u002Fagent\u002Fmodels.yml",[100,171,175],{"className":172,"code":173,"filename":169,"language":174,"meta":105,"style":105},"language-yaml shiki shiki-themes laras-ink","providers:\n  laras:\n    baseUrl: https:\u002F\u002Fapi.larasrouter.com\u002Fv1\n    api: openai-completions\n    apiKey: LARAS_API_KEY\n    models:\n      - id: deepseek-v4.1-flash\n        name: DeepSeek V4.1 Flash\n        reasoning: true\n        input: [text, image]\n        contextWindow: 1000000\n        maxTokens: 8192\n","yaml",[73,176,177,185,193,205,216,227,235,249,260,271,292,303],{"__ignoreMap":105},[109,178,179,182],{"class":111,"line":112},[109,180,181],{"class":152},"providers",[109,183,184],{"class":152},":\n",[109,186,188,191],{"class":111,"line":187},2,[109,189,190],{"class":152},"  laras",[109,192,184],{"class":152},[109,194,196,199,202],{"class":111,"line":195},3,[109,197,198],{"class":152},"    baseUrl",[109,200,201],{"class":152},": ",[109,203,204],{"class":115},"https:\u002F\u002Fapi.larasrouter.com\u002Fv1\n",[109,206,208,211,213],{"class":111,"line":207},4,[109,209,210],{"class":152},"    api",[109,212,201],{"class":152},[109,214,215],{"class":115},"openai-completions\n",[109,217,219,222,224],{"class":111,"line":218},5,[109,220,221],{"class":152},"    apiKey",[109,223,201],{"class":152},[109,225,226],{"class":115},"LARAS_API_KEY\n",[109,228,230,233],{"class":111,"line":229},6,[109,231,232],{"class":152},"    models",[109,234,184],{"class":152},[109,236,238,241,244,246],{"class":111,"line":237},7,[109,239,240],{"class":152},"      - ",[109,242,243],{"class":152},"id",[109,245,201],{"class":152},[109,247,248],{"class":115},"deepseek-v4.1-flash\n",[109,250,252,255,257],{"class":111,"line":251},8,[109,253,254],{"class":152},"        name",[109,256,201],{"class":152},[109,258,259],{"class":115},"DeepSeek V4.1 Flash\n",[109,261,263,266,268],{"class":111,"line":262},9,[109,264,265],{"class":152},"        reasoning",[109,267,201],{"class":152},[109,269,270],{"class":115},"true\n",[109,272,274,277,280,283,286,289],{"class":111,"line":273},10,[109,275,276],{"class":152},"        input",[109,278,279],{"class":152},": [",[109,281,282],{"class":115},"text",[109,284,285],{"class":152},", ",[109,287,288],{"class":115},"image",[109,290,291],{"class":152},"]\n",[109,293,295,298,300],{"class":111,"line":294},11,[109,296,297],{"class":152},"        contextWindow",[109,299,201],{"class":152},[109,301,302],{"class":115},"1000000\n",[109,304,306,309,311],{"class":111,"line":305},12,[109,307,308],{"class":152},"        maxTokens",[109,310,201],{"class":152},[109,312,313],{"class":115},"8192\n",[89,315,317],{"id":316},"pick-the-model","Pick the model",[58,319,320,321,323,324,327,328,332,333,336,337,68],{},"Start ",[73,322,98],{},", run ",[73,325,326],{},"\u002Fmodel",", and choose ",[329,330,331],"strong",{},"DeepSeek V4.1 Flash"," from the ",[329,334,335],{},"laras"," provider. To start with the model already selected, run ",[73,338,339],{},"omp --model laras\u002Fdeepseek-v4.1-flash",[81,341,343],{"id":342},"good-to-know","Good to know",[345,346,347,363,377,387,402],"ul",{},[348,349,350,353,354,357,358,360,361,68],"li",{},[73,351,352],{},"apiKey"," names an environment variable. Write ",[73,355,356],{},"LARAS_API_KEY",", not the key itself. If the variable is unset or empty, Oh My Pi uses the text ",[73,359,356],{}," as the token, so export it before you start ",[73,362,98],{},[348,364,365,366,369,370,373,374,68],{},"Oh My Pi reads ",[73,367,368],{},"models.yml"," before ",[73,371,372],{},"models.yaml",". Both live in ",[73,375,376],{},"~\u002F.omp\u002Fagent",[348,378,379,382,383,386],{},[73,380,381],{},"contextWindow"," states the full 1,000,000-token window. ",[73,384,385],{},"maxTokens"," is the output cap, and it also sets how much balance a request must hold while it runs. 8,192 is the default output cap, so raise it only if you need longer replies, and keep enough balance for it.",[348,388,389,392,393,395,396,398,399,68],{},[73,390,391],{},"input"," lists ",[73,394,282],{}," and ",[73,397,288],{},": deepseek-v4.1-flash reads images, and each one is billed as input tokens. A request can be up to 16 MB, images included, so a long session with many screenshots can reach it before the context window fills. Compact the conversation when a request is refused with ",[73,400,401],{},"413 request_too_large",[348,403,404,405,409],{},"Create a separate API key for Oh My Pi with a ",[62,406,408],{"href":407},"\u002Fguides\u002Fbilling#key-budgets","monthly budget",", so you can see and cap what it spends.",[58,411,412,413,416,417,68],{},"Settings and screens can change between versions. If something looks different, check the ",[62,414,67],{"href":64,"rel":415},[66],". For other tools, see all ",[62,418,420],{"href":419},"\u002Fintegrations","integrations",[422,423,424],"style",{},"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);}html pre.shiki code .sifj9, html code.shiki .sifj9{--shiki-default:#8A8F98}html pre.shiki code .snt3o, html code.shiki .snt3o{--shiki-default:#B4B8BF}",{"title":105,"searchDepth":195,"depth":195,"links":426},[427,433],{"id":83,"depth":187,"text":84,"children":428},[429,430,431,432],{"id":91,"depth":195,"text":92},{"id":134,"depth":195,"text":135},{"id":162,"depth":195,"text":163},{"id":316,"depth":195,"text":317},{"id":342,"depth":187,"text":343},"Terminal coding agent (omp) with custom providers in models.yml. Step-by-step setup with Laras Router.","md",null,{},true,"\u002Fintegrations\u002Foh-my-pi",{"title":25,"description":434},"integrations\u002Foh-my-pi","2026-11-15","JXgyC5D48dKdg99GKeilwTPPePT-CfDPiZPjmIskdMs",1796424411507]