Skip navigation
Introducing A simple SDK that lets your users log in with their ChatGPT account.
0:00 / 0:35

Introducing A simple SDK that lets your users log in with their ChatGPT account.

Leo - 15 y/o founder

@leodev4.5K followers

Visit on X
1,150 likesDownloadOriginal post

181,225 views

Introducing A simple SDK that lets your users log in with their ChatGPT account. - Users bring their own ChatGPT subscription - Tokens never touch the browser: HttpOnly cookie only - Works with the Vercel AI SDK: streamText() straight from the client - Open source, MIT licensed

78 Comments

Comments from the original post on X (Twitter)

  • Leo - 15 y/o founder's profile picture

    @leodev

    Demo: Docs: Repo:

    13 likes

  • Leo - 15 y/o founder's profile picture

    @leodev

    Credit to @saviomartin, he came up with the original idea, I just built this because I was inspired Music by Yevgeniy Sorokin from Pixabay

    20 likes

  • Leo - 15 y/o founder's profile picture

    @leodev

    I assume this falls within @OpenAI's tos, if not than any employee of OpenAI can dm me and I can take this down. I assume this does apply because it's similar to oauth in openclaw, hermes agent, etc.

    17 likes

  • freddie's profile picture

    @frederic_ooo

    if the server gets the token, this is a security vulnerability it should be a time-bound, handshake secret held token that cannot be used stand-alone

    10 likes

  • Leo - 15 y/o founder's profile picture

    @leodev

    I really tried making it secure, but I can't promise anything. I show a warning before users connect and your gonna have to trust the owner. I'll look into it a bit more and see what I can do to make security even better.

    4 likes

  • freddie's profile picture

    @frederic_ooo

    unless you create a proxy you own, you essentially can’t

    2 likes

  • Leo - 15 y/o founder's profile picture

    @leodev

    I know and that's the plan

    1 like

  • Bowie's profile picture

    @bowie_hw

    they're gonna come for you bro

    7 likes

  • Leo - 15 y/o founder's profile picture

    @leodev

    @agenticbowie i hope not 😭

  • Bowie's profile picture

    @bowie_hw

    aw hell nah they got you a 6 months Max 20x for free instead 😭

    1 like

  • Lucas Valbuena's profile picture

    @Lucknite

    very cool man!!!

    7 likes

  • David Ondrej's profile picture

    @DavidOndrej1

    cooking

    4 likes

  • Leo - 15 y/o founder's profile picture

    @leodev

    the ai goat follows me and likes what i made??? i watch your content all the time ❤️

    1 like

  • Dimitri Gilbert's profile picture

    @DimitriGilbert

    I'm all for BYOK :) I've a thing to finish first (for someone else ^^) but I'll add that in :D

    4 likes

  • Leo - 15 y/o founder's profile picture

    @leodev

    Nice! Lmk how it goes and if you have any issues/suggestions!

    2 likes

  • @Dev4YM's profile picture

    @Dev4YM

    GOATed

    3 likes

  • Leo - 15 y/o founder's profile picture

    @leodev

    🫡

    1 like

  • Yuri's profile picture

    @MrBye32

    probably gonna use it in future oss project 👀

    2 likes

  • Leo - 15 y/o founder's profile picture

    @leodev

    Let me know how it goes!

    1 like

  • vechen's profile picture

    @miu21590

    such an obvious violation

    2 likes