---
title: "How-to guides · Client plugin · Kubb"
description: "How-to guides for @kubb/plugin-client, the Kubb Client plugin. Each guide walks through one task."
canonical_url: "https://kubb.dev/extensions/kubb-labs/plugin-client/guides"
meta:
  author: "Stijn Van Hulle"
  "og:description": "How-to guides for @kubb/plugin-client, the Kubb Client plugin. Each guide walks through one task."
  "og:image": "https://kubb.dev/_og/s/o_d329aeb55ccd196f.png"
  "og:image:height": "630"
  "og:image:type": image/png
  "og:image:width": "1200"
  "og:title": "How-to guides · Client plugin · Kubb"
  "twitter:image": "https://kubb.dev/_og/s/o_d329aeb55ccd196f.png"
---

> Index of every page on this site: [llms.txt](https://kubb.dev/llms.txt)

![Client logo](https://kubb.dev/feature/javascript.svg)

**Client**

Officialv6.7.2

@kubb/plugin-client

**$**kubb add plugin-clientkubb add plugin-client

# **How-to guides**

5 guides

[**Call operations**Call a generated function with one grouped options object. It returns your client's promise, shaped by your RequestResult type.](https://kubb.dev/extensions/kubb-labs/plugin-client/guides/calling-operations) [**Migrate to v6**Update your client module for @kubb/plugin-client 6, which calls your client with type arguments and streams through client.stream.](https://kubb.dev/extensions/kubb-labs/plugin-client/guides/migrate-to-v6) [**Stream Server-Sent Events and JSON Lines**Add client.stream and its types to your client module, so streamed operations compile and yield typed events or lines.](https://kubb.dev/extensions/kubb-labs/plugin-client/guides/streaming) [**Validate requests and responses**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' wherever this guide writes 'zod'.](https://kubb.dev/extensions/kubb-labs/plugin-client/guides/validate-requests-and-responses) [**Write your client**Build the client module that every generated function imports through importPath. You own its transport, auth, and error handling.](https://kubb.dev/extensions/kubb-labs/plugin-client/guides/write-your-client)

```json
{"@context":"https://schema.org","@graph":[{"@id":"https://kubb.dev/#website","@type":"WebSite","description":"Kubb is an open source code generator that turns an API spec into TypeScript types, API clients, TanStack Query hooks, Zod schemas and mocks.","name":"Kubb","url":"https://kubb.dev/","publisher":{"@id":"https://kubb.dev/#identity"}},{"@id":"https://kubb.dev/extensions/kubb-labs/plugin-client/guides#webpage","@type":"WebPage","description":"How-to guides for @kubb/plugin-client, the Kubb Client plugin. Each guide walks through one task.","name":"How-to guides · Client plugin · Kubb","url":"https://kubb.dev/extensions/kubb-labs/plugin-client/guides","isPartOf":{"@id":"https://kubb.dev/#website"},"potentialAction":[{"@type":"ReadAction","target":["https://kubb.dev/extensions/kubb-labs/plugin-client/guides"]}],"primaryImageOfPage":{"@id":"https://kubb.dev/#logo"}},{"@id":"https://kubb.dev/#identity","@type":"Organization","description":"Kubb is an open source code generator. It turns an API spec, such as OpenAPI, into TypeScript types, API clients, TanStack Query hooks, Zod schemas and mocks.","email":"kubb@kubb.dev","name":"Kubb","url":"https://kubb.dev","founder":{"@id":"https://kubb.dev/#founder"},"logo":{"@id":"https://kubb.dev/#logo"},"sameAs":["https://github.com/kubb-labs/kubb","https://discord.gg/shfBFeczrm","https://www.linkedin.com/company/kubb-labs"]},{"@id":"https://kubb.dev/#logo","@type":"ImageObject","caption":"Kubb","contentUrl":"https://kubb.dev/logo.png","inLanguage":"en","url":"https://kubb.dev/logo.png"}]}
```

## Sitemap

See the full [sitemap](https://kubb.dev/sitemap.md) for all pages.
