Preview

Your login
in one minute.

Open-source auth that lives in your repo: your user model, your flows, your look.

~/myapp
Node 24+
  1. npx @zitadel/cli@latest start
  2. npx @zitadel/cli@latest setup --framework next --server local
  3. npm run dev

Using a coding agent?npx skills add zitadel/nextgen --full-depth

How it works
  1. Step 01

    Start Zitadel

    start runs Zitadel on your machine.Users, passwords and sessions live there, not in your app.

    ~/myapp
    npx @zitadel/cli@latest start
    Local Zitadel server is ready
  2. Step 02

    Add the login

    setup writes the login pages into your app, with your user model and login flow as files beside them.npm run dev serves them.

    ~/myapp
    npx @zitadel/cli@latest setup --framework next --server local
    • app/profile/page.tsxProfile page
    • proxy.tsNext.js proxy
    • .zitadel/schemas/default-human-user.jsonUser model
    • .zitadel/flows/default-login.jsonLogin flow

    + package.json, .env.local, zitadel.json and more

    localhost:3000/login

    Loading the components…

  3. Step 03

    Add a field

    Add a property to the user schema, ask for it on the registration step, commit, do a dry run, deploy.The form shows it.

    .zitadel/schemas/default-human-user.json +1
    .zitadel/schemas/default-human-user.json
    "x-unique": "project"
    },
    "company": {
    "type": "string",
    "description": "The user's company."
    }
    .zitadel/flows/default-login.json
    "fields": [
    "email"
    "email",
    "company"
    ],
    npx @zitadel/cli@latest deploy --dry-run
    Would deploy 3 resources (dry run)
    npx @zitadel/cli@latest deploy
    Deployed 3 resources Release sha256:a2807ed6b3c4 is now live on http://localhost:3000.
    localhost:3000/register
    Before or after the change

    Loading the components…

  4. Step 04

    Change the flow

    Change what a step asks for and where it goes next, commit, do a dry run, deploy.The login follows.

    .zitadel/flows/default-login.json
    Afteridentifier + passworddone
    "fields": [
    "email"
    "email",
    "x-auth-methods#password"
    ],
    "name": "identifier",
    "transitions": {
    "submit": {
    "target": "password"
    "target": "done"
    },
    npx @zitadel/cli@latest deploy --dry-run
    Would deploy 3 resources (dry run)
    npx @zitadel/cli@latest deploy
    Deployed 3 resources Release sha256:7166cbe0… is now live on http://localhost:3000.
    localhost:3000/login
    Before or after the change

    Loading the components…

  5. Step 05

    Match your brand

    Set the login's design tokens in your own stylesheet.The look follows your app.Try it here.

    app/globals.css
    Color
    Corners
    Heading
    zitadel-login {
    --zl-primary: #f25543;
    --zl-primary-foreground: #ffffff;
    --zl-ring: #f25543;
    --zl-link: #f25543;
    --zl-radius-md: 2px;
    --zl-radius-xl: 4px;
    --zl-font-family-heading: Georgia, "Times New Roman", serif;
    }
    localhost:3000/login
    Before or after the change

    Loading the components…

  6. That's the whole loop

    Get started with Zitadel now.

    From the first command to a login that is yours in a minute.The quickstart walks you through it.