[{"data":1,"prerenderedAt":121},["ShallowReactive",2],{"guide-en-configure-byok":3},{"id":4,"title":5,"body":6,"description":111,"extension":112,"meta":113,"navigation":116,"path":117,"seo":118,"stem":119,"__hash__":120},"pages\u002Fen\u002Fguides\u002Fconfigure-byok.md","Configure BYOK",{"type":7,"value":8,"toc":103},"minimark",[9,13,17,22,31,35,66,70,73,77],[10,11,5],"h1",{"id":12},"configure-byok",[14,15,16],"p",{},"BYOK keeps billing and compliance with your provider. WriteX forwards requests from your machine.",[18,19,21],"h2",{"id":20},"before-you-start","Before you start",[14,23,24,25,30],{},"Obtain an API key or gateway URL; ensure your network allows the endpoint. Provider walkthroughs: ",[26,27,29],"a",{"href":28},"\u002Fdoc\u002Fget-key","Docs · Get an API Key",".",[18,32,34],{"id":33},"steps","Steps",[36,37,38,46,57,60,63],"ol",{},[39,40,41,42,30],"li",{},"Open ",[43,44,45],"strong",{},"Settings → Model \u002F Provider",[39,47,48,49,52,53,56],{},"Choose an official provider (e.g. ",[43,50,51],{},"DeepSeek",", Xiaomi MiMo, OpenAI) or ",[43,54,55],{},"OpenAI-compatible \u002F custom"," with your Base URL.",[39,58,59],{},"Paste the API key and save (encrypted locally).",[39,61,62],{},"Send a test prompt in the agent.",[39,64,65],{},"Set assistant output language separately from UI language if needed.",[18,67,69],{"id":68},"tips-and-best-practices","Tips and best practices",[14,71,72],{},"Never commit keys to Git. Rotate keys in the provider console when staff changes.",[18,74,76],{"id":75},"related-reading","Related reading",[78,79,80,85,91,97],"ul",{},[39,81,82],{},[26,83,84],{"href":28},"Get an API Key",[39,86,87],{},[26,88,90],{"href":89},"\u002Ffeatures\u002Fai-agent","AI agent feature",[39,92,93],{},[26,94,96],{"href":95},"\u002Ffaq\u002Fwhich-models-supported","Which models are supported?",[39,98,99],{},[26,100,102],{"href":101},"\u002Fguides\u002Fagent-writing-workflow","Agent writing workflow",{"title":104,"searchDepth":105,"depth":105,"links":106},"",2,[107,108,109,110],{"id":20,"depth":105,"text":21},{"id":33,"depth":105,"text":34},{"id":68,"depth":105,"text":69},{"id":75,"depth":105,"text":76},"Store provider endpoints and API keys locally in WriteX to power the agent—no WriteX account required.","md",{"seoTitle":114,"summary":115,"order":105},"Configure BYOK in WriteX | WriteX","Set up once; keys stay encrypted on disk.",true,"\u002Fen\u002Fguides\u002Fconfigure-byok",{"title":5,"description":111},"en\u002Fguides\u002Fconfigure-byok","_oEoSnfDW_-8Y9MQaEyh4SOCdIu-CevZa8j121R3RFw",1785483020641]