Framework · Coding Agents

Open Interpreter

Open-source local code-execution agent: equips a function-calling LLM with an exec() function so it can run Python, JavaScript, Shell, and more on the user's machine, with default human approval and an experimental OS mode for visual desktop control.

Description

Open Interpreter runs as a terminal chat (`interpreter`) or as a Python library. Under the hood it gives a function-calling model an exec() function and lets it execute generated code locally across Python, JavaScript, Shell, and more. By default each block of code requires user approval before it runs; `auto_run` / `interpreter -y` bypasses that. OS mode (--os) is an experimental computer-use mode where the model captures screenshots and drives the mouse/keyboard. Safe mode is an experimental code-scanning layer with off/ask/auto settings.

Solution

ReAct-style local loop. Function-calling LLM emits a code block in a chosen language; the runtime asks the user to approve, then executes via exec() and feeds stdout/stderr/return values back. With auto_run on, approval is skipped. OS mode swaps the textual exec() loop for a screenshot/mouse/keyboard loop driven by a multimodal model.

Primary use cases

  • natural-language interface to the user's computer via local code execution
  • ChatGPT Code Interpreter-style workflows running locally
  • ad-hoc data, file, and OS automation across multiple languages
  • experimental visual desktop control via OS mode

Open the full interactive page

Diagram, neighbourhood map, code examples, related patterns and full provenance.

Related