Skip to content

rhaym-tech/AIKey

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation


OpenAI authenticator
AIKey

NodeJS library to generate OpenAI access token for ChatGPT.

Made by rhaym-tech

PrerequisitesGetting StartedUsageCredit

Print the Access Token

import OpenAITokenGen from "aikey";

  const generator = new OpenAITokenGen();

  const Access_Token = await generator.login("OpenAI email", "OpenAI password")
  console.log(Access_Token);

Use it with ChatGPT ( ChatGPTUnofficialProxyAPI )

import { ChatGPTUnofficialProxyAPI } from 'chatgpt';
import OpenAITokenGen from 'aikey';

async function ChatGPT() {
  const generator = new OpenAITokenGen();
  const api = new ChatGPTUnofficialProxyAPI({
    accessToken: await generator.login("OpenAI email", "OpenAI password");
  })

  const response = await api.sendMessage('Hello World!')
  console.log(response.text)
}

🤝 Credits 🤝

@rhaym-tech: Project owner
@transitive-bullshit: Node.js client for ChatGPT developer
@rawandahmad698: for the reverse engineering of the protocol
OpenAIAuth Python OpenAI Authentication Library for ChatGPT
OpenAI: OpenAI API owner

About

NodeJS package to generate OpenAI Access Token

Resources

License

Stars

Watchers

Forks

Packages

No packages published