Skip to content
Scalekit Docs
Talk to an Engineer Dashboard

Set up your Scalekit environment

Before you start building, you’ll need to set up your Scalekit environment and obtain your API credentials.

  1. Create a Scalekit Account

    Scalekit provides dedicated environments for both development and production use. These environments function as extensions of your application where you can manage your authentication services.

    Create a Scalekit Account
  2. Set up your Environments

    After creating your account, you’ll have access to two separate environments:

    Environment URLs
    https://{your-subdomain}.scalekit.dev (Development)
    https://{your-subdomain}.scalekit.com (Production)

    Each environment is isolated, so resources created in one cannot be transferred to another. You can customize the environment URLs such as auth.example.com by adding a custom domain.

    You can view your environment URLs by navigating to Scalekit Dashboard > API Config.

  3. Obtain your API credentials

    Scalekit uses the OAuth 2.0 client credentials flow for secure API authentication. This approach provides better security than simple API keys, as your environment and its resources function as extensions of your application’s authentication service.

    From the API Config section, note down these three essential values:

    Environment variables
    SCALEKIT_ENVIRONMENT_URL=<your-environment-url>
    # Example: https://acme.scalekit.dev or https://auth.acme.com
    SCALEKIT_CLIENT_ID=<app-client-id>
    # Example: skc_1234567890abcdef
    SCALEKIT_CLIENT_SECRET=<app-client-secret>
    # Example: test_abcdef1234567890
  4. Instantiate the SDK

    npm install @scalekit-sdk/node

    import { ScalekitClient } from '@scalekit-sdk/node';
    // Create the Scalekit client
    const scalekit = new ScalekitClient(
    process.env.SCALEKIT_ENVIRONMENT_URL,
    process.env.SCALEKIT_CLIENT_ID,
    process.env.SCALEKIT_CLIENT_SECRET
    );