Skip to content

Set up Scalekit

Create your account, install the SDK, and verify your setup to start building with Scalekit

This guide shows you how to set up Scalekit in your development environment. You’ll create an account, configure your workspace, get API credentials, install the SDK, and verify everything works correctly.

Scalekit provides official SDKs for Node.js, Python, Go, and Java with production-ready auth helpers, automatic retries, and typed models to help you integrate faster.

  1. Scalekit provides dedicated development and production auth environments. Use them to manage your authentication services for each stage of your app.

    Create a Scalekit account

    After creating your account, a scalekit workspace is set up for you. You will have two environments:

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

    View your environment URLs in Dashboard > Developers > Settings.

  2. Scalekit uses the OAuth 2.0 client credentials flow for secure API authentication.

    Navigate to Dashboard > Developers > Settings > API credentials and copy these values:

    .env
    SCALEKIT_ENVIRONMENT_URL=<your-environment-url> # Example: https://acme.scalekit.dev or https://auth.acme.com (if custom domain is set)
    SCALEKIT_CLIENT_ID=<app-client-id> # Example: skc_1234567890abcdef
    SCALEKIT_CLIENT_SECRET=<app-client-secret> # Example: test_abcdef1234567890
  3. Choose your preferred language and install the Scalekit SDK:

    npm install @scalekit-sdk/node

    After installation, initialize the SDK with your credentials:

    Initialize SDK
    import { Scalekit } from '@scalekit-sdk/node';
    // Initialize the Scalekit client with your credentials
    const scalekit = new Scalekit(
    process.env.SCALEKIT_ENVIRONMENT_URL,
    process.env.SCALEKIT_CLIENT_ID,
    process.env.SCALEKIT_CLIENT_SECRET
    );
  4. Verify your setup

    Test your configuration by listing organizations in your workspace. This confirms your credentials work correctly.

    Authenticate with client credentials
    # Get an access token
    curl https://<SCALEKIT_ENVIRONMENT_URL>/oauth/token \
    -X POST \
    -H 'Content-Type: application/x-www-form-urlencoded' \
    -d 'client_id=<SCALEKIT_CLIENT_ID>' \
    -d 'client_secret=<SCALEKIT_CLIENT_SECRET>' \
    -d 'grant_type=client_credentials'

    This returns an access token:

    {
    "access_token": "eyJhbGciOiJSUzI1NiIsImInR5cCI6IkpXVCJ9...",
    "token_type": "Bearer",
    "expires_in": 86399,
    "scope": "openid"
    }

    Use the token to access the Scalekit API

    List organizations
    curl -L '<SCALEKIT_ENVIRONMENT_URL>/api/v1/organizations?page_size=5' \
    -H 'Authorization: Bearer <ACCESS_TOKEN>'

    If you see organization data, your setup is complete! You’re now ready to implement authentication in your application.

Explore the available SDKs with detailed release notes, version information, and direct access to GitHub repositories.

Node.js SDK

Node SDK version

Server and edge compatible (Node 18+). Typed models, auth helpers, and robust error handling.

Python SDK

Python SDK version

Pythonic client with simple auth utilities and retries out of the box.

Go SDK

Go SDK version

Lightweight, idiomatic Go client designed for services and CLIs.

Java SDK

Java SDK version

JVM-first client for Spring and other Java stacks with clear types and retries.

PHP SDK

PHP SDK version

Community-maintained PHP client. Review repository and README for usage and support status.