Open Interpreter

Open Interpreter

1 min


Open Interpreter

Allow language models to execute code on your computer.

Github logo

With Open Interpreter, you can execute code (Python, Javascript, Shell, and more) on your local machine. Open Interpreter has a ChatGPT-like interface that you can access in your terminal by typing  $ interpreter  after installation.

This gives you a natural-language way to interact with your computer’s general-purpose features:

✅Make and modify photos, videos, PDFs, etc.
✅Use a Chrome browser to do research
✅Visualize, process, and explore large datasets
…and many more.

Before executing any code, you will need to confirm it. This is a security measure to prevent unwanted or harmful actions.

How It Works

How to Start Open Interpreter

pip install open-interpreter

Terminal

After installation, run interpreter:

interpreter

Python

import interpreter

interpreter.chat("Plot APPL and META's normalized stock prices") # Executes a single command
interpreter.chat() # Starts an interactive chat

Commands

Interactive Chat

If you want to chat with me in your terminal, you can launch the interpreter by typing interpreter on the command line:

interpreter

Or interpreter.chat() from a .py file:

interpreter.chat()

Programmatic Chat

To send messages directly to the chat function, use .chat(message):

interpreter.chat("Add subtitles to all videos in /videos.")

# ... Streams output to your terminal, completes task ...

interpreter.chat("These look great but can you make the subtitles bigger?")

# ...

Start a New Chat

One feature of Open Interpreter in Python is that it keeps track of what you have typed before. To clear the previous commands and start over, you can use the reset option:

interpreter.reset()

Save and Restore Chats

If you set return_messages to True, interpreter.chat() will give you a List of messages. You can use this list to continue a conversation later by passing it to interpreter.load(messages):

messages = interpreter.chat("My name is Killian.", return_messages=True) # Save messages to 'messages'
interpreter.reset() # Reset interpreter ("Killian" will be forgotten)

interpreter.load(messages) # Resume chat from 'messages' ("Killian" will be remembered)

Customize System Message

Open Interpreter’s system message can be customized and adjusted to enhance its features, change its access, or provide more background.

interpreter.system_message += """
Run shell commands with -y so the user doesn't have to confirm them.
"""
print(interpreter.system_message)

Change the Model

To use Code Llama , you can launch the interpreter locally from the command line.

interpreter --local

For gpt-3.5-turbo, you can use fast mode:

interpreter --fast

Or, in Python, set the model manually:

interpreter.model = "gpt-3.5-turbo"

Note: Open Interpreter is not affiliated with OpenAI.

Join Guidady AI Mail List

Subscribe to our mailing list and get interesting stuff and updates to your email inbox.

Thank you for subscribing.

Something went wrong.


Like it? Share with your friends!

0
51 shares

0 Comments

Your email address will not be published. Required fields are marked *

Belmechri

I am an IT engineer, content creator, and proud father with a passion for innovation and excellence. In both my personal and professional life, I strive for excellence and am committed to finding innovative solutions to complex problems.
Choose A Format
Personality quiz
Series of questions that intends to reveal something about the personality
Trivia quiz
Series of questions with right and wrong answers that intends to check knowledge
Poll
Voting to make decisions or determine opinions
Story
Formatted Text with Embeds and Visuals
List
The Classic Internet Listicles
Countdown
The Classic Internet Countdowns
Open List
Submit your own item and vote up for the best submission
Ranked List
Upvote or downvote to decide the best list item
Meme
Upload your own images to make custom memes
Video
Youtube and Vimeo Embeds
Audio
Soundcloud or Mixcloud Embeds
Image
Photo or GIF
Gif
GIF format