How Kai works

Kai's computer

Each chat has a computer where Kai runs code, makes files and installs what he needs.

A computer for each chat

The first time Kai needs it, a chat gets its own Linux computer: 2 processors, 4 GB of memory and 10 GB of disk. On it Kai writes and runs code, converts and edits files, draws charts, renders images and video, and hands you what he made. For a question he can simply answer, he doesn't start it.

You see every step he takes on it in the chat: the commands, the files he writes, what he looks at. Open a step to see what it did.

What's on it

  • Python with the usual libraries for data, charts, documents and images, and Node with npm.
  • LibreOffice, pandoc, ffmpeg, ImageMagick and a browser without a window, for documents, video, pictures and screenshots of pages.
  • Anything else Kai installs with pip, npm or apt. It stays on that chat's computer for the next messages.

Your files on it

Files you attach in the chat are on the computer as they are, so Kai can open a spreadsheet, cut a video or read a ZIP. In a project, the project's files are there too. What Kai makes for you comes back as files in the chat; what he doesn't hand over stays only on the computer.

The internet from it

The computer reaches package registries (PyPI, npm, Debian), GitHub and Hugging Face. For web pages Kai uses web search, and for pictures he searches photos and art under free licences and saves them to the computer.

Sleeping and deleting

The computer sleeps when Kai stops using it and wakes in about a second when he needs it again. While a background task runs, it stays awake. A computer no one used for 30 days is deleted: the chat gets a new one if Kai needs it, and the files he handed you stay.

Safety

Koyu checks Kai's commands before they run and stops the ones that do something you didn't ask for, such as sending your files to an address on the internet. A computer used for something else than your work, such as mining cryptocurrency or attacking other systems, is turned off.

NextFiles Kai makesDocuments, slides, spreadsheets, PDFs, images and videos you can open, download and share.