Code Execution
Custom Languages
You can add or edit the programming languages that Open Interpreter’s computer runs.
In this example, we’ll swap out the python
language for a version of python
that runs in the cloud. We’ll use E2B
to do this.
(E2B
is a secure, sandboxed environment where you can run arbitrary code.)
First, get an API key here, and set it:
Then, define a custom language for Open Interpreter. The class name doesn’t matter, but we’ll call it PythonE2B
: