MCPcopy Index your code
hub / github.com/AmberSahdev/Open-Interface

github.com/AmberSahdev/Open-Interface @v0.9.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release v0.9.0 ↗ · + Follow
99 symbols 313 edges 23 files 10 documented · 10% updated 4mo agov0.9.0 · 2025-03-16★ 2,69322 open issues
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Open Interface

<img src="https://github.com/AmberSahdev/Open-Interface/raw/v0.9.0/assets/icon.png" align="right" alt="Open Interface Logo" width="120" height="120">

Control Your Computer Using LLMs

Open Interface - Self-drives your computer by sending your requests to an LLM backend (GPT-4o, Gemini, etc) to figure out the required steps. - Automatically executes these steps by simulating keyboard and mouse input. - Course-corrects by sending the LLM backend updated screenshots of the progress as needed.

Full Autopilot for All Computers Using LLMs

macOS Linux Windows

Github All Releases GitHub code size in bytes GitHub Repo stars GitHub GitHub Latest Release)

Demo 💻

"Solve Today's Wordle"

Solve Today's Wordle

clipped, 2x

More Demos

<ul>
    <li>
        "Make me a meal plan in Google Docs"
        <img src="https://github.com/AmberSahdev/Open-Interface/raw/v0.9.0/assets/meal_plan_demo_2x.gif" style="margin: 5px; border-radius: 10px;">
    </li>
    <li>
        "Write a Web App"
        <img src="https://github.com/AmberSahdev/Open-Interface/raw/v0.9.0/assets/code_web_app_demo_2x.gif" style="margin: 5px; border-radius: 10px;">
    </li>
</ul>

Install 💽

MacOS Logo MacOS

<ul>
    <li>Download the MacOS binary from the latest <a href="https://github.com/AmberSahdev/Open-Interface/releases/latest">release</a>.</li>
    <li>Unzip the file and move Open Interface to the Applications Folder.




        <img src="https://github.com/AmberSahdev/Open-Interface/raw/v0.9.0/assets/macos_unzip_move_to_applications.png" width="350" style="border-radius: 10px;
border: 3px solid black;">
    </li>
</ul>

Apple Silicon M-Series Macs

<ul>
  <li>
    Open Interface will ask you for Accessibility access to operate your keyboard and mouse for you, and Screen Recording access to take screenshots to assess its progress.


  </li>
  <li>
    In case it doesn't, manually add these permission via <b>System Settings</b> -> <b>Privacy and Security</b>



    <img src="https://github.com/AmberSahdev/Open-Interface/raw/v0.9.0/assets/mac_m3_accessibility.png" width="400" style="margin: 5px; border-radius: 10px;
border: 3px solid black;">


    <img src="https://github.com/AmberSahdev/Open-Interface/raw/v0.9.0/assets/mac_m3_screenrecording.png" width="400" style="margin: 5px; border-radius: 10px;
border: 3px solid black;">
  </li>
</ul>

Intel Macs

<ul>
    <li>
        Launch the app from the Applications folder.


        You might face the standard Mac <i>"Open Interface cannot be opened" error</i>.




        <img src="https://github.com/AmberSahdev/Open-Interface/raw/v0.9.0/assets/macos_unverified_developer.png" width="200" style="border-radius: 10px;
border: 3px solid black;">


        In that case, press <b><i><ins>"Cancel"</ins></i></b>.


        Then go to <b>System Preferences -> Security and Privacy -> Open Anyway.</b>




        <img src="https://github.com/AmberSahdev/Open-Interface/raw/v0.9.0/assets/macos_system_preferences.png" width="100" style="border-radius: 10px;
border: 3px solid black;"> &nbsp; 
        <img src="https://github.com/AmberSahdev/Open-Interface/raw/v0.9.0/assets/macos_security.png" width="100" style="border-radius: 10px;
border: 3px solid black;"> &nbsp;
        <img src="https://github.com/AmberSahdev/Open-Interface/raw/v0.9.0/assets/macos_open_anyway.png" width="400" style="border-radius: 10px;
border: 3px solid black;"> 
    </li>



    <li>
    Open Interface will also need Accessibility access to operate your keyboard and mouse for you, and Screen Recording access to take screenshots to assess its progress.




    <img src="https://github.com/AmberSahdev/Open-Interface/raw/v0.9.0/assets/macos_accessibility.png" width="400" style="margin: 5px; border-radius: 10px;
border: 3px solid black;">


    <img src="https://github.com/AmberSahdev/Open-Interface/raw/v0.9.0/assets/macos_screen_recording.png" width="400" style="margin: 5px; border-radius: 10px;
border: 3px solid black;">
    </li>
  </ul>



  <ul>
    <li>Lastly, checkout the <a href="#setup">Setup</a> section to connect Open Interface to LLMs (OpenAI GPT-4V)</li>
</ul>

Linux Logo Linux

<ul>
    <li>Linux binary has been tested on Ubuntu 20.04 so far.</li>
    <li>Download the Linux zip file from the latest <a href="https://github.com/AmberSahdev/Open-Interface/releases/latest">release</a>.</li>
    <li>
        Extract the executable and checkout the <a href="https://github.com/AmberSahdev/Open-Interface?tab=readme-ov-file#setup">Setup</a> section to connect Open Interface to LLMs, such as OpenAI GPT-4V.</li>
</ul>

Linux Logo Windows

