Basic Usage
Interactive demo
Try Open Interpreter without installing anything on your computer
Example voice interface
An example implementation of Open Interpreter’s streaming capabilities
Interactive Chat
To start an interactive chat in your terminal, either run interpreter
from the command line or interpreter.chat()
from a .py file.
Programmatic Chat
For more precise control, you can pass messages directly to .chat(message)
in Python:
Start a New Chat
In your terminal, Open Interpreter behaves like ChatGPT and will not remember previous conversations. Simply run interpreter
to start a new chat.
In Python, Open Interpreter remembers conversation history. If you want to start fresh, you can reset it.
Save and Restore Chats
In your terminal, Open Interpreter will save previous conversations to <your application directory>/Open Interpreter/conversations/
.
You can resume any of them by running --conversations
. Use your arrow keys to select one , then press ENTER
to resume it.
In Python, interpreter.chat()
returns a List of messages, which can be used to resume a conversation with interpreter.messages = messages
.
Configure Default Settings
We save default settings to the default.yaml
profile which can be opened and edited by running the following command:
You can use this to set your default language model, system message (custom instructions), max budget, etc.
Note: The Python library will also inherit settings from the default
profile file. You can change it by running interpreter --profiles
and
editing default.yaml
.
Customize System Message
In your terminal, modify the system message by editing your configuration file as described here.
In Python, you can inspect and configure Open Interpreter’s system message to extend its functionality, modify permissions, or give it more context.
Change your Language Model
Open Interpreter uses LiteLLM to connect to language models.
You can change the model by setting the model parameter:
In Python, set the model on the object:
Find the appropriate “model” string for your language model here.