# Kubb > Kubb is an open source code generator that turns an API spec into TypeScript types, API clients, TanStack Query hooks, Zod schemas and mocks. Canonical Origin: https://kubb.dev/ ## LLM Resources - [Full Content](https://kubb.dev/llms-full.txt): Complete page content in markdown format. - [sitemap.xml](https://kubb.dev/sitemap.xml): XML sitemap for search engines and crawlers. - [robots.txt](https://kubb.dev/robots.txt): Crawler rules and permissions. ## Pages - [Kubb · Turn your API spec into type-safe code](https://kubb.dev/index.md): Kubb is an open source code generator. Point it at your API spec and get TypeScript types, fetch or axios clients, TanStack Query and SWR hooks, Zod schemas and... - [About · Kubb](https://kubb.dev/about.md): Learn why Kubb was built, how its plugin-based code generation works, and where its name comes from. - [Blog - OpenAPI Code Generator Updates & Tutorials · Kubb](https://kubb.dev/blog.md): Latest updates, release notes, and tutorials for Kubb - the TypeScript code generator for OpenAPI specifications. Read about new features and how to use them. - [Kubb as a Claude Code plugin · Kubb](https://kubb.dev/blog/claude-code-plugin.md): Generate TypeScript types, clients, React Query hooks and Zod schemas from OpenAPI in Claude Code with Kubb's commands, skills and MCP server. - [Kubb clients 6.0 · Kubb](https://kubb.dev/blog/clients-v6.md): @kubb/plugin-fetch, @kubb/plugin-axios, and @kubb/plugin-client 6.0 run on one shared core: the same interceptors and types for fetch and axios, any library tha... - [How kubb-lock.json works · Kubb](https://kubb.dev/blog/kubb-lock.md): Kubb 5.27 writes kubb-lock.json next to your config. It lets kubb generate skip a build when nothing changed, and lets --check verify formatted output without r... - [Introducing the Kubb registry · Kubb](https://kubb.dev/blog/kubb-registry.md): The Kubb registry lists reviewed plugins, adapters, and parsers. kubb add installs one and adds it to your config, and kubb update keeps it current. - [Introducing Kubb Studio · Kubb](https://kubb.dev/blog/kubb-studio.md): Kubb Studio lets you generate and review OpenAPI clients in the browser with a local agent, Docker agent, or shared sandbox. - [Release of Kubb 3.0 · Kubb](https://kubb.dev/blog/v3.md): Release notes for Kubb 3.0 covering the new plugin system, breaking changes and migration guide. - [Release of Kubb 4.0 · Kubb](https://kubb.dev/blog/v4.md): Release notes for Kubb 4.0 covering new features, breaking changes and upgrade instructions. - [Release of Kubb 5.0 · Kubb](https://kubb.dev/blog/v5.md): Kubb 5.0 rebuilds code generation around adapters, a universal AST, parsers, and storage, and generates code up to 5.4x faster than v4. - [Contributors - OpenAPI Generator Community · Kubb](https://kubb.dev/contributors.md): Meet the developers and contributors building Kubb, the TypeScript code generator for OpenAPI specifications. Join our open-source community. - [AI assistants - Claude Code, MCP, and llms.txt · Kubb](https://kubb.dev/docs/5.x/ai.md): Every way to use Kubb from an AI assistant, from the Claude Code plugin and the MCP server to Context7 and llms.txt documentation feeds. - [Set up the Claude Code plugin · Kubb](https://kubb.dev/docs/5.x/ai/claude.md): Install the Kubb Claude Code plugin to get /kubb slash commands, the kubb-expert agent, two skills, and the Kubb MCP server in Claude Code. - [Give an assistant the Kubb docs · Kubb](https://kubb.dev/docs/5.x/ai/docs.md): Give an AI assistant current Kubb documentation through Context7 or the llms.txt and llms-full.txt files, so it writes a correct kubb.config.ts. - [Set up the MCP server · Kubb](https://kubb.dev/docs/5.x/ai/mcp.md): Connect Claude Code, Claude Desktop, Cursor, VS Code, and other MCP clients to the Kubb MCP server, and start it in your project folder. - [Changelog · Kubb](https://kubb.dev/docs/5.x/changelog.md): Track all updates, features, and improvements to Kubb - [Contribute to Kubb - Set up, test, and open a PR · Kubb](https://kubb.dev/docs/5.x/community/contributing.md): Find where Kubb code lives, set up the core or plugins repository, pass the quality gates, and open a pull request. - [Kubb ecosystem - Projects, articles, and tutorials · Kubb](https://kubb.dev/docs/5.x/community/ecosystem.md): Projects built with Kubb, articles and tutorials about Kubb, and the ecosystem lists that include it. - [Kubb FAQ - Production use and compatibility · Kubb](https://kubb.dev/docs/5.x/community/faq.md): Answers to common questions about Kubb, covering production use, telemetry, compatibility, and generated code. - [Customize generated code · Kubb](https://kubb.dev/docs/5.x/how-to/customize.md): Change what a Kubb plugin generates without forking it: rename symbols and files with a resolver, rewrite schemas with a macro, or swap a printer. - [Publish a plugin - npm and the Kubb registry · Kubb](https://kubb.dev/docs/5.x/how-to/publish-a-plugin.md): Package a Kubb plugin with a kubb-extension.json manifest and docs, publish it to npm or a GitHub release, and submit it to the Kubb registry. - [Configure generation - Common Kubb recipes · Kubb](https://kubb.dev/docs/5.x/how-to/recipes.md): Configure common Kubb stacks, formatting, linting, post-generate commands, a CI check, reviewable diffs, barrel files, git inputs, watch mode, and several specs... - [Build tool plugins - Generate code during a build · Kubb](https://kubb.dev/docs/5.x/integrations/build-tools.md): Run your kubb.config.ts from Vite, webpack, Rollup, Rolldown, Rspack, esbuild, Farm, Nuxt, or Astro with unplugin-kubb, so every build generates code from your ... - [Astro integration - Generate code from OpenAPI · Kubb](https://kubb.dev/docs/5.x/integrations/build-tools/astro.md): Add the kubb/astro integration to astro.config.mjs so every Astro build generates code from your API spec with the plugins in your kubb.config.ts. - [esbuild plugin - Generate code from OpenAPI · Kubb](https://kubb.dev/docs/5.x/integrations/build-tools/esbuild.md): Add the kubb/esbuild plugin to build.ts so every esbuild build generates code from your API spec with the plugins in your kubb.config.ts. - [Farm plugin - Generate code from OpenAPI · Kubb](https://kubb.dev/docs/5.x/integrations/build-tools/farm.md): Add the kubb/farm plugin to farm.config.ts so every Farm build generates code from your API spec with the plugins in your kubb.config.ts. - [Nuxt module - Generate code from OpenAPI · Kubb](https://kubb.dev/docs/5.x/integrations/build-tools/nuxt.md): Add the kubb/nuxt module to nuxt.config.ts so every Nuxt build generates code from your API spec with the plugins in your kubb.config.ts. - [Rolldown plugin - Generate code from OpenAPI · Kubb](https://kubb.dev/docs/5.x/integrations/build-tools/rolldown.md): Add the kubb/rolldown plugin to rolldown.config.ts so every Rolldown build generates code from your API spec with the plugins in your kubb.config.ts. - [Rollup plugin - Generate code from OpenAPI · Kubb](https://kubb.dev/docs/5.x/integrations/build-tools/rollup.md): Add the kubb/rollup plugin to rollup.config.ts so every Rollup build generates code from your API spec with the plugins in your kubb.config.ts. - [Rspack plugin - Generate code from OpenAPI · Kubb](https://kubb.dev/docs/5.x/integrations/build-tools/rspack.md): Add the kubb/rspack plugin to rspack.config.ts so every Rspack build generates code from your API spec with the plugins in your kubb.config.ts. - [Vite plugin - Generate code from OpenAPI · Kubb](https://kubb.dev/docs/5.x/integrations/build-tools/vite.md): Add the kubb/vite plugin to vite.config.ts so every Vite build generates code from your API spec with the plugins in your kubb.config.ts. - [webpack plugin - Generate code from OpenAPI · Kubb](https://kubb.dev/docs/5.x/integrations/build-tools/webpack.md): Add the kubb/webpack plugin to webpack.config.ts so every webpack build generates code from your API spec with the plugins in your kubb.config.ts. - [Publish Kubb Studio snapshots from CI · Kubb](https://kubb.dev/docs/5.x/integrations/ci.md): Run kubb studio snapshot in GitHub Actions, GitLab CI, or any CI to publish an installable package of your generated code per pull request. - [Publish Kubb snapshots with GitHub Actions · Kubb](https://kubb.dev/docs/5.x/integrations/github-actions.md): Add the kubb-labs/action workflow to publish a Kubb Studio snapshot on each pull request and compare generated files with the base branch and the previous run. - [Publish Kubb snapshots with GitLab CI · Kubb](https://kubb.dev/docs/5.x/integrations/gitlab.md): Add a GitLab CI job that runs kubb studio snapshot on each merge request and compares the generated files with the target branch and the previous pipeline. - [openapi-import - Import OpenAPI specs in TypeScript · Kubb](https://kubb.dev/docs/5.x/integrations/openapi-import.md): Import a .openapi.yaml spec in TypeScript with openapi-import and get the types and enums your kubb.config.ts plugins generate, without generated files. - [Integrate Kubb with Studio, CI, and build tools · Kubb](https://kubb.dev/docs/5.x/integrations/overview.md): See where Kubb runs besides the CLI, from Kubb Studio and CI snapshots to build tool plugins, openapi-import, and AI assistants, all from one kubb.config.ts. - [Connect a project to Kubb Studio · Kubb](https://kubb.dev/docs/5.x/integrations/studio.md): 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. - [Introduction - OpenAPI to TypeScript code generator · Kubb](https://kubb.dev/docs/5.x/introduction.md): Generate TypeScript types, Axios and Fetch clients, TanStack Query hooks, Zod schemas, and Faker and MSW mocks from an OpenAPI spec with Kubb. - [Kubb architecture - Adapters, AST, plugins, and parsers · Kubb](https://kubb.dev/docs/5.x/introduction/architecture.md): Follow an API spec through Kubb's pipeline, from adapter to AST, plugins, parsers, and storage, and see which extension point changes each stage. - [Kubb vs orval, HeyAPI, and openapi-typescript · Kubb](https://kubb.dev/docs/5.x/introduction/comparison.md): Compare Kubb with orval, HeyAPI, and openapi-typescript on speed, memory, generated outputs, OpenAPI 3.2 support, type safety, and client runtime. - [Install Kubb with npm, pnpm, Yarn, or Bun · Kubb](https://kubb.dev/docs/5.x/introduction/installation.md): Set up Kubb in an existing project with the kubb init wizard or by hand with npm, pnpm, Yarn, or Bun, verify the version, and add plugins later with kubb add. - [Move from HeyAPI to Kubb · Kubb](https://kubb.dev/docs/5.x/migrate/from-hey-api.md): Replace HeyAPI (@hey-api/openapi-ts) with Kubb. Generate the same types, then swap the SDK, TanStack Query options, and Zod schemas one step at a time. - [Move from openapi-typescript to Kubb · Kubb](https://kubb.dev/docs/5.x/migrate/from-openapi-typescript.md): Replace openapi-typescript, openapi-fetch, and openapi-react-query with Kubb. Generate the same types, then swap the client and hooks one step at a time. - [Move from orval to Kubb · Kubb](https://kubb.dev/docs/5.x/migrate/from-orval.md): Replace orval with Kubb. Generate the same types, then swap the client, query hooks, Zod schemas, and MSW mocks one step at a time. - [Migrate Kubb v4 to v5 - Config and plugin changes · Kubb](https://kubb.dev/docs/5.x/migrate/from-v4.md): Upgrade a Kubb v4 project to v5 with before and after tables for the config, the OpenAPI adapter, shared options, and each official plugin. - [Kubb CLI commands - Flags, env vars, and exit codes · Kubb](https://kubb.dev/docs/5.x/reference/commands.md): Every kubb CLI command with links to its reference, plus the global flags, environment variables, and exit codes all commands share. - [kubb add - Install an extension from the registry · Kubb](https://kubb.dev/docs/5.x/reference/commands/add.md): The add command installs a plugin, adapter, or parser from the Kubb extension registry at its reviewed version and adds a plugin to kubb.config.ts. - [kubb generate - Generate code from your API spec · Kubb](https://kubb.dev/docs/5.x/reference/commands/generate.md): The generate command runs the Kubb code-generation pipeline from your kubb.config.ts, with watch mode, dry runs, a CI check, and cli, json, file, and html repor... - [kubb init - Set up Kubb in a project · Kubb](https://kubb.dev/docs/5.x/reference/commands/init.md): The init command detects your spec and package manager, asks for plugins and an output folder, then installs Kubb and writes kubb.config.ts. - [kubb list - Show installed extensions · Kubb](https://kubb.dev/docs/5.x/reference/commands/list.md): The list command shows the installed Kubb extensions with their registry id, installed version, pinned registry version, and available updates. - [kubb mcp - Start the Kubb MCP server · Kubb](https://kubb.dev/docs/5.x/reference/commands/mcp.md): The mcp command starts a stdio Model Context Protocol server with a tool for every Kubb command except studio and mcp, such as kubb_generate, kubb_diff, kubb_ad... - [kubb remove - Remove a plugin or parser · Kubb](https://kubb.dev/docs/5.x/reference/commands/remove.md): The remove command deletes a plugin or parser from kubb.config.ts and uninstalls its package. - [kubb studio - Connect a project to Kubb Studio · Kubb](https://kubb.dev/docs/5.x/reference/commands/studio.md): Command reference for kubb studio. Connect a project to Kubb Studio, run it in the background, manage pairing and permissions, and publish CI snapshots. - [kubb update - Update extensions to the pinned version · Kubb](https://kubb.dev/docs/5.x/reference/commands/update.md): The update command moves installed Kubb extensions to the version the Kubb extension registry pins, or lists the available updates with --dry-run. - [kubb validate - Check an API spec · Kubb](https://kubb.dev/docs/5.x/reference/commands/validate.md): The validate command checks a specification with the adapter in your Kubb config, or the OpenAPI adapter without one, and runs no generation. - [kubb.config.ts - Configuration reference · Kubb](https://kubb.dev/docs/5.x/reference/configuration.md): Reference for kubb.config.ts in Kubb v5. How Kubb finds and loads the config, the defaults defineConfig applies, and every top-level and output option. - [Deprecations - APIs removed in Kubb v6 · Kubb](https://kubb.dev/docs/5.x/reference/deprecations.md): Every deprecated Kubb v5 API, the package it ships in, and what to use instead before Kubb v6 removes it. - [Diagnostics - Kubb error codes and fixes · Kubb](https://kubb.dev/docs/5.x/reference/diagnostics.md): Reference for every Kubb diagnostic code, with its severity, cause, and fix, plus the terminal, agent, and JSON formats Kubb reports them in. - [kubb-labs/action - GitHub Action reference · Kubb](https://kubb.dev/docs/5.x/reference/github-actions.md): Reference for kubb-labs/action. Its inputs, outputs, run flow, the Kubb version it runs, and the snapshot comment it writes on pull requests. - [JSX renderer - kubb/jsx component reference · Kubb](https://kubb.dev/docs/5.x/reference/jsx.md): Reference for kubb/jsx, backed by @kubb/renderer-jsx: the jsxRenderer, the tsconfig setup, and the props of every built-in component. - [Kit API - Build Kubb plugins, adapters, and parsers · Kubb](https://kubb.dev/docs/5.x/reference/kit.md): The kubb/kit reference for extension authors: extensions, templates, resolvers, AST, renderer, storage, engine, hooks, and the casing helpers. - [Adapters - Turn a spec into the Kubb AST · Kubb](https://kubb.dev/docs/5.x/reference/kit/adapters.md): Build a Kubb adapter with defineExtension and kind adapter. It converts an input spec into the universal AST. Covers the Adapter interface. - [AST and node builders · Kubb](https://kubb.dev/docs/5.x/reference/kit/ast.md): The ast namespace from kubb/kit. Covers the node tree, schema types, and every helper group, each with what it returns and a sample call. - [Context - this, ctx and useKubb() in every hook · Kubb](https://kubb.dev/docs/5.x/reference/kit/context.md): Reference for the context Kubb passes to plugin code: what this, the ctx argument and useKubb() are in each hook, which composables work where, and withContext. - [Engine - Run Kubb from code with createKubb · Kubb](https://kubb.dev/docs/5.x/reference/kit/engine.md): The programmatic engine in the kubb package: createKubb, the Kubb instance and its build methods, Kubb.generate, BuildOutput, and Diagnostics. - [Extension docs - The docs folder kubb.dev renders · Kubb](https://kubb.dev/docs/5.x/reference/kit/extension-docs.md): Reference for the docs folder a Kubb plugin, adapter, or parser ships on npm: the files kubb.dev renders, titles, guide ids, and the Markdown. - [defineExtension - Plugins, adapters, and parsers · Kubb](https://kubb.dev/docs/5.x/reference/kit/extensions.md): defineExtension in kubb/kit defines a plugin, adapter, or parser. Covers meta, compatibility checks, plugin dependencies, and factory statics. - [Lifecycle hooks - Every kubb:* build event · Kubb](https://kubb.dev/docs/5.x/reference/kit/hooks.md): Every kubb:* hook a build fires, its payload, and when it fires. Listen with kubb.hooks.hook(name, handler) or from a plugin's hooks map. - [kubb-extension.json - Extension manifest reference · Kubb](https://kubb.dev/docs/5.x/reference/kit/manifest.md): Reference for kubb-extension.json, the manifest a Kubb plugin, adapter, or parser ships on npm: its fields, Studio option entries, and validation. - [Parsers - Print generated files as source code · Kubb](https://kubb.dev/docs/5.x/reference/kit/parsers.md): Define a Kubb parser with defineExtension and kind parser. It turns the AST of a generated file into the source written to disk. - [Plugins - Define a Kubb plugin with defineExtension · Kubb](https://kubb.dev/docs/5.x/reference/kit/plugins.md): Define a Kubb plugin with defineExtension and kind plugin: meta, dependencies, setup, and the setup context that registers templates. - [Resolvers - Name symbols, files, and imports · Kubb](https://kubb.dev/docs/5.x/reference/kit/resolvers.md): createResolver builds the Resolver that names a plugin's symbols, files, and imports. Covers built-in members, name reservations, and merging. - [Storage - Where Kubb writes generated files · Kubb](https://kubb.dev/docs/5.x/reference/kit/storage.md): Storage backends decide where Kubb writes generated files. Covers createStorage, the Storage interface, and the fsStorage and memoryStorage backends. - [Templates - Write files with defineTemplate · Kubb](https://kubb.dev/docs/5.x/reference/kit/templates.md): defineTemplate declares a template that writes a plugin's files for each schema or operation. Covers its kinds, the TemplateContext, file, from, code, and the m... - [Shared plugin options · Kubb](https://kubb.dev/docs/5.x/reference/plugin-options.md): The output, group, include, exclude, override, resolver, and macros options every Kubb plugin that writes files accepts, with types, defaults, and precedence. - [Telemetry - What Kubb sends and how to opt out · Kubb](https://kubb.dev/docs/5.x/reference/telemetry.md): What anonymous usage data the Kubb CLI sends, when it sends it, the exact OTLP fields, and how to opt out with DO_NOT_TRACK or KUBB_DISABLE_TELEMETRY. - [Create a Kubb plugin - Write and test a template · Kubb](https://kubb.dev/docs/5.x/tutorials/creating-plugins.md): Build a Kubb plugin that writes the method and path of one API operation to a file, then test its output in memory with createKubb and Vitest. - [Generate TypeScript from OpenAPI in five steps · Kubb](https://kubb.dev/docs/5.x/tutorials/quickstart.md): Follow five steps to generate TypeScript types and a typed Axios client from a one-operation Petstore API spec, then inspect the output and regenerate it. - [Ecosystem - Projects, Articles & Community · Kubb](https://kubb.dev/ecosystem.md): Discover projects built with Kubb, articles featuring Kubb, and community resources. See how teams use Kubb for OpenAPI code generation. - [Extensions for your API spec · Kubb](https://kubb.dev/extensions.md): Browse Kubb plugins that generate TypeScript types, API clients, TanStack Query hooks, Zod schemas and mocks from your API spec, plus adapters and parsers. - [AI extensions for your API spec · Kubb](https://kubb.dev/extensions/category/ai.md): Kubb extensions in the AI category. Compare downloads, stars and release dates, then add one to your Kubb config. - [Client extensions for your API spec · Kubb](https://kubb.dev/extensions/category/client.md): Kubb extensions in the Client category. Compare downloads, stars and release dates, then add one to your Kubb config. - [Docs extensions for your API spec · Kubb](https://kubb.dev/extensions/category/docs.md): Kubb extensions in the Docs category. Compare downloads, stars and release dates, then add one to your Kubb config. - [Documentation extensions for your API spec · Kubb](https://kubb.dev/extensions/category/documentation.md): Kubb extensions in the Documentation category. Compare downloads, stars and release dates, then add one to your Kubb config. - [Framework extensions for your API spec · Kubb](https://kubb.dev/extensions/category/framework.md): Kubb extensions in the Framework category. Compare downloads, stars and release dates, then add one to your Kubb config. - [Mocks extensions for your API spec · Kubb](https://kubb.dev/extensions/category/mocks.md): Kubb extensions in the Mocks category. Compare downloads, stars and release dates, then add one to your Kubb config. - [OpenAPI extensions for your API spec · Kubb](https://kubb.dev/extensions/category/openapi.md): Kubb extensions in the OpenAPI category. Compare downloads, stars and release dates, then add one to your Kubb config. - [Output extensions for your API spec · Kubb](https://kubb.dev/extensions/category/output.md): Kubb extensions in the Output category. Compare downloads, stars and release dates, then add one to your Kubb config. - [Testing extensions for your API spec · Kubb](https://kubb.dev/extensions/category/testing.md): Kubb extensions in the Testing category. Compare downloads, stars and release dates, then add one to your Kubb config. - [Types extensions for your API spec · Kubb](https://kubb.dev/extensions/category/types.md): Kubb extensions in the Types category. Compare downloads, stars and release dates, then add one to your Kubb config. - [TypeScript extensions for your API spec · Kubb](https://kubb.dev/extensions/category/typescript.md): Kubb extensions in the TypeScript category. Compare downloads, stars and release dates, then add one to your Kubb config. - [Validation extensions for your API spec · Kubb](https://kubb.dev/extensions/category/validation.md): Kubb extensions in the Validation category. Compare downloads, stars and release dates, then add one to your Kubb config. - [Playwright plugin · Kubb](https://kubb.dev/extensions/ericlm/kubb-plugin-playwright.md): Generates a typed Playwright request helper per OpenAPI operation that returns the native APIResponse with a typed json(). - [How-to guides · Playwright plugin · Kubb](https://kubb.dev/extensions/ericlm/kubb-plugin-playwright/guides.md): How-to guides for kubb-plugin-playwright, the Kubb Playwright plugin. Each guide walks through one task. - [Native options and responses · Playwright plugin · Kubb](https://kubb.dev/extensions/ericlm/kubb-plugin-playwright/guides/native-options-and-responses.md): Pass Playwright fetch options through a generated helper and read the native response it returns. - [Send request bodies · Playwright plugin · Kubb](https://kubb.dev/extensions/ericlm/kubb-plugin-playwright/guides/send-request-bodies.md): Send JSON, URL-encoded forms, and multipart files through the generated helpers, and know how each body reaches Playwright. - [Options · Playwright plugin · Kubb](https://kubb.dev/extensions/ericlm/kubb-plugin-playwright/options.md): Every option kubb-plugin-playwright accepts and what it does, for configuring the Playwright plugin in your Kubb config. - [Adapters for your API spec · Kubb](https://kubb.dev/extensions/kind/adapters.md): Adapters read your API spec, such as OpenAPI 2.0 (Swagger), 3.0, 3.1 or 3.2, into the AST that every Kubb plugin generates from. - [Parsers for your API spec · Kubb](https://kubb.dev/extensions/kind/parsers.md): Parsers print the code Kubb plugins generate as TypeScript or Markdown files. - [Plugins for your API spec · Kubb](https://kubb.dev/extensions/kind/plugins.md): Plugins generate TypeScript types, fetch and axios clients, TanStack Query and SWR hooks, Zod schemas and MSW mocks from your API spec. Pick what you need. - [OpenAPI adapter · Kubb](https://kubb.dev/extensions/kubb-labs/adapter-oas.md): Reads an OpenAPI 2.0, 3.0, 3.1, or 3.2 spec and converts every schema and operation into the AST that Kubb plugins generate from. - [Options · OpenAPI adapter · Kubb](https://kubb.dev/extensions/kubb-labs/adapter-oas/options.md): Every option @kubb/adapter-oas accepts and what it does, for configuring the OpenAPI adapter in your Kubb config. - [Markdown parser · Kubb](https://kubb.dev/extensions/kubb-labs/parser-md.md): Writes .md and .markdown files from the Kubb AST, with YAML frontmatter from a file's meta. - [Options · Markdown parser · Kubb](https://kubb.dev/extensions/kubb-labs/parser-md/options.md): Every option @kubb/parser-md accepts and what it does, for configuring the Markdown parser in your Kubb config. - [TypeScript parser · Kubb](https://kubb.dev/extensions/kubb-labs/parser-ts.md): Prints the Kubb AST as TypeScript source and rewrites the extensions of relative imports and exports. - [Options · TypeScript parser · Kubb](https://kubb.dev/extensions/kubb-labs/parser-ts/options.md): Every option @kubb/parser-ts accepts and what it does, for configuring the TypeScript parser in your Kubb config. - [OpenAPI to Axios client generator · Kubb](https://kubb.dev/extensions/kubb-labs/plugin-axios.md): Generates a type-safe axios client from your OpenAPI spec, one async function per operation, so each call stays in sync with the API. - [How-to guides · Axios plugin · Kubb](https://kubb.dev/extensions/kubb-labs/plugin-axios/guides.md): How-to guides for @kubb/plugin-axios, the Kubb Axios plugin. Each guide walks through one task. - [Call operations · Axios plugin · Kubb](https://kubb.dev/extensions/kubb-labs/plugin-axios/guides/calling-operations.md): Call a generated function with grouped request options, read the typed result, and pass content types or native axios settings for one call. - [Configure requests · Axios plugin · Kubb](https://kubb.dev/extensions/kubb-labs/plugin-axios/guides/configure-requests.md): Set the base URL, credentials, shared headers, and interceptors on the generated Axios client, for every call or for one. - [Handle errors · Axios plugin · Kubb](https://kubb.dev/extensions/kubb-labs/plugin-axios/guides/error-handling.md): Handle HTTP and network errors in the generated Axios client with ResponseError, or return errors as values with throwOnError: false. - [Migrate to v6 · Axios plugin · Kubb](https://kubb.dev/extensions/kubb-labs/plugin-axios/guides/migrate-to-v6.md): Upgrade @kubb/plugin-axios from v5 to v6, which runs on the shared client core from @kubb/plugin-client with axios as the transport. - [Configure serialization · Axios plugin · Kubb](https://kubb.dev/extensions/kubb-labs/plugin-axios/guides/serialization.md): Configure how the generated Axios client serializes OpenAPI parameters and encodes request and response bodies by media type. - [Server-sent events · Axios plugin · Kubb](https://kubb.dev/extensions/kubb-labs/plugin-axios/guides/server-sent-events.md): Consume typed server-sent events and JSON Lines with the generated Axios client. Stop, resume, and handle streaming errors. - [Use a custom transport · Axios plugin · Kubb](https://kubb.dev/extensions/kubb-labs/plugin-axios/guides/transport.md): Replace the network send of the generated axios client with your own axios instance or function. - [Options · Axios plugin · Kubb](https://kubb.dev/extensions/kubb-labs/plugin-axios/options.md): Every option @kubb/plugin-axios accepts and what it does, for configuring the Axios plugin in your Kubb config. - [TypeScript barrel file generator · Kubb](https://kubb.dev/extensions/kubb-labs/plugin-barrel.md): Generates index.ts barrel files for every plugin output, plus a root barrel when output.barrel is set on defineConfig. - [How-to guides · Barrel plugin · Kubb](https://kubb.dev/extensions/kubb-labs/plugin-barrel/guides.md): How-to guides for @kubb/plugin-barrel, the Kubb Barrel plugin. Each guide walks through one task. - [Barrel rules · Barrel plugin · Kubb](https://kubb.dev/extensions/kubb-labs/plugin-barrel/guides/barrel-rules.md): Which barrel setting applies to each plugin, when a plugin gets no barrel, and what each index.ts re-exports. - [Options · Barrel plugin · Kubb](https://kubb.dev/extensions/kubb-labs/plugin-barrel/options.md): Every option @kubb/plugin-barrel accepts and what it does, for configuring the Barrel plugin in your Kubb config. - [OpenAPI to TypeScript API client generator · Kubb](https://kubb.dev/extensions/kubb-labs/plugin-client.md): Generates typed operation functions from your OpenAPI spec that call a client module you own, so you decide the transport, auth, and error handling. - [How-to guides · Client plugin · Kubb](https://kubb.dev/extensions/kubb-labs/plugin-client/guides.md): How-to guides for @kubb/plugin-client, the Kubb Client plugin. Each guide walks through one task. - [Call operations · Client plugin · Kubb](https://kubb.dev/extensions/kubb-labs/plugin-client/guides/calling-operations.md): Call a generated function with one grouped options object. It returns your client's promise, shaped by your RequestResult type. - [Migrate to v6 · Client plugin · Kubb](https://kubb.dev/extensions/kubb-labs/plugin-client/guides/migrate-to-v6.md): Update your client module for @kubb/plugin-client 6, which calls your client with type arguments and streams through client.stream. - [Stream Server-Sent Events and JSON Lines · Client plugin · Kubb](https://kubb.dev/extensions/kubb-labs/plugin-client/guides/streaming.md): Add client.stream and its types to your client module, so streamed operations compile and yield typed events or lines. - [Validate requests and responses · Client plugin · Kubb](https://kubb.dev/extensions/kubb-labs/plugin-client/guides/validate-requests-and-responses.md): Pass Zod schemas from @kubb/plugin-zod to your client and run them there. For Valibot, add pluginValibot() from @kubb/plugin-valibot and write 'valibot' whereve... - [Write your client · Client plugin · Kubb](https://kubb.dev/extensions/kubb-labs/plugin-client/guides/write-your-client.md): Build the client module that every generated function imports through importPath. You own its transport, auth, and error handling. - [Options · Client plugin · Kubb](https://kubb.dev/extensions/kubb-labs/plugin-client/options.md): Every option @kubb/plugin-client accepts and what it does, for configuring the Client plugin in your Kubb config. - [OpenAPI to Cypress request generator · Kubb](https://kubb.dev/extensions/kubb-labs/plugin-cypress.md): Generates a typed cy.request() wrapper per OpenAPI operation, so your Cypress tests call the API through helpers and catch broken calls at compile time. - [Options · Cypress plugin · Kubb](https://kubb.dev/extensions/kubb-labs/plugin-cypress/options.md): Every option @kubb/plugin-cypress accepts and what it does, for configuring the Cypress plugin in your Kubb config. - [OpenAPI to Faker mock data generator · Kubb](https://kubb.dev/extensions/kubb-labs/plugin-faker.md): Generates a Faker.js mock-data factory for every schema in your OpenAPI spec. - [Options · Faker plugin · Kubb](https://kubb.dev/extensions/kubb-labs/plugin-faker/options.md): Every option @kubb/plugin-faker accepts and what it does, for configuring the Faker plugin in your Kubb config. - [OpenAPI to Fetch client generator · Kubb](https://kubb.dev/extensions/kubb-labs/plugin-fetch.md): Generates a type-safe Fetch API client from your OpenAPI spec, one async function per operation, so each call stays in sync with the API. - [How-to guides · Fetch plugin · Kubb](https://kubb.dev/extensions/kubb-labs/plugin-fetch/guides.md): How-to guides for @kubb/plugin-fetch, the Kubb Fetch plugin. Each guide walks through one task. - [Call operations · Fetch plugin · Kubb](https://kubb.dev/extensions/kubb-labs/plugin-fetch/guides/calling-operations.md): Call a generated function with grouped request options, read the typed result, and pass content types or native fetch settings for one call. - [Configure requests · Fetch plugin · Kubb](https://kubb.dev/extensions/kubb-labs/plugin-fetch/guides/configure-requests.md): Set the base URL, credentials, shared headers, and interceptors on the generated Fetch client, for every call or for one. - [Handle errors · Fetch plugin · Kubb](https://kubb.dev/extensions/kubb-labs/plugin-fetch/guides/error-handling.md): Handle HTTP and network errors in the generated Fetch client with ResponseError, or return errors as values with throwOnError: false. - [Migrate to v6 · Fetch plugin · Kubb](https://kubb.dev/extensions/kubb-labs/plugin-fetch/guides/migrate-to-v6.md): Upgrade @kubb/plugin-fetch from v5 to v6, which runs on the shared client core from @kubb/plugin-client, the same core as @kubb/plugin-axios. - [Configure serialization · Fetch plugin · Kubb](https://kubb.dev/extensions/kubb-labs/plugin-fetch/guides/serialization.md): Configure how the generated Fetch client serializes OpenAPI parameters and encodes request and response bodies by media type. - [Server-sent events · Fetch plugin · Kubb](https://kubb.dev/extensions/kubb-labs/plugin-fetch/guides/server-sent-events.md): Consume typed server-sent events and JSON Lines with the generated Fetch client. Stop, resume, and handle streaming errors. - [Use a custom transport · Fetch plugin · Kubb](https://kubb.dev/extensions/kubb-labs/plugin-fetch/guides/transport.md): Replace the network send of the generated fetch client with another HTTP library or your own function. - [Options · Fetch plugin · Kubb](https://kubb.dev/extensions/kubb-labs/plugin-fetch/options.md): Every option @kubb/plugin-fetch accepts and what it does, for configuring the Fetch plugin in your Kubb config. - [OpenAPI to Ky client generator · Kubb](https://kubb.dev/extensions/kubb-labs/plugin-ky.md): Generates a type-safe Ky client from your OpenAPI spec, one async function per operation, so each call stays in sync with the API. - [How-to guides · Ky plugin · Kubb](https://kubb.dev/extensions/kubb-labs/plugin-ky/guides.md): How-to guides for @kubb/plugin-ky, the Kubb Ky plugin. Each guide walks through one task. - [Call operations · Ky plugin · Kubb](https://kubb.dev/extensions/kubb-labs/plugin-ky/guides/calling-operations.md): Call a generated function with grouped request options, read the typed result, and pass content types or Ky options for one call. - [Configure requests · Ky plugin · Kubb](https://kubb.dev/extensions/kubb-labs/plugin-ky/guides/configure-requests.md): Set the base URL, credentials, shared headers, and interceptors on the generated Ky client, for every call or for one. - [Handle errors · Ky plugin · Kubb](https://kubb.dev/extensions/kubb-labs/plugin-ky/guides/error-handling.md): Handle HTTP and network errors in the generated Ky client with ResponseError, or return errors as values with throwOnError: false. - [Configure serialization · Ky plugin · Kubb](https://kubb.dev/extensions/kubb-labs/plugin-ky/guides/serialization.md): Configure how the generated Ky client serializes OpenAPI parameters and encodes request and response bodies by media type. - [Server-sent events · Ky plugin · Kubb](https://kubb.dev/extensions/kubb-labs/plugin-ky/guides/server-sent-events.md): Consume typed server-sent events and JSON Lines with the generated Ky client. Stop, resume, and handle streaming errors. - [Use a custom transport · Ky plugin · Kubb](https://kubb.dev/extensions/kubb-labs/plugin-ky/guides/transport.md): Send the generated client through your own Ky instance, or replace the network send with your own function. - [Options · Ky plugin · Kubb](https://kubb.dev/extensions/kubb-labs/plugin-ky/options.md): Every option @kubb/plugin-ky accepts and what it does, for configuring the Ky plugin in your Kubb config. - [OpenAPI to MCP server generator · Kubb](https://kubb.dev/extensions/kubb-labs/plugin-mcp.md): Generates a Model Context Protocol server from your OpenAPI spec, so AI assistants can call each operation as a typed tool. - [How-to guides · MCP plugin · Kubb](https://kubb.dev/extensions/kubb-labs/plugin-mcp/guides.md): How-to guides for @kubb/plugin-mcp, the Kubb MCP plugin. Each guide walks through one task. - [Run an MCP server · MCP plugin · Kubb](https://kubb.dev/extensions/kubb-labs/plugin-mcp/guides/server.md): Generate an MCP server from your OpenAPI spec, start it, and connect Claude Code or Claude Desktop to its tools. - [Options · MCP plugin · Kubb](https://kubb.dev/extensions/kubb-labs/plugin-mcp/options.md): Every option @kubb/plugin-mcp accepts and what it does, for configuring the MCP plugin in your Kubb config. - [OpenAPI to MSW mock handler generator · Kubb](https://kubb.dev/extensions/kubb-labs/plugin-msw.md): Generates MSW request handlers from your OpenAPI spec so you can mock the API in tests and during local development. - [How-to guides · MSW plugin · Kubb](https://kubb.dev/extensions/kubb-labs/plugin-msw/guides.md): How-to guides for @kubb/plugin-msw, the Kubb MSW plugin. Each guide walks through one task. - [Mock API responses · MSW plugin · Kubb](https://kubb.dev/extensions/kubb-labs/plugin-msw/guides/mock-api.md): Generate typed MSW handlers and register them in tests or a browser worker. - [Options · MSW plugin · Kubb](https://kubb.dev/extensions/kubb-labs/plugin-msw/options.md): Every option @kubb/plugin-msw accepts and what it does, for configuring the MSW plugin in your Kubb config. - [OpenAPI to React Query generator · Kubb](https://kubb.dev/extensions/kubb-labs/plugin-react-query.md): Generates typed TanStack Query helpers for React from your OpenAPI spec: queryOptions and mutationOptions factories with cache keys, plus optional hooks. - [How-to guides · React Query plugin · Kubb](https://kubb.dev/extensions/kubb-labs/plugin-react-query/guides.md): How-to guides for @kubb/plugin-react-query, the Kubb React Query plugin. Each guide walks through one task. - [Call operations · React Query plugin · Kubb](https://kubb.dev/extensions/kubb-labs/plugin-react-query/guides/calling-operations.md): Use the generated TanStack Query hooks and factories in React: queries, mutations, infinite lists, and suspense. - [Infinite queries with useInfiniteQuery · React Query plugin · Kubb](https://kubb.dev/extensions/kubb-labs/plugin-react-query/guides/infinite-queries.md): Generate useInfiniteQuery hooks for paginated endpoints, read the next cursor from the response, and stop once the last page arrives. - [TanStack Query keys · React Query plugin · Kubb](https://kubb.dev/extensions/kubb-labs/plugin-react-query/guides/query-keys.md): See the query key each generated React Query hook uses, invalidate or read the cache with it, and add your own prefix to the default key. - [Options · React Query plugin · Kubb](https://kubb.dev/extensions/kubb-labs/plugin-react-query/options.md): Every option @kubb/plugin-react-query accepts and what it does, for configuring the React Query plugin in your Kubb config. - [OpenAPI to Redoc documentation generator · Kubb](https://kubb.dev/extensions/kubb-labs/plugin-redoc.md): Generates a single-file HTML page from your OpenAPI spec with Redoc, rebuilt on every Kubb run so the docs match the spec your code comes from. - [Options · Redoc plugin · Kubb](https://kubb.dev/extensions/kubb-labs/plugin-redoc/options.md): Every option @kubb/plugin-redoc accepts and what it does, for configuring the Redoc plugin in your Kubb config. - [OpenAPI to SWR hook generator · Kubb](https://kubb.dev/extensions/kubb-labs/plugin-swr.md): Generates typed SWR hooks from your OpenAPI spec, so data fetching stays in sync with the API. - [How-to guides · SWR plugin · Kubb](https://kubb.dev/extensions/kubb-labs/plugin-swr/guides.md): How-to guides for @kubb/plugin-swr, the Kubb SWR plugin. Each guide walks through one task. - [Call operations · SWR plugin · Kubb](https://kubb.dev/extensions/kubb-labs/plugin-swr/guides/calling-operations.md): Use the generated useSWR and useSWRMutation hooks, and skip or freeze a request with the Kubb options. - [SWR keys · SWR plugin · Kubb](https://kubb.dev/extensions/kubb-labs/plugin-swr/guides/query-keys.md): See the key each generated useSWR and useSWRMutation hook passes, revalidate with SWR's mutate, and add your own prefix to the default key. - [Options · SWR plugin · Kubb](https://kubb.dev/extensions/kubb-labs/plugin-swr/options.md): Every option @kubb/plugin-swr accepts and what it does, for configuring the SWR plugin in your Kubb config. - [OpenAPI to TypeScript generator · Kubb](https://kubb.dev/extensions/kubb-labs/plugin-ts.md): Generates TypeScript types and interfaces from your OpenAPI spec, the typed foundation the other Kubb plugins build on. - [How-to guides · TypeScript plugin · Kubb](https://kubb.dev/extensions/kubb-labs/plugin-ts/guides.md): How-to guides for @kubb/plugin-ts, the Kubb TypeScript plugin. Each guide walks through one task. - [Customize generated types · TypeScript plugin · Kubb](https://kubb.dev/extensions/kubb-labs/plugin-ts/guides/customization.md): Prefix TypeScript names, change how a schema type prints, and remove descriptions. - [Migrate to v6 · TypeScript plugin · Kubb](https://kubb.dev/extensions/kubb-labs/plugin-ts/guides/migrate-to-v6.md): Upgrade @kubb/plugin-ts from v5 to v6, which writes each operation's types inline where clients, hooks, and mocks use them, instead of in a types file per opera... - [Options · TypeScript plugin · Kubb](https://kubb.dev/extensions/kubb-labs/plugin-ts/options.md): Every option @kubb/plugin-ts accepts and what it does, for configuring the TypeScript plugin in your Kubb config. - [OpenAPI to Valibot schema generator · Kubb](https://kubb.dev/extensions/kubb-labs/plugin-valibot.md): Generates Valibot v1 schemas from your OpenAPI spec so you validate API responses, form input, and query params at runtime. - [How-to guides · Valibot plugin · Kubb](https://kubb.dev/extensions/kubb-labs/plugin-valibot/guides.md): How-to guides for @kubb/plugin-valibot, the Kubb Valibot plugin. Each guide walks through one task. - [Coerce input with Valibot · Valibot plugin · Kubb](https://kubb.dev/extensions/kubb-labs/plugin-valibot/guides/coercion.md): Set coercion to convert form data and query strings before Valibot validates them, and see which checks each key changes. - [Customize generated schemas · Valibot plugin · Kubb](https://kubb.dev/extensions/kubb-labs/plugin-valibot/guides/customization.md): Prefix inferred types, change Valibot calls, and encode custom request types. - [Valibot schemas for OpenAPI formats · Valibot plugin · Kubb](https://kubb.dev/extensions/kubb-labs/plugin-valibot/guides/format-mappings.md): Look up the Valibot call Kubb writes for each OpenAPI type and format, such as v.uuid() for format: uuid, and the keywords that add a v.check. - [Infer TypeScript types from Valibot schemas · Valibot plugin · Kubb](https://kubb.dev/extensions/kubb-labs/plugin-valibot/guides/inferred-types.md): Set inferred to export a type next to each Valibot schema, so you can skip @kubb/plugin-ts. - [Options · Valibot plugin · Kubb](https://kubb.dev/extensions/kubb-labs/plugin-valibot/options.md): Every option @kubb/plugin-valibot accepts and what it does, for configuring the Valibot plugin in your Kubb config. - [OpenAPI to Vue Query generator · Kubb](https://kubb.dev/extensions/kubb-labs/plugin-vue-query.md): Generates typed TanStack Query helpers for Vue from your OpenAPI spec: queryOptions factories with query and mutation keys, plus optional composables. - [How-to guides · Vue Query plugin · Kubb](https://kubb.dev/extensions/kubb-labs/plugin-vue-query/guides.md): How-to guides for @kubb/plugin-vue-query, the Kubb Vue Query plugin. Each guide walks through one task. - [Call operations · Vue Query plugin · Kubb](https://kubb.dev/extensions/kubb-labs/plugin-vue-query/guides/calling-operations.md): Use the generated TanStack Query composables and factories in Vue: queries, mutations, and infinite lists with reactive parameters. - [Infinite queries with useInfiniteQuery · Vue Query plugin · Kubb](https://kubb.dev/extensions/kubb-labs/plugin-vue-query/guides/infinite-queries.md): Generate useInfiniteQuery composables for paginated endpoints, read the next cursor from the response, and stop once the last page arrives. - [TanStack Query keys · Vue Query plugin · Kubb](https://kubb.dev/extensions/kubb-labs/plugin-vue-query/guides/query-keys.md): See the query key each generated Vue Query composable uses, invalidate or read the cache with it, and add your own prefix to the default key. - [Options · Vue Query plugin · Kubb](https://kubb.dev/extensions/kubb-labs/plugin-vue-query/options.md): Every option @kubb/plugin-vue-query accepts and what it does, for configuring the Vue Query plugin in your Kubb config. - [OpenAPI to Zod schema generator · Kubb](https://kubb.dev/extensions/kubb-labs/plugin-zod.md): Generates Zod v4 schemas from your OpenAPI spec so you validate API responses, form input, and query params at runtime. - [How-to guides · Zod plugin · Kubb](https://kubb.dev/extensions/kubb-labs/plugin-zod/guides.md): How-to guides for @kubb/plugin-zod, the Kubb Zod plugin. Each guide walks through one task. - [Coerce input with Zod · Zod plugin · Kubb](https://kubb.dev/extensions/kubb-labs/plugin-zod/guides/coercion.md): Set coercion to convert form data and query strings with z.coerce before Zod validates them, and see which format checks each key turns off. - [Compile Zod schemas · Zod plugin · Kubb](https://kubb.dev/extensions/kubb-labs/plugin-zod/guides/compiled-schemas.md): Set compile to wrap generated schemas in z.compile(...) for faster validation, and see which schemas stay on the interpreter. Needs Zod 4.5 or later. - [Customize generated schemas · Zod plugin · Kubb](https://kubb.dev/extensions/kubb-labs/plugin-zod/guides/customization.md): Prefix inferred types, change Zod validators, and encode custom request types. - [Zod validators for OpenAPI formats · Zod plugin · Kubb](https://kubb.dev/extensions/kubb-labs/plugin-zod/guides/format-mappings.md): Look up the Zod v4 call Kubb writes for each OpenAPI type and format, such as z.uuid() for format: uuid, and the keywords that add a z.refine check. - [Infer TypeScript types from Zod schemas · Zod plugin · Kubb](https://kubb.dev/extensions/kubb-labs/plugin-zod/guides/inferred-types.md): Set inferred to export a z.infer type next to each Zod schema, or z.input and z.output types for codecs, so you can skip @kubb/plugin-ts. - [Options · Zod plugin · Kubb](https://kubb.dev/extensions/kubb-labs/plugin-zod/options.md): Every option @kubb/plugin-zod accepts and what it does, for configuring the Zod plugin in your Kubb config. - [Kubb registry · Kubb](https://kubb.dev/registry.md): The list of Kubb extensions that the Kubb CLI, Kubb Studio and kubb.dev read. It is a set of static JSON documents under one base URL. - [Sponsor Kubb, the API spec to TypeScript generator · Kubb](https://kubb.dev/sponsors.md): Sponsor Kubb on GitHub Sponsors or Open Collective to fund maintenance, releases and new plugins. Bronze tiers and up show your avatar on kubb.dev.