Fireship · @fireship

I literally connected my brain to GPT-4 with JavaScript

Uploaded March 27, 2023 · Length 5:16

I literally connected my brain to GPT-4 with JavaScript

Summary

Connecting brain to gpt4 using JavaScript and a wearable EEG device called the crown, allowing for thought-controlled interactions.

  • gpt4
  • brain computer interface
  • javascript
  • crown device
  • eeg
  • neurosity

Transcript preview

The first 2 minutes of the transcript. Select a timestamp to watch that moment on YouTube.

  1. 0:00

    today I'm going to put this weird thing

  2. 0:01

    on my head and communicate with gpt4

  3. 0:03

    using nothing but my thoughts growing up

  4. 0:05

    my dad would always tell me damn it son

  5. 0:07

    you need to use your brain more but I

  6. 0:09

    never fully understood what he meant

  7. 0:10

    until now the human brain is the most

  8. 0:12

    complex machine in nature and how it

  9. 0:14

    really works is still a mystery what we

  10. 0:16

    do know is that it's always emitting

  11. 0:18

    measurable electrical impulses called

  12. 0:19

    brain waves scientists have been

  13. 0:21

    measuring these waves for decades using

  14. 0:24

    electroencephalograms or eegs that

  15. 0:26

    connect tons of electrodes to your Dome

  16. 0:28

    you've likely seen them in movies Like

  17. 0:29

    Clockwork Orange but I was able to get

  18. 0:31

    my hands on this futuristic device

  19. 0:33

    called the crown a compact and stylish

  20. 0:35

    electroencephalogram that you could

  21. 0:37

    totally wear on a Tinder date without

  22. 0:38

    looking weird it's the same basic idea

  23. 0:40

    as elon's neuraling except you won't

  24. 0:42

    need to drill a hole into your skull and

  25. 0:43

    best of all it's got a JavaScript SDK

  26. 0:45

    that we can use to hack into our own

  27. 0:47

    brain waves naturally my first thought

  28. 0:49

    was to connect my brain to gpt4 you give

  29. 0:52

    myself superhuman intelligence and

  30. 0:53

    that's what I did which makes me the

  31. 0:55

    smartest man in the world you're about

  32. 0:56

    to get a glimpse into the future a

  33. 0:58

    transhuman cyborg future where every

  34. 0:59

    human while every Rich human anyway will

  35. 1:02

    have all the knowledge in the world not

  36. 1:03

    just at their fingertips but at their

  37. 1:05

    brain tips the Poors will have these as

  38. 1:07

    well but they'll be used by the CIA to

  39. 1:09

    make you dumber like the moment you get

  40. 1:10

    thirsty you'll be served in

  41. 1:11

    advertisement for overpriced sugar water

  42. 1:13

    that will slowly kill you the crown

  43. 1:14

    device has a price tag of about one

  44. 1:16

    thousand dollars it sits on the back of

  45. 1:17

    your head and has a bunch of tiny

  46. 1:19

    electrodes that measure your brain waves

  47. 1:21

    it hooks up to a mobile app via

  48. 1:23

    Bluetooth or Wi-Fi then streams your

  49. 1:24

    brain's data Into The Ether the app also

  50. 1:27

    provides helpful utilities like how to

  51. 1:28

    improve focus but I don't care about

  52. 1:30

    that I want access to the raw data which

  53. 1:32

    we can easily get in Json format via its

  54. 1:35

    JavaScript SDK But first you need to

  55. 1:37

    know a little bit more about brain waves

  56. 1:38

    when you're asleep your brain emits low

  57. 1:40

    frequency delta waves around 2 Hertz

  58. 1:43

    these waves increase their frequency

  59. 1:44

    when you're awake and relaxed as they

  60. 1:46

    become Alpha Waves around 10 Hertz and

  61. 1:49

    then finally when you become highly

  62. 1:50

    focused like when solving a coding

  63. 1:52

    problem or playing chess they increase

  64. 1:53

    to 35 Hertz and these are gamma waves

  65. 1:56

    and that's what we care most about

  66. 1:57

    measuring because they're useful for

  67. 1:59

    actually controlling things things