/code-runner

LLM Powered REPL for Node.js -- more languages and local models coming soon!

Primary LanguageTypeScript

Code Runner


Open source GPT-powered REPL

Code Runner is a LLM-powered REPL that runs on your machine.

!IMPORTANT: There are inherent risks with running AI generated code directly on your machine -- Code Runner will ask for approval before running code, and if there's something wrong with code it produces you can prompt it to regenerate. Code editing in app coming soon!

The stubs are in place to support local models with Ollama.


Get Started

Pull down the repo

git clone ...

Create a .env file inside runner-server

OPENAI_API_KEY=sk-YOUR_API_KEY_HERE

Setup frontend

cd runner-frontend
npm i
npm run dev

Setup server

cd runner-server
npm i
npm run dev

Navigate to http://localhost:5173/


Prior Art

The excellent Open Interpreter
While I had started putting the pieces of Code Runner together months ago, the excellent implementation here inspired me to finish getting it out the door.

Typescript Notebook