# @turnkey/sdk-server

> JavaScript Server SDK

Latest version **8.6.0** (published 2026-09-22) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install @turnkey/sdk-server
pnpm add @turnkey/sdk-server
yarn add @turnkey/sdk-server
bun add @turnkey/sdk-server
```

## Health

**Score 70/100 (B)** — status: active.

Positive: has types; esm support; no vulnerabilities; has provenance; recently updated; high maintenance score.

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 8.6.0 |
| Published | 2026-09-22 |
| First published | 2024-04-17 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >=18.0.0 |
| Dependencies | 7 |
| Unpacked size | 1.9 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 101 |
| Author | Turnkey |
| Maintainers | andrewtk, r-n-o, jack-kearney-tkhq |
| Keywords | Turnkey |

## Links

- npm: https://www.npmjs.com/package/@turnkey/sdk-server
- Repository: https://github.com/tkhq/sdk
- Issues: https://github.com/tkhq/sdk/issues
- npm.io page: https://npm.io/package/@turnkey/sdk-server

## Dependencies (7)

- [buffer](https://npm.io/package/buffer.md) ^6.0.3
- [cross-fetch](https://npm.io/package/cross-fetch.md) ^3.1.5
- [@turnkey/http](https://npm.io/package/@turnkey/http.md) 6.6.0
- [@turnkey/crypto](https://npm.io/package/@turnkey/crypto.md) 2.13.2
- [@turnkey/sdk-types](https://npm.io/package/@turnkey/sdk-types.md) 1.10.0
- [@turnkey/wallet-stamper](https://npm.io/package/@turnkey/wallet-stamper.md) 1.1.29
- [@turnkey/api-key-stamper](https://npm.io/package/@turnkey/api-key-stamper.md) 0.6.17

## Recent versions

- 8.6.0 (latest) — 2026-09-22
- 4.8.1-beta.0 (beta) — 2025-09-05
- 8.5.1 — 2026-09-22
- 8.5.0 — 2026-09-15
- 8.4.0 — 2026-09-04
- 8.3.0 — 2026-08-27
- 8.2.1 — 2026-08-14
- 8.2.0 — 2026-08-12
- 8.1.0 — 2026-08-06
- 8.0.0 — 2026-08-06
- 7.0.0 — 2026-07-16
- 6.1.1 — 2026-06-12
- 6.1.0 — 2026-06-02
- 6.0.0 — 2026-05-05
- 5.3.0 — 2026-03-30
- … 74 more at https://npm.io/package/@turnkey/sdk-server/versions

## README

# @turnkey/sdk-server

[![npm](https://img.shields.io/npm/v/@turnkey/sdk-server?color=%234C48FF)](https://www.npmjs.com/package/@turnkey/sdk-server)

A SDK client with server-specific abstractions for interacting with [Turnkey](https://turnkey.com) API. Also includes [@turnkey/http](https://www.npmjs.com/package/@turnkey/http), a lower-level, fully typed HTTP client.

Turnkey API documentation lives here: https://docs.turnkey.com.

## Getting started

```bash
$ npm install @turnkey/sdk-server
```

```js
const { Turnkey } = require("@turnkey/sdk-server");

// This config contains parameters including base URLs, API credentials, and org ID
const turnkeyConfig = JSON.parse(fs.readFileSync("./turnkey.json", "utf8"));

// Use the config to instantiate a Turnkey Client
const turnkeyServerClient = new Turnkey(turnkeyConfig);

// You're all set to create a server!
const turnkeyProxyHandler = turnkeyServerClient.expressProxyHandler({});

app.post("/apiProxy", turnkeyProxyHandler);

app.listen(PORT, () => {
  console.log(`Server running on port ${PORT}`);
});
```

## Helpers

`@turnkey/sdk-server` provides `Turnkey`, which offers wrappers around commonly used Turnkey API setups. This enables you to easily stand up a minimal backend to proxy end-users' requests to Turnkey. You can also use this to call on the Turnkey API directly from a server setting.

// TODO:
// - typescript-ify example
// - include nextjs server example

---
_Source: https://npm.io/package/@turnkey/sdk-server · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
