Octogen
an open-source code interpreter
一款开源可本地部署的代码解释器
https://github.com/dbpunk-labs/octogen/assets/8623385/7445cc4d-567e-4d1a-bedc-b5b566329c41
Supported OSs | Supported Interpreters | Supported Dev Enviroment |
---|---|---|
Requirement
To deploy Octogen, the user needs permission to run Docker commands.
To use codellama, your host must have at least 8 CPUs and 16 GB of RAM.
Install the octogen on your local computer
pip install og_up
og_up
You have the following options to select
The default is using docker as container engine. use podman with flag --use_podman
og
, you will see the following outputWelcome to use octogen❤️ . To ask a programming question, simply type your question and press esc + enter
You can use /help to look for help
[1]🎧>
Prepare the environment
git clone https://github.com/dbpunk-labs/octogen.git
cd octogen
python3 -m venv octogen_venv
source octogen_venv/bin/activate
pip install -r requirements.txt
Run the sandbox including Agent with mock model and Kernel
$ bash start_sandbox.sh
$ og
Welcome to use octogen❤️ . To ask a programming question, simply type your question and press esc +
enter
Use /help for help
[1]🎧>hello
╭─ 🐙Octogen ─────────────────────────────────────────────────────────────────────────────────────────╮
│ │
│ 0 🧠 how can I help you today? │
│ │
╰─────────────────────────────────────────────────────────────────────────────────────────────────────╯
[2]🎧>
start_sandbox.sh
with the example of openai-env.examplestart_sandbox.sh
with the example of azure-env.examplestart_sandbox.sh
with the example of codellama-env.examplename | type | status | installation |
---|---|---|---|
Openai GPT 3.5/4 | LLM | ✅ fully supported | use og_up then choose the OpenAI |
Azure Openai GPT 3.5/4 | LLM | ✅ fully supported | use og_up then choose the Azure OpenAI |
LLama.cpp Server | LLM | ✔️ supported | use og_up then choose the CodeLlama |
Octopus Agent Service | Code Interpreter | ✅ supported | apply api key from octogen.dev then use og_up then choose the Octogen |
/up
command and you can use it in your prompt/run
command/cc
commandif you have any feature suggestion. please create a discuession to talk about it