# TypeScript SDK

> Part of the OVHcloud developer hub. Index of every page and section: https://developers.eu.ovhcloud.com/llms.txt
> Everything in one file: https://developers.eu.ovhcloud.com/llms-full.txt

A typed method for every API operation, on Node.js, Deno and Bun.

Latest release 0.2.2 Nov 18, 2026 [npm](https://www.npmjs.com/package/@ovhcloud/sdk)

[github.com/ovh/sdk-typescript](https://github.com/ovh/sdk-typescript)

## Install

Node.js 22.12 or later (tested on 22, 24 and 26), Deno 2 or Bun. The package is an ES module. You also need OAuth2 credentials: the client ID and secret of a service account.

```bash
npm install @ovhcloud/sdk     # Node.js
deno add npm:@ovhcloud/sdk    # Deno
bun add @ovhcloud/sdk         # Bun
```

## First program

This prints the details of your account: `GET /v1/me`. Copy it, set your credentials, run it.

```typescript
import { Client } from "@ovhcloud/sdk";

const client = new Client(); // reads OVH_CLIENT_ID, OVH_CLIENT_SECRET, OVH_REGION

const account = await client.me.getAccountDetails(); // GET /v1/me
console.log("account:", account.nichandle);
console.log("email:  ", account.email);
console.log("country:", account.country);
```

## Run it

```bash
export OVH_CLIENT_ID=...  OVH_CLIENT_SECRET=...
export OVH_REGION=eu    # eu (default), ca or us
node first.ts           # Node.js 22.18 or later runs TypeScript as it is
```

[Next OKMS SDK →](https://developers.eu.ovhcloud.com/sdks/okms.md)
