GPT-3, Text AI

How to control a browser with GPT-3

In this tutorial, we will see how to control a browser with GPT-3 using just text prompts.

This article is inspired by this tweet thread and the credit for the code and method used in this tutorial goes to the author of the tweet thread.

Control a browser with GPT-3


  • An OpenAI GPT-3 account
  • A Computer equipped with Python 3.x and a command line program

Setup & Usage

  1. Get the code from this repo.
  2. Get your OpenAI API key from your OpenAI account
  3. Open your command line program
  4. In the command line program, set an environment variable OPENAI_API_KEY with your OpenAI API key as its value.
  5. In the command line program, change the directory to the code repo from step 1 above.
  6. Run the code file by using this command python
  7. Follow the instructions on the terminal