Skip to content
Integrations

Connect a project to Kubb Studio

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.

Kubb Studio lets you generate and review your project's clients, types, schemas, hooks, and mocks from the browser. kubb studio connects your project as an agent: Studio sends the job, and Kubb runs on your machine.

kubb studio needs Kubb 5.11.6 or later. Studio refuses older agents. Pick the agent that fits:

AgentRuns onUse it for
kubb studioYour machineYour own project
Docker agentYour infrastructureA team connection that stays up. An organization admin approves its pairing code.
Shared sandboxStudioA quick trial, with a spec you are fine sharing
kubb studio snapshotCIA package per pull request: CI snapshots

Connect your project

Run this in your project folder:

Terminal
kubb studio

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.

Choose permissions

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.

FlagLets Studio
--allow-readRead generated file contents and diffs.
--allow-read-astRead the spec as Kubb parsed it.
--allow-writeWrite generated files to your output folder.
--allow-execRun the formatter, the linter, and output.postGenerate. Needs --allow-write too.

See Permissions for every flag, such as --allow-config-edit.

Review and save generated files

Connect with both flags to view contents and diffs, then write the files to disk:

Terminal
kubb studio --allow-read --allow-write
  • Without --allow-write, Kubb stages the files in a temporary folder and leaves your output folder unchanged.
  • With --allow-read, 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.
  • The agent keeps recent generations in node_modules/.cache/kubb. See Environment variables for the limits.

Keep an agent running in the background

Terminal
kubb studio start --allow-read   # pair if needed, then connect in the background
kubb studio status               # check that the worker is connected
kubb studio stop                 # end the background connection

See Background connection for worker states, logs, and restarts.

Without a TTY, the CLI skips the permission prompts, so pass the flags the run needs. In CI it does not pair either: use kubb studio snapshot with a CI API key.

Give your AI tools your API

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.

  1. Connect the agent with --allow-read-ast and generate. Studio reads the spec of the latest successful generation.
  2. In Studio, open Settings › your organization › AI, select Publish an agent, and choose the agent.
  3. Create a token of type AI (read-only) under Settings › Developers › Tokens. A registry key does not work. Git asks for this key as the password, with any username.
  4. Add the marketplace once, then install the plugin for each API:
claude plugin marketplace add https://kubb.studio/plugins/<organization-slug>.git
claude plugin install <plugin>@<marketplace>

Studio shows the exact commands for each plugin. After the spec changes, republish the agent and update the marketplace in your tool.

An AI key in the URL, such as https://kubb:<key>@kubb.studio/..., works in CI but ends up in shell history and logs.