Settings

Theme

Show HN: Let ChatGPT Plus control any Python or JavaScript object in 3 lines

chatgpt.com

1 points by eneuman 5 months ago · 0 comments · 1 min read

Reader

I built this because I wanted ChatGPT to interact with live Python and JS functions and objects — not just simulate code. With this, you can give ChatGPT access to real functions or objects running in your environment, in just 3 lines of code.

No plugins, no API keys — just an open source websockets based "telekinesis" library I created over a few years.

I’ve used it to: - Control a Jupyter notebook from ChatGPT - Let ChatGPT directly find, read and edit files on one of my repos. - Fully control an EC2 instance I spun up for it — file access, subprocesses, sudo apt install, everything - so it made me a headless Android compiler (which worked after several "check the output" and "go for it" messages).

Would love feedback — especially use cases you’d want to try, or anything confusing - or any issues you encounter.

(you can check out the simple server that powers all this at https://payperrun.com/e-neuman/fun/chadGPT?display=server )

(telekinesis library if you're interested at https://github.com/telekinesis-inc/telekinesis/ )

With great power comes great responsibility and I hope you have fun!

No comments yet.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection