Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vduseev/open-interpreter-setup
Quick setp script for open-interpreter
https://github.com/vduseev/open-interpreter-setup
Last synced: 23 days ago
JSON representation
Quick setp script for open-interpreter
- Host: GitHub
- URL: https://github.com/vduseev/open-interpreter-setup
- Owner: vduseev
- Created: 2024-03-24T21:49:10.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2024-03-24T22:48:34.000Z (8 months ago)
- Last Synced: 2024-03-24T23:20:56.914Z (8 months ago)
- Language: Shell
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Quick setup script for open-interpreter
## Usage
### Clone this repository into `~/.intepreter` directory.
*Note: It doesn't have to be this directory but it makes the most sense.*
```shell
git clone https://github.com/vduseev/open-interpreter-setup ~/.interpreter
```Run the installation script
```shell
$ ~/.interpreter/install.shWill be using Python 3.11.7 found in /Users/vduseev/.pyenv/shims/python...
Create a python virtual environment? (Y/n)Creating a virtual environment in /Users/vduseev/.interpreter/.venv...
Virtual environment created successfully in /Users/vduseev/.interpreter/.venv!
Install open-interpreter and its dependencies? (Y/n)Installing open-interpreter...
...Installation of open-interpreter completed successfully!
Install symlink to open-interpreter in /usr/local/bin? (Y/n)This script is now going to create 2 symlinks for interpreter in /usr/local/bin:
interpreter
and a shorthand: iCreating symlinks there allows for interpreter to be called from any directory.
However, creating symlinks in /usr/local/bin/ requires sudo permissions.The script will now ask for your password. Please press Ctrl+C to safely stop
this script from proceeding any further if you are not comfortable with this
operation. You can verify the source code of this script at:
https://github.com/vduseev/open-interpreter-installSymlinks were installed!
Would you like this script to save your OpenAI API key in /Users/vduseev/.interpreter/keys file? (Y/n) nInstallation complete!
```This script will perform the following steps:
- Create a new Python virtual environment to host the `open-interpreter` package.
- Install `open-interpreter` into it.
- Create symlinks for `interpreter` executable in your `/usr/local/bin/` directory
so that you can call the interpreter from anywhere.
- Ask you for an OpenAI key to store locally for interpreter to use. You can skip
this step and create the `keys` file manually:```shell
echo "export OPENAI_API_KEY=PUT_YOUR_KEY_HERE" > ~/.interpreter/keys
````1. All done!
You can invoke open-interpreter in your shell `$ i` or `$ interpreter` from any directory:
```shell
$ i▌ Model set to gpt-4
Open Interpreter will require approval before running code.
Use interpreter -y to bypass this.
Press CTRL-C to exit.
>
```