<ul>
<li>Windows binary has been tested on Windows 10.</li>
<li>Download the Windows zip file from the latest <a href="https://github.com/AmberSahdev/Open-Interface/releases/latest">release</a>.</li>
<li>Unzip the folder, move the exe to the desired location, double click to open, and voila.</li>
<li>Checkout the <a href="https://github.com/AmberSahdev/Open-Interface?tab=readme-ov-file#setup">Setup</a> section to connect Open Interface to LLMs (OpenAI GPT-4V)</li>
</ul>

Python Logo Run as a Script

<ul>
  <li>Clone the repo <code>git clone https://github.com/AmberSahdev/Open-Interface.git</code></li>
  <li>Enter the directory <code>cd Open-Interface</code></li>
  <li><b>Optionally</b> use a Python virtual environment 
    <ul>
      <li>Note: pyenv handles tkinter installation weirdly so you may have to debug for your own system yourself.</li>
      <li><code>pyenv local 3.12.2</code></li>
      <li><code>python -m venv .venv</code></li> 
      <li><code>source .venv/bin/activate</code></li>
    </ul>
  </li>
  <li>Install dependencies <code>pip install -r requirements.txt</code></li>
  <li>Run the app using <code>python app/app.py</code></li>
</ul>

Setup 🛠️

Set up the OpenAI API key

  • Get your OpenAI API key
  • Open Interface needs access to GPT-4o to perform user requests. GPT-4o keys can be downloaded from your OpenAI account at platform.openai.com/settings/organization/api-keys.
  • Follow the steps here to add balance to your OpenAI account. To unlock GPT-4o a minimum payment of $5 is needed.
  • More info
  • Save the API key in Open Interface settings
  • In Open Interface, go to the Settings menu on the top right and enter the key you received from OpenAI into the text field like so:

    Set API key in settings

  • After setting the API key for the first time you'll need to restart the app.

Set up the Google Gemini API key

  • Go to Settings -> Advanced Settings and select the Gemini model you wish to use.
  • Get your Google Gemini API key from https://aistudio.google.com/app/apikey.
  • Save the API key in Open Interface settings.
  • Save the settings and restart the app.

Optional: Setup a Custom LLM

  • Open Interface supports using other OpenAI API style LLMs (such as Llava) as a backend and can be configured easily in the Advanced Settings window.
  • Enter the custom base url and model name in the Advanced Settings window and the API key in the Settings window as needed.
  • NOTE - If you're using Llama:
  • You may need to enter a random string like "xxx" in the API key input box.
  • You may need to append /v1/ to the base URL.

    Set API key in settings

  • If your LLM does not support an OpenAI style API, you can use a library like this to convert it to one.

  • You will need to restart the app after these changes.

Stuff It’s Error-Prone At, For Now 😬

  • Accurate spatial-reasoning and hence clicking buttons.
  • Keeping track of itself in tabular contexts, like Excel and Google Sheets, for similar reasons as stated above.
  • Navigating complex GUI-rich applications like Counter-Strike, Spotify, Garage Band, etc due to heavy reliance on cursor actions.

The Future 🔮

(with better models trained on video walkthroughs like Youtube tutorials) - "Create a couple of bass samples for me in Garage Band for my latest project." - "Read this design document for a new feature, edit the code on Github, and submit it for review." - "Find my friends' music taste from Spotify and create a party playlist for tonight's event." - "Take the pictures from my Tahoe trip and make a White Lotus type montage in iMovie."

Notes 📝

  • Cost Estimation: $0.0005 - $0.002 per LLM request depending on the model used.

(User requests can require between two to a few dozen LLM backend calls depending on the request's complexity.) - You can interrupt the app anytime by pressing the Stop button, or by dragging your cursor to any of the screen corners. - Open Interface can only see your primary display when using multiple monitors. Therefore, if the cursor/focus is on a secondary screen, it might keep retrying the same actions as it is unable to see its progress.


System Diagram 🖼️

+----------------------------------------------------+
| App                                                |
|                                                    |
|    +-------+                                       |
|    |  GUI  |                                       |
|    +-------+                                       |
|        ^                                           |
|        |                                           |
|        v                                           |
|  +-----------+  (Screenshot + Goal)  +-----------+ |
|  |           | --------------------> |           | |
|  |    Core   |                       |    LLM    | |
|  |           | <-------------------- |  (GPT-4o) | |
|  +-----------+    (Instructions)     +-----------+ |
|        |                                           |
|        v                                           |
|  +-------------+                                   |
|  | Interpreter |                                   |
|  +-------------+                                   |
|        |                                           |
|        v                                           |
|  +-------------+                                   |
|  |   Executer  |                                   |
|  +-------------+                                   |
+----------------------------------------------------+

Star History ⭐️

<img src="https://api.star-history.com/svg?repos=AmberSahdev/Open-Interface&type=Date" alt="Star History" width="720">

Links 🔗

Core symbols most depended-on inside this repo

get_dict
called by 5
app/utils/settings.py
get_screenshot
called by 3
app/utils/screen.py
zip
called by 2
build.py
get_instructions_for_objective
called by 2
app/llm.py
process_command
called by 2
app/interpreter.py
stop_previous_request
called by 2
app/core.py
open_link
called by 2
app/ui.py
execute_user_request
called by 2
app/ui.py

Shape

Method 76
Class 15
Function 8

Languages

Python100%

Modules by API surface

app/ui.py27 symbols
app/models/gpt4o.py8 symbols
app/utils/settings.py7 symbols
app/utils/screen.py7 symbols
app/core.py7 symbols
app/models/model.py6 symbols
app/models/gemini.py6 symbols
app/llm.py6 symbols
app/app.py6 symbols
app/models/gpt4v.py5 symbols
app/interpreter.py5 symbols
build.py4 symbols

For agents

$ claude mcp add Open-Interface \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact