Skip to content

A npm package to get chatgpt token by your username and password.

License

Notifications You must be signed in to change notification settings

Mereithhh/chatgpt-token

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

chatgpt-token

A npm package to get chatgpt token by your username and password.

Unavaliable Now

https://github.com/transitive-bullshit/chatgpt-api#update-december-11-2022

Requirement

This package use playright to simulate login behavior, and use chromium hardless mode.

so you need to install chromium first.

npx playwright install chromium

Uages

npm install chatgpt-token
// cjs
const {chatgptToken} = require("chatgpt-token")
// mjs
import {chatgptToken} from "chatgpt-token/module"

(async function(){
  const token = await chatgptToken('username','password')
  if (!token) {
    console.log("error")
  } else {
    console.log(token)
  }
})()

HTTP API Server

I also write a http server to do this thing, and it has a docker image to easily deploy. Here is:

About

A npm package to get chatgpt token by your username and password.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published