[{"data":1,"prerenderedAt":525},["ShallowReactive",2],{"page:\u002Fdocs\u002F5.x\u002Fintegrations\u002Fstudio":3},{"id":4,"title":5,"body":6,"description":507,"extension":508,"frontmatter":509,"heading":5,"meta":516,"navigation":518,"order":513,"path":519,"seo":520,"sitemap":521,"source":522,"stem":523,"__hash__":524},"docs\u002Fdocs\u002F5.x\u002Fintegrations\u002Fstudio.md","Connect a project to Kubb Studio",{"type":7,"value":8,"toc":497},"minimark",[9,23,28,105,110,113,135,138,142,145,206,218,222,225,237,265,269,306,313,323,327,330,365,486,489],[10,11,12,17,18,22],"p",{},[13,14,16],"a",{"href":15},"https:\u002F\u002Fkubb.studio","Kubb Studio"," lets you generate and review your project's clients, types, schemas, hooks, and mocks from the browser. ",[19,20,21],"code",{},"kubb studio"," connects your project as an agent: Studio sends the job, and Kubb runs on your machine.",[10,24,25,27],{},[19,26,21],{}," needs Kubb 5.11.6 or later. Studio refuses older agents. Pick the agent that fits:",[29,30,31,47],"table",{},[32,33,34],"thead",{},[35,36,37,41,44],"tr",{},[38,39,40],"th",{},"Agent",[38,42,43],{},"Runs on",[38,45,46],{},"Use it for",[48,49,50,63,77,88],"tbody",{},[35,51,52,57,60],{},[53,54,55],"td",{},[19,56,21],{},[53,58,59],{},"Your machine",[53,61,62],{},"Your own project",[35,64,65,71,74],{},[53,66,67],{},[13,68,70],{"href":69},"https:\u002F\u002Fhub.docker.com\u002Fr\u002Fkubblabs\u002Fkubb-agent","Docker agent",[53,72,73],{},"Your infrastructure",[53,75,76],{},"A team connection that stays up. An organization admin approves its pairing code.",[35,78,79,82,85],{},[53,80,81],{},"Shared sandbox",[53,83,84],{},"Studio",[53,86,87],{},"A quick trial, with a spec you are fine sharing",[35,89,90,95,98],{},[53,91,92],{},[19,93,94],{},"kubb studio snapshot",[53,96,97],{},"CI",[53,99,100,101],{},"A package per pull request: ",[13,102,104],{"href":103},"\u002Fdocs\u002F5.x\u002Fintegrations\u002Fci","CI snapshots",[106,107,109],"h2",{"id":108},"connect-your-project","Connect your project",[10,111,112],{},"Run this in your project folder:",[114,115,119],"pre",{"language":116,"filename":117,"code":21,"class":118},"shell","Terminal","highlights",[19,120,122],{"class":121},"language-shell",[123,124,127,131],"span",{"class":125,"style":126},"line","display: inline",[123,128,130],{"style":129},"color:#6f42c1;--hls-dark:#b392f0","kubb ",[123,132,134],{"style":133},"color:#24292e;--hls-dark:#e1e4e8","studio",[10,136,137],{},"Approve the pairing code in Studio and answer the permission prompts. Keep the command running, select the agent in Studio, and generate. Each project folder pairs as its own agent.",[106,139,141],{"id":140},"permissions","Choose permissions",[10,143,144],{},"Every permission is off by default. Without any, Studio sees file paths, progress, and a hash of each generated file, and the agent never uploads a local spec. The CLI remembers your answers per project.",[29,146,147,157],{},[32,148,149],{},[35,150,151,154],{},[38,152,153],{},"Flag",[38,155,156],{},"Lets Studio",[48,158,159,169,179,189],{},[35,160,161,166],{},[53,162,163],{},[19,164,165],{},"--allow-read",[53,167,168],{},"Read generated file contents and diffs.",[35,170,171,176],{},[53,172,173],{},[19,174,175],{},"--allow-read-ast",[53,177,178],{},"Read the spec as Kubb parsed it.",[35,180,181,186],{},[53,182,183],{},[19,184,185],{},"--allow-write",[53,187,188],{},"Write generated files to your output folder.",[35,190,191,196],{},[53,192,193],{},[19,194,195],{},"--allow-exec",[53,197,198,199,202,203,205],{},"Run the formatter, the linter, and ",[19,200,201],{},"output.postGenerate",". Needs ",[19,204,185],{}," too.",[10,207,208,209,213,214,217],{},"See ",[13,210,212],{"href":211},"\u002Fdocs\u002F5.x\u002Freference\u002Fcommands\u002Fstudio#permissions","Permissions"," for every flag, such as ",[19,215,216],{},"--allow-config-edit",".",[106,219,221],{"id":220},"review-and-save-generated-files","Review and save generated files",[10,223,224],{},"Connect with both flags to view contents and diffs, then write the files to disk:",[114,226,228],{"language":116,"filename":117,"code":227,"class":118},"kubb studio --allow-read --allow-write",[19,229,230],{"class":121},[123,231,232,234],{"class":125,"style":126},[123,233,130],{"style":129},[123,235,236],{"style":133},"studio --allow-read --allow-write",[238,239,240,247,253],"ul",{},[241,242,243,244,246],"li",{},"Without ",[19,245,185],{},", Kubb stages the files in a temporary folder and leaves your output folder unchanged.",[241,248,249,250,252],{},"With ",[19,251,165],{},", Studio opens your existing output before you generate, so line comments and HTML previews work at once. Each later generation compares with the previous one.",[241,254,255,256,259,260,264],{},"The agent keeps recent generations in ",[19,257,258],{},"node_modules\u002F.cache\u002Fkubb",". See ",[13,261,263],{"href":262},"\u002Fdocs\u002F5.x\u002Freference\u002Fcommands#environment-variables","Environment variables"," for the limits.",[106,266,268],{"id":267},"keep-an-agent-running-in-the-background","Keep an agent running in the background",[114,270,272],{"language":116,"filename":117,"code":271,"class":118},"kubb studio start --allow-read   # pair if needed, then connect in the background\nkubb studio status               # check that the worker is connected\nkubb studio stop                 # end the background connection",[19,273,274,285,286,285,296],{"class":121},[123,275,276,278,281],{"class":125,"style":126},[123,277,130],{"style":129},[123,279,280],{"style":133},"studio start --allow-read   ",[123,282,284],{"style":283},"color:#6a737d;--hls-dark:#6a737d","# pair if needed, then connect in the background","\n",[123,287,288,290,293],{"class":125,"style":126},[123,289,130],{"style":129},[123,291,292],{"style":133},"studio status               ",[123,294,295],{"style":283},"# check that the worker is connected",[123,297,298,300,303],{"class":125,"style":126},[123,299,130],{"style":129},[123,301,302],{"style":133},"studio stop                 ",[123,304,305],{"style":283},"# end the background connection",[10,307,208,308,312],{},[13,309,311],{"href":310},"\u002Fdocs\u002F5.x\u002Freference\u002Fcommands\u002Fstudio#background-connection","Background connection"," for worker states, logs, and restarts.",[314,315,317,318,322],"blockquote",{"as":316},"important","Without a TTY, the CLI skips the permission prompts, so pass the flags the run needs. In CI it does not pair either: use ",[13,319,320],{"href":103},[19,321,94],{}," with a CI API key.",[106,324,326],{"id":325},"give-your-ai-tools-your-api","Give your AI tools your API",[10,328,329],{},"On the Pro plan, Studio turns an agent's OpenAPI spec into a plugin for Claude Code, Cursor, and Codex. Its skills list the API's servers, authentication, operations, and schemas. Your organization gets one marketplace, with one plugin per published agent.",[331,332,333,339,351,362],"ol",{},[241,334,335,336,338],{},"Connect the agent with ",[19,337,175],{}," and generate. Studio reads the spec of the latest successful generation.",[241,340,341,342,346,347,350],{},"In Studio, open ",[343,344,345],"strong",{},"Settings › your organization › AI",", select ",[343,348,349],{},"Publish an agent",", and choose the agent.",[241,352,353,354,357,358,361],{},"Create a token of type ",[343,355,356],{},"AI (read-only)"," under ",[343,359,360],{},"Settings › Developers › Tokens",". A registry key does not work. Git asks for this key as the password, with any username.",[241,363,364],{},"Add the marketplace once, then install the plugin for each API:",[366,367,369,426,456],"code-group",{"sync":368},"ai-tool",[114,370,373],{"language":116,"filename":371,"code":372,"class":118},"Claude Code","claude plugin marketplace add https:\u002F\u002Fkubb.studio\u002Fplugins\u002F\u003Corganization-slug>.git\nclaude plugin install \u003Cplugin>@\u003Cmarketplace>",[19,374,375,285,402],{"class":121},[123,376,377,380,383,386,389,393,396,399],{"class":125,"style":126},[123,378,379],{"style":129},"claude ",[123,381,382],{"style":133},"plugin marketplace add https",[123,384,385],{"style":133},":",[123,387,388],{"style":133},"\u002F\u002Fkubb.studio\u002Fplugins\u002F",[123,390,392],{"style":391},"color:#d73a49;--hls-dark:#f97583","\u003C",[123,394,395],{"style":133},"organization-slug",[123,397,398],{"style":391},">",[123,400,401],{"style":133},".git",[123,403,404,406,409,411,414,416,419,421,424],{"class":125,"style":126},[123,405,379],{"style":129},[123,407,408],{"style":133},"plugin install ",[123,410,392],{"style":391},[123,412,413],{"style":133},"plugin",[123,415,398],{"style":391},[123,417,418],{"style":133},"@",[123,420,392],{"style":391},[123,422,423],{"style":133},"marketplace",[123,425,398],{"style":391},[114,427,430],{"language":116,"filename":428,"code":429,"class":118},"Cursor","agent plugin marketplace add https:\u002F\u002Fkubb.studio\u002Fplugins\u002F\u003Corganization-slug>.git\n# Then start the Cursor CLI, run \u002Fplugin, and install the plugin from the Marketplace tab.",[19,431,432,285,451],{"class":121},[123,433,434,437,439,441,443,445,447,449],{"class":125,"style":126},[123,435,436],{"style":129},"agent ",[123,438,382],{"style":133},[123,440,385],{"style":133},[123,442,388],{"style":133},[123,444,392],{"style":391},[123,446,395],{"style":133},[123,448,398],{"style":391},[123,450,401],{"style":133},[123,452,453],{"class":125,"style":126},[123,454,455],{"style":283},"# Then start the Cursor CLI, run \u002Fplugin, and install the plugin from the Marketplace tab.",[114,457,460],{"language":116,"filename":458,"code":459,"class":118},"Codex","codex plugin marketplace add https:\u002F\u002Fkubb.studio\u002Fplugins\u002F\u003Corganization-slug>.git\n# Then start codex, run \u002Fplugins, and select Install plugin.",[19,461,462,285,481],{"class":121},[123,463,464,467,469,471,473,475,477,479],{"class":125,"style":126},[123,465,466],{"style":129},"codex ",[123,468,382],{"style":133},[123,470,385],{"style":133},[123,472,388],{"style":133},[123,474,392],{"style":391},[123,476,395],{"style":133},[123,478,398],{"style":391},[123,480,401],{"style":133},[123,482,483],{"class":125,"style":126},[123,484,485],{"style":283},"# Then start codex, run \u002Fplugins, and select Install plugin.",[10,487,488],{},"Studio shows the exact commands for each plugin. After the spec changes, republish the agent and update the marketplace in your tool.",[314,490,492,493,496],{"as":491},"warning","An AI key in the URL, such as ",[19,494,495],{},"https:\u002F\u002Fkubb:\u003Ckey>@kubb.studio\u002F...",", works in CI but ends up in shell history and logs.",{"title":498,"searchDepth":499,"depth":499,"links":500},"",5,[501,503,504,505,506],{"id":108,"depth":502,"text":109},2,{"id":140,"depth":502,"text":141},{"id":220,"depth":502,"text":221},{"id":267,"depth":502,"text":268},{"id":325,"depth":502,"text":326},"Pair a local Kubb project with Kubb Studio, choose what Studio may read and write, review generated code in the browser, and keep an agent running.","md",{"layout":510,"title":5,"description":507,"outline":511,"order":513,"navigation":514},"doc",[502,512],3,1,{"title":16,"icon":515},"i-iconoir-cube",{"layout":510,"outline":517},[502,512],{"title":16,"icon":515},"\u002Fdocs\u002F5.x\u002Fintegrations\u002Fstudio",{"title":5,"description":507},{"loc":519},"kubb-labs\u002Fkubb\u002Fdocs\u002F5.x\u002Fintegrations\u002Fstudio.md","docs\u002F5.x\u002Fintegrations\u002Fstudio","Lf6rLDrgyQ0wMydW4uTEGg-7fxdiym2bloBYhU8ePuI",1795522904120]