# SDKs

OhAuthCat SDKs come in two kinds: **server SDKs** for your backend, which use your secret API key, and **client SDKs** for browsers and mobile apps, which use only your publishable key.

## Install a server SDK

**Node**

```sh
npm install @ohauthcat/node
```

**Python**

```sh
pip install ohauthcat
```

**Go**

```sh
go get ohauthcat.com/sdk-go@v0.0.2
```

**Rust**

```sh
cargo add ohauthcat
```

**Java**

```xml
<dependency>
  <groupId>com.ohauthcat</groupId>
  <artifactId>ohauthcat</artifactId>
  <version>0.0.2</version>
</dependency>
```

**Ruby**

```sh
gem install ohauthcat -v 0.0.2
```

**PHP**

```sh
composer require ohauthcat/ohauthcat-php:0.0.2
```

**.NET**

```sh
dotnet add package OhAuthCat --version 0.0.2
```

## Which SDK covers what

**Server SDKs** use your secret API key. They cover every management API operation (generated from the OpenAPI description), the SSO helpers (authorization URL with PKCE, code exchange) and webhook verification.

| Language | Page                    | Status    |
| -------- | ----------------------- | --------- |
| Node.js  | [Node](/sdks/node/)     | Available |
| Python   | [Python](/sdks/python/) | Available |
| Go       | [Go](/sdks/go/)         | Available |
| Rust     | [Rust](/sdks/rust/)     | Available |
| Java     | [Java](/sdks/java/)     | Available |
| Ruby     | [Ruby](/sdks/ruby/)     | Available |
| PHP      | [PHP](/sdks/php/)       | Available |
| .NET     | [.NET](/sdks/dotnet/)   | Available |

**Client SDKs** sign your end users in through the [hosted login](/user-management/hosted-login/) with your publishable key (`pk_…`). They never hold a secret key.

| Platform     | Page                                | Status    |
| ------------ | ----------------------------------- | --------- |
| Browser (JS) | [JavaScript](/sdks/javascript/)     | Available |
| React        | [React](/sdks/react/)               | Available |
| iOS, macOS   | [iOS and macOS](/sdks/ios/)         | Available |
| Android      | [Android](/sdks/android/)           | Available |
| React Native | [React Native](/sdks/react-native/) | Available |

Every SDK shares the same rules: errors carry the stable [error code](/errors/), writes send an `Idempotency-Key`, reads and keyed writes retry on `429` and `503` with backoff, and the SSO code exchange is never retried.
