---
title: "Automatic CLI login"
description: "Supabase CLI 1.114.0 replaces the manual copy-paste token flow with a browser-based automatic login. `supabase login` generates a session UUID, a token name and an ephemeral P-256 ECDH key pair, then opens a dashboard URL carrying the public key."
url: "https://swe.quest/articles/automatic-cli-login-af926eb4c9b0806e"
canonical: "https://supabase.com/blog/automatic-cli-login"
source: "Supabase"
published: "2023-12-01"
difficulty: "medium"
kind: "Deep dive"
reading_minutes: 3
tags: ["identity-auth","cryptography","developer-tools"]
---

# Automatic CLI login

A post on [Supabase](https://swe.quest/sources/supabase.md), published 2023-12-01, 3 min read, Deep dive. Original: [https://supabase.com/blog/automatic-cli-login](https://supabase.com/blog/automatic-cli-login)

## Summary

Supabase CLI 1.114.0 replaces the manual copy-paste token flow with a browser-based automatic login. \`supabase login\` generates a session UUID, a token name and an ephemeral P-256 ECDH key pair, then opens a dashboard URL carrying the public key. The Management API mints an access token, encrypts it with an ECDH-derived shared secret using its own one-time key pair, and stores only the ciphertext. The CLI polls by session ID, decrypts the token with its in-memory private key and saves it to the OS keychain, while flags still allow manual tokens, environment variables or no browser.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Identity & auth](https://swe.quest/tags/identity-auth.md) (Security)
- [Cryptography](https://swe.quest/tags/cryptography.md) (Security)
- [Developer tools](https://swe.quest/tags/developer-tools.md) (Engineering practices)

## Prerequisites

- public-key cryptography basics ([easy posts on Cryptography](https://swe.quest/tags/cryptography.md?difficulty=easy))
- OAuth-style device login flows ([easy posts on Identity & auth](https://swe.quest/tags/identity-auth.md?difficulty=easy))

## Keywords

Supabase CLI, ECDH, P-256, Supabase Management API

## Related posts

- [Build "Sign in with Your App" using Supabase Auth](https://swe.quest/articles/build-sign-in-with-your-app-using-supabase-auth-a42222eedce43362.md): Supabase · 2025-12-04 · Medium · 6 min read · Identity & auth, AI agents, PostgreSQL
  Supabase Auth can now act as an OAuth 2.1 and OpenID Connect identity provider, letting a project offer "Sign in with \[Your App\]" to third-party apps, MCP-based AI agents, partner integrations and enterprise SSO.
- [Supabase Auth: SSO, Mobile, and Server-side support](https://swe.quest/articles/supabase-auth-sso-mobile-and-server-side-support-6a2bc9b0f4a5ef26.md): Supabase · 2023-04-13 · Medium · 7 min read · Identity & auth, PostgreSQL, Multi-tenancy, Mobile
  Supabase Auth adds SAML 2.0 single sign-on, a PKCE authorization flow for server-side rendering and mobile apps, and native Sign in with Apple on iOS.
- [Supabase Flutter SDK 1.0 Developer Preview](https://swe.quest/articles/supabase-flutter-sdk-1-0-developer-preview-9e19816587705422.md): Supabase · 2022-08-02 · Medium · 5 min read · Mobile, Identity & auth, API design
  Supabase Flutter SDK 1.0 enters developer preview with a focus on developer experience.
- [Custom OIDC Providers for Supabase Auth](https://swe.quest/articles/custom-oidc-providers-for-supabase-auth-f58ec95541f5b5f1.md): Supabase · 2026-04-08 · Medium · 4 min read · Identity & auth
  Supabase Auth now supports connecting any standards-compliant OpenID Connect identity provider, beyond its 20+ built-in social logins, for cases like regional compliance IdPs, self-hosted GitHub Enterprise or GitLab, and niche SSO systems.
- [Supabase Auth: Identity Linking, Hooks, and HaveIBeenPwned integration](https://swe.quest/articles/supabase-auth-identity-linking-hooks-and-haveibeenpwned-integration-8ed59b21ef27e3e6.md): Supabase · 2023-12-14 · Medium · 5 min read · Identity & auth, PostgreSQL
  Supabase Auth adds four features: manual Identity Linking via linkIdentity()/unlinkIdentity() for OAuth identities, session controls (time-boxed sessions, inactivity timeouts, single session per user on Pro and above), leaked password protection using the HaveIBeenPwned Pwned Passwords API with configurable password requirements, and Auth Hooks.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
