---
title: Install
description: Install the ESM-only SDK for Node.js 20+ or Bun 1.1+.
---

1. ### Install the package



    ```bash
    npm install @opencoredev/email-sdk
    bun add @opencoredev/email-sdk
    pnpm add @opencoredev/email-sdk
    yarn add @opencoredev/email-sdk
    ```



    The public package is `@opencoredev/email-sdk`. The unscoped `email-sdk` package is unrelated.

2. ### Confirm your runtime

    Use Node.js 20+ or Bun 1.1+. The package is ESM-only, so use `import` syntax or dynamic `import()` from a CommonJS application.

    ```json title="package.json"
    {
      "type": "module"
    }
    ```

3. ### Import one adapter

    Adapters use separate package entry points, so your application imports only the integrations it uses.

    ```ts title="email.ts"
    import { createEmailClient } from "@opencoredev/email-sdk";
    import { resend } from "@opencoredev/email-sdk/resend";
    ```

4. ### Verify the CLI

    A project install exposes the `email-sdk` binary. The built CLI uses a Node shebang and also runs under Bun.

    ```bash
    npx email-sdk version
    npx email-sdk adapters
    ```

    For a global Homebrew install, use `brew install opencoredev/tap/email-sdk` after the formula points at a published release.

**[Quickstart](/v1.2.0/docs/getting-started/quickstart)**

Create a client and send a validated message.

**[Provider credentials](/v1.2.0/docs/getting-started/credentials)**

Set the environment variables required by your adapter.
