[{"data":1,"prerenderedAt":483},["ShallowReactive",2],{"navigation_docs":3,"-reference-model-providers":168,"-reference-model-providers-surround":478},[4,146],{"title":5,"icon":6,"path":7,"stem":8,"children":9,"page":36},"Guide","i-lucide-book-open","\u002Fguide","1.guide",[10,14,37,55,59,63,67,71,75,79,83,87,109,134,138,142],{"title":11,"path":12,"stem":13},"What is Agent Zero?","\u002Fguide\u002Fintroduction","1.guide\u002F1.introduction",{"title":15,"icon":16,"path":17,"stem":18,"children":19,"page":36},"API","i-lucide-plug","\u002Fguide\u002Fapi","1.guide\u002F10.api",[20,24,28,32],{"title":21,"path":22,"stem":23},"API overview","\u002Fguide\u002Fapi\u002Foverview","1.guide\u002F10.api\u002F1.overview",{"title":25,"path":26,"stem":27},"Define endpoints","\u002Fguide\u002Fapi\u002Fdefine-endpoints","1.guide\u002F10.api\u002F2.define-endpoints",{"title":29,"path":30,"stem":31},"Use the API from a client","\u002Fguide\u002Fapi\u002Fuse-from-client","1.guide\u002F10.api\u002F3.use-from-client",{"title":33,"path":34,"stem":35},"Protect endpoints","\u002Fguide\u002Fapi\u002Fprotect-endpoints","1.guide\u002F10.api\u002F4.protect-endpoints",false,{"title":38,"icon":39,"path":40,"stem":41,"children":42,"page":36},"Authentication","i-lucide-lock","\u002Fguide\u002Fauthentication","1.guide\u002F11.authentication",[43,47,51],{"title":44,"path":45,"stem":46},"Authentication overview","\u002Fguide\u002Fauthentication\u002Foverview","1.guide\u002F11.authentication\u002F1.overview",{"title":48,"path":49,"stem":50},"GitHub OAuth","\u002Fguide\u002Fauthentication\u002Foauth","1.guide\u002F11.authentication\u002F2.oauth",{"title":52,"path":53,"stem":54},"Permissions","\u002Fguide\u002Fauthentication\u002Fpermissions","1.guide\u002F11.authentication\u002F3.permissions",{"title":56,"path":57,"stem":58},"Organizations","\u002Fguide\u002Forganizations","1.guide\u002F12.organizations",{"title":60,"path":61,"stem":62},"Frontend","\u002Fguide\u002Ffrontend","1.guide\u002F13.frontend",{"title":64,"path":65,"stem":66},"Mails","\u002Fguide\u002Fmails","1.guide\u002F14.mails",{"title":68,"path":69,"stem":70},"Internationalization","\u002Fguide\u002Finternationalization","1.guide\u002F15.internationalization",{"title":72,"path":73,"stem":74},"Deployment","\u002Fguide\u002Fdeployment","1.guide\u002F16.deployment",{"title":76,"path":77,"stem":78},"Tech stack","\u002Fguide\u002Ftech-stack","1.guide\u002F2.tech-stack",{"title":80,"path":81,"stem":82},"Installation","\u002Fguide\u002Finstallation","1.guide\u002F3.installation",{"title":84,"path":85,"stem":86},"Environment variables","\u002Fguide\u002Fenvironment-variables","1.guide\u002F4.environment-variables",{"title":88,"icon":89,"path":90,"stem":91,"children":92,"page":36},"Codebase","i-lucide-folder-tree","\u002Fguide\u002Fcodebase","1.guide\u002F5.codebase",[93,97,101,105],{"title":94,"path":95,"stem":96},"Codebase structure","\u002Fguide\u002Fcodebase\u002Fstructure","1.guide\u002F5.codebase\u002F1.structure",{"title":98,"path":99,"stem":100},"Dependencies","\u002Fguide\u002Fcodebase\u002Fdependencies","1.guide\u002F5.codebase\u002F2.dependencies",{"title":102,"path":103,"stem":104},"Formatting and linting","\u002Fguide\u002Fcodebase\u002Fformatting-linting","1.guide\u002F5.codebase\u002F3.formatting-linting",{"title":106,"path":107,"stem":108},"Agent Skills","\u002Fguide\u002Fcodebase\u002Fagent-skills","1.guide\u002F5.codebase\u002F4.agent-skills",{"title":110,"icon":111,"path":112,"stem":113,"children":114,"page":36},"Architecture","i-lucide-layers","\u002Fguide\u002Farchitecture","1.guide\u002F6.architecture",[115,118,122,126,130],{"title":110,"path":116,"stem":117},"\u002Fguide\u002Farchitecture\u002Foverview","1.guide\u002F6.architecture\u002F1.overview",{"title":119,"path":120,"stem":121},"State machine","\u002Fguide\u002Farchitecture\u002Fstate-machine","1.guide\u002F6.architecture\u002F2.state-machine",{"title":123,"path":124,"stem":125},"Execution boundary","\u002Fguide\u002Farchitecture\u002Fexecution-boundary","1.guide\u002F6.architecture\u002F3.execution-boundary",{"title":127,"path":128,"stem":129},"Issue-to-PR workflow","\u002Fguide\u002Farchitecture\u002Fissue-to-pr","1.guide\u002F6.architecture\u002F4.issue-to-pr",{"title":131,"path":132,"stem":133},"Adding a capability","\u002Fguide\u002Farchitecture\u002Fadding-a-capability","1.guide\u002F6.architecture\u002F5.adding-a-capability",{"title":135,"path":136,"stem":137},"Repository policy","\u002Fguide\u002Fconfiguration","1.guide\u002F7.configuration",{"title":139,"path":140,"stem":141},"Safety model","\u002Fguide\u002Fsafety","1.guide\u002F8.safety",{"title":143,"path":144,"stem":145},"Database","\u002Fguide\u002Fdatabase","1.guide\u002F9.database",{"title":147,"icon":148,"path":149,"stem":150,"children":151,"page":36},"Reference","i-lucide-book-marked","\u002Freference","2.reference",[152,156,160,164],{"title":153,"path":154,"stem":155},"CLI","\u002Freference\u002Fcli","2.reference\u002F1.cli",{"title":157,"path":158,"stem":159},"Model providers","\u002Freference\u002Fmodel-providers","2.reference\u002F2.model-providers",{"title":161,"path":162,"stem":163},"Source-control providers","\u002Freference\u002Fsource-control-providers","2.reference\u002F3.source-control-providers",{"title":165,"path":166,"stem":167},"Sandbox providers","\u002Freference\u002Fsandbox-providers","2.reference\u002F4.sandbox-providers",{"id":169,"title":157,"body":170,"description":471,"extension":472,"links":473,"meta":474,"navigation":475,"path":158,"seo":476,"stem":159,"__hash__":477},"docs\u002F2.reference\u002F2.model-providers.md",{"type":171,"value":172,"toc":465},"minimark",[173,186,191,194,240,353,360,364,379,383,386,438,441,445,461],[174,175,176,177,181,182,185],"p",{},"Agent Zero supports native OpenAI, Anthropic, and Google Generative AI adapters, Vercel AI Gateway, and arbitrary OpenAI-compatible endpoints — all behind one ",[178,179,180],"code",{},"ModelProvider"," contract in ",[178,183,184],{},"packages\u002Fmodels",", sharing one structured-output, usage-accounting, timeout, and error-redaction path.",[187,188,190],"h2",{"id":189},"select-a-provider","Select a provider",[174,192,193],{},"The transport is selected in repository policy; the credential comes only from the environment:",[195,196,201],"pre",{"className":197,"code":198,"language":199,"meta":200,"style":200},"language-yaml shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","model:\n  provider: anthropic\n  name: claude-sonnet-4-5\n","yaml","",[178,202,203,216,229],{"__ignoreMap":200},[204,205,208,212],"span",{"class":206,"line":207},"line",1,[204,209,211],{"class":210},"swJcz","model",[204,213,215],{"class":214},"sMK4o",":\n",[204,217,219,222,225],{"class":206,"line":218},2,[204,220,221],{"class":210},"  provider",[204,223,224],{"class":214},":",[204,226,228],{"class":227},"sfazB"," anthropic\n",[204,230,232,235,237],{"class":206,"line":231},3,[204,233,234],{"class":210},"  name",[204,236,224],{"class":214},[204,238,239],{"class":227}," claude-sonnet-4-5\n",[241,242,243,261],"table",{},[244,245,246],"thead",{},[247,248,249,255,258],"tr",{},[250,251,252],"th",{},[178,253,254],{},"model.provider",[250,256,257],{},"Credential environment variable",[250,259,260],{},"Model example",[262,263,264,283,300,317,334],"tbody",{},[247,265,266,272,278],{},[267,268,269],"td",{},[178,270,271],{},"ai-gateway",[267,273,274,277],{},[178,275,276],{},"AI_GATEWAY_API_KEY"," or Vercel OIDC",[267,279,280],{},[178,281,282],{},"anthropic\u002Fclaude-sonnet-4.5",[247,284,285,290,295],{},[267,286,287],{},[178,288,289],{},"anthropic",[267,291,292],{},[178,293,294],{},"ANTHROPIC_API_KEY",[267,296,297],{},[178,298,299],{},"claude-sonnet-4-5",[247,301,302,307,312],{},[267,303,304],{},[178,305,306],{},"google",[267,308,309],{},[178,310,311],{},"GOOGLE_GENERATIVE_AI_API_KEY",[267,313,314],{},[178,315,316],{},"gemini-2.5-pro",[247,318,319,324,329],{},[267,320,321],{},[178,322,323],{},"openai",[267,325,326],{},[178,327,328],{},"OPENAI_API_KEY",[267,330,331],{},[178,332,333],{},"gpt-5",[247,335,336,341,350],{},[267,337,338],{},[178,339,340],{},"openai-compatible",[267,342,343,346,347,349],{},[178,344,345],{},"OPENAI_COMPATIBLE_API_KEY"," (or legacy ",[178,348,328],{},")",[267,351,352],{},"provider-specific",[174,354,355,356,359],{},"The AI Gateway accepts ",[178,357,358],{},"provider\u002Fmodel"," identifiers and exposes the broader AI SDK provider catalog without adding provider-specific logic to the Agent Zero runtime.",[187,361,363],{"id":362},"custom-endpoints","Custom endpoints",[174,365,366,369,370,374,375,378],{},[178,367,368],{},"AGENT_ZERO_MODEL_BASE_URL"," is an optional ",[371,372,373],"strong",{},"operator"," environment variable for custom gateways and self-hosted endpoints. Endpoint URLs and credentials cannot be named or embedded in ",[178,376,377],{},".agent-zero.yml",", so untrusted repository policy cannot redirect a provider secret.",[187,380,382],{"id":381},"cost-accounting","Cost accounting",[174,384,385],{},"To record cost, configure explicit rates — Agent Zero never guesses provider pricing:",[195,387,389],{"className":197,"code":388,"language":199,"meta":200,"style":200},"model:\n  provider: openai-compatible\n  name: gpt-5\n  inputCostPerMillionTokens: 1.25\n  outputCostPerMillionTokens: 10\n",[178,390,391,397,406,415,427],{"__ignoreMap":200},[204,392,393,395],{"class":206,"line":207},[204,394,211],{"class":210},[204,396,215],{"class":214},[204,398,399,401,403],{"class":206,"line":218},[204,400,221],{"class":210},[204,402,224],{"class":214},[204,404,405],{"class":227}," openai-compatible\n",[204,407,408,410,412],{"class":206,"line":231},[204,409,234],{"class":210},[204,411,224],{"class":214},[204,413,414],{"class":227}," gpt-5\n",[204,416,418,421,423],{"class":206,"line":417},4,[204,419,420],{"class":210},"  inputCostPerMillionTokens",[204,422,224],{"class":214},[204,424,426],{"class":425},"sbssI"," 1.25\n",[204,428,430,433,435],{"class":206,"line":429},5,[204,431,432],{"class":210},"  outputCostPerMillionTokens",[204,434,224],{"class":214},[204,436,437],{"class":425}," 10\n",[174,439,440],{},"Usage (tokens and, when configured, cost) is accounted per run and carried in the task result.",[187,442,444],{"id":443},"guarantees","Guarantees",[446,447,448,452,458],"ul",{},[449,450,451],"li",{},"Credentials are read only from the provider's documented environment variable and are never persisted with task evidence.",[449,453,454,455,457],{},"The agent runtime sees neither SDK objects nor credentials — ",[178,456,184],{}," keeps AI SDK types behind the adapter boundary.",[449,459,460],{},"Errors are redacted before they surface, so a provider exception cannot leak a credential into logs or evidence.",[462,463,464],"style",{},"html pre.shiki code .swJcz, html code.shiki .swJcz{--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178}html pre.shiki code .sMK4o, html code.shiki .sMK4o{--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF}html pre.shiki code .sfazB, html code.shiki .sfazB{--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D}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 .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 .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html pre.shiki code .sbssI, html code.shiki .sbssI{--shiki-light:#F76D47;--shiki-default:#F78C6C;--shiki-dark:#F78C6C}",{"title":200,"searchDepth":218,"depth":218,"links":466},[467,468,469,470],{"id":189,"depth":218,"text":190},{"id":362,"depth":218,"text":363},{"id":381,"depth":218,"text":382},{"id":443,"depth":218,"text":444},"Agent Zero supports native OpenAI, Anthropic, and Google Generative AI adapters, Vercel AI Gateway, and arbitrary OpenAI-compatible endpoints — all behind one ModelProvider contract in packages\u002Fmodels, sharing one structured-output, usage-accounting, timeout, and error-redaction path.","md",null,{},true,{"title":157,"description":471},"Vy6RsmjFcRm0xvqCs4-Nzr1AKti_KRGCDS_QkZL-1cA",[479,481],{"title":153,"path":154,"stem":155,"description":480,"children":-1},"The zero CLI is the local entry point: it parses arguments with @bomb.sh\u002Fargs and renders with @clack\u002Fprompts. Inside the repository, run it as aube run zero \u003Ccommand>.",{"title":161,"path":162,"stem":163,"description":482,"children":-1},"Agent Zero integrates with source-control platforms through packages\u002Fsource-control: a\nprovider-neutral boundary with one adapter per platform. The agent runtime consumes only shared\ncontracts (ReviewInput, FeedbackItem, PullRequestRef); provider payload shapes, URLs, IDs,\nevent names, and credentials never cross the boundary. One deployment may connect repositories\nfrom several providers at once: inbound deliveries are routed to the adapter that recognizes\ntheir headers, and each configured provider keeps its own webhook secret.",1787482152876]