You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
curl https://raw.githubusercontent.com/OpenInterpreter/open-interpreter/refs/heads/development/installers/new-installer.sh | sh
Usage
Start a conversation:
$ interpreter
>help me set up a new fastapi project
Creating project structure...
Added requirements.txt, main.py, and Dockerfile
> add a /users endpoint
Adding routes/users.py...
Instant chats with i [prompt]:
$ i want a venv here
$ i want to undo the last commit
$ i need deno
Fix errors with wtf:
$ python test.py
ImportError: No module named 'requests'
$ wtf
Installing requests...
Done. Try running your script again.
Configuration
# Choose your model
interpreter --model gpt-4o
interpreter --model claude-3-sonnet
# Save configurations
interpreter --model gpt-4o --save-profile 4o
interpreter --profile 4o
# Enable tools (default: interpreter,editor)
interpreter --tools interpreter,editor,gui
Python
pip install open-interpreter
frominterpreterimportInterpreter# Start interpreterinterpreter=Interpreter()
# Multiple tasks in same contextmessages=interpreter.respond("write a test for this function")
messages=interpreter.respond("now add error handling")
# Reset contextinterpreter.messages= []
# Set custom contextinterpreter.messages= [{"role": "user", "content": "write a test for this function"}]
# Stream outputforchunkininterpreter.respond(stream=True):
print(chunk, end="")
# Start an interactive chatinterpreter.chat()
# View conversation historyprint(interpreter.messages)