Open Interpreter: An Interesting AI Tool to Locally Run ChatGPT-Like Code Interpreter

AfterAuto-GPTandCode Interpreter API, a new open-source project is making waves in the AI community. The project is namedOpen Interpreter, and it’s been developed by Killian Lucas and a team of open-source contributors. It combines ChatGPT plugin functionalities, Code Interpreter, and something like Windows Copilot to make AI a ubiquitous solution on any platform. You can use Open Interpreter to do anything you can think of. You can interact with the system at the OS level, files, folders, programs, internet, basically everything right from a friendly Terminal interface. So if you are interested, learn how to set up and use Open Interpreter locally on your PC.

Things to Remember Before You Proceed1. To take full advantage of Open Interpreter, you should have access to the GPT-4 API key. The GPT-3.5 model simply doesn’t cut it and throws multiple errors while running code. Yes, running GPT-4 API is expensive, but it opens a lot of new utilities on your system.2. I would suggest not running the models locally unless you have a good understanding of the building process. The project is currently buggy, especially for local models on Windows (at least for us). Also, you’ll need to have beefy hardware specs to get better performance from larger models.

Set Up the Python Environment

Set Up the Python Environment

  1. First off, you need toinstall Python and Pipon your PC, Mac, or Linux computer.Follow the linked guidefor detailed instructions.

  2. Next, open the Terminal or CMD and run the below command toupdate Pipto the latest version.

  3. Now, run this command toinstall Open Interpreteron your machine.

Set Up Open Interpreter on Your PC

Set Up Open Interpreter on Your PC

  1. Once Open Interpreter is installed, execute one of the below commandsbased on your preference.

  2. I am going with the OpenAI GPT-4 model, but if you don’t have access to its API, you can choose GPT-3.5. Now, go ahead andget an API keyfrom OpenAI’swebsite. Click on “Create new secret key” and copy the key.

3.Paste the API keyin the Terminal and hit Enter. By the way, you can always press “Ctrl + C” to exit from Open Interpreter.

How to Use Open Interpreter on Your PC

  1. To start using Open Interpreter, I asked it to set mysystem to dark modeand it worked. As I am using Windows, it created a Registry key and changed the theme seamlessly.

  2. Next, I asked it to create a simpleweb-based Timer app. And it did create an app in no time. This can very well turn out to be a great way toearn money using the power of AI.

  3. Next, I asked the Open Interpreter tosummarize a local text documentand it worked well.

  4. I also asked it toconvert a PDF file to DOCXand worked flawlessly.

  5. Next, it quickly pulled data from the internet and showed the stock price of Apple and Microsoft in a visual chart. You can try many such use cases with Open Interpreter, which are pretty interesting.

Nifty Tips to Use Open Interpreter Locally

  1. Open Interpreter alwaysasks for your permissionbefore running the code. After a point, it can get annoying. If you want to avoid it, you can start Open Interpreter in the below fashion.

  2. Next, you can permanentlyset the OpenAI API keyin the command-line interface in the below fashion. This will save you a lot of time. Replace “your_api_key” with the actual key.

  3. If you want tolocally use a different model, you can define it like this. The model must be hosted on Hugging Face and the repo ID should be mentioned just like below. You can find thebest open-source AI modelsfrom our linked article.

In case, you find the project too complex or buggy, check out our list of thebest AI coding tools. These tools allow you to get the best coding experience, be it your favorite IDE or a simple code editor.

Arjun Sha

Passionate about Windows, ChromeOS, Android, security and privacy issues. Have a penchant to solve everyday computing problems.

Add new comment

Name

Email ID

Δ

01

02

03

04

05