← Blog

How to run Agent S3 on an Orgo cloud computer

Point Simular's open-source Agent S3 at an Orgo computer instead of your laptop.

Updated

Agent S3 is Simular's open-source computer use agent, distributed as the gui-agents Python package. By default it controls the machine it runs on. With a small executor class it controls an Orgo computer instead: Agent S3 plans and grounds each step in your Python process, and the screenshots and actions happen on the Orgo computer.

This post follows the Agent S3 guide in the Orgo docs and adds two checks to make before a real task. For the previous generation, see Running Agent S2 on a remote desktop.

Agent S3 and Orgo

Agent S3 is the third generation of Simular's Agent S framework, and the current open-source one as of October 2026 (gui-agents 0.3.x). Compared with Agent S2, it drops the manager and worker hierarchy, adds a coding agent that can write and run code alongside GUI actions, and adds Behavior Best-of-N, which runs several attempts at a task and has a judge pick the one that completed it.

Orgo provides cloud computers for AI agents: a full desktop with a browser, reachable over HTTP and VNC. Orgo is the computer, and you bring the agent. Linux and Windows computers are self-serve. Macs and iPhones come from Get one in the app while they are in stock.

Code written for Agent S2 imports from gui_agents.s2. Agent S3 lives under gui_agents.s3, and its top-level class is AgentS3. Change both when you upgrade.

For background, see What is computer use? and Cloud desktops vs. headless browsers.

How it differs from Agent S2 and provider computer use

Agent S3 on OrgoAgent S2Claude, OpenAI or Gemini on Orgo
Packagegui-agents, gui_agents.s3, class AgentS3gui_agents.s2; needs gui-agents>=0.2,<0.3The provider's SDK plus the Orgo SDK
PlanningNo manager and worker hierarchyManager and worker hierarchyThe model's own computer use tool
Actionspyautogui code, run on the computer through POST /computers/{id}/execThe same idea, older importsOrgo's click, type and key endpoints
Code alongside GUI actionsOptional coding agentNoUp to your loop
Behavior Best-of-NIn the package; the guide's script and the agent_s CLI run without itNoNot built in
GroundingA separate grounding model, such as UI-TARS-1.5-7BIntroduced in S2The model returns coordinates itself

Use Agent S3 for new projects. The S2 post is for maintaining code from that generation.

Local or remote

Local (LocalExecutor)Remote (RemoteExecutor on Orgo)
SwitchUSE_CLOUD_ENVIRONMENT=false (the default)USE_CLOUD_ENVIRONMENT=true
Where actions runYour machine, with its OS permissionsAn Orgo Linux computer; RemoteExecutor installs pyautogui there when it starts
Screenshotspyautogui.screenshot()GET /computers/{id}/screenshot?response_format=binary
How actions runPython's exec on your machinecomputer.exec(), which calls POST /computers/{id}/exec
KeysOPENAI_API_KEY, HF_TOKENThe same, plus ORGO_API_KEY
Coding agent (LocalEnv)Your machineStill your machine

The agent_s command that ships with the package always drives the machine it runs on. To control an Orgo computer, use the guide's agent_s3.py script with USE_CLOUD_ENVIRONMENT=true.

Coordinates

Agent S3 emits pyautogui code with the click coordinates already in it, and RemoteExecutor runs that code on the computer. The scaling happens inside Agent S3: for each point the grounding model returns, OSWorldACI multiplies x by width / grounding_width and y by height / grounding_height. Both pairs have to fit your setup.

  • width and height are the screen the clicks land on. They are arguments to OSWorldACI and default to 1920x1080. A Linux computer created without a template or a resolution boots at 1280x720, and GET /computers/{id}/screens lists each screen's width and height. The guide's create_agent does not pass them, so add width= and height= to its OSWorldACI(...) call.
  • grounding_width and grounding_height are the coordinate space the grounding model answers in: the size of the screenshot after the model's processor rescales it. The Agent S README pairs UI-TARS-1.5-7B with 1920x1080 and UI-TARS-72B with 1000x1000.

Test one click before a real task. Ask Agent S3 to click something you can see and watch where the pointer lands in the Orgo dashboard. If clicks miss by more the further the target is from the top-left corner, the two pairs do not match. Send screenshots at full size, as the guide does.

Setup

These steps follow the Agent S3 guide. gui-agents supports Python 3.9 through 3.12.

1. Install the packages

bash
pip install gui-agents pyautogui python-dotenv orgo

gui-agents uses pytesseract, so install Tesseract too (brew install tesseract on macOS).

2. Set your API keys

bash
export OPENAI_API_KEY=your_openai_api_key
export HF_TOKEN=your_huggingface_token
export ORGO_API_KEY=your_orgo_api_key  # remote mode only

OPENAI_API_KEY is for the main model. HF_TOKEN is for a grounding model on Hugging Face Inference Endpoints. ORGO_API_KEY is for the Orgo API at https://www.orgo.ai/api; keys start with sk_live_. Sign up, then create a key under API keys in the dashboard.

3. Add the remote executor

The guide's agent_s3.py has two executors with the same three methods: screenshot(), exec(code) and destroy(). LocalExecutor uses your own screen. RemoteExecutor is the Orgo half:

python
import os
import requests
from orgo import Computer
 
 
class RemoteExecutor:
    def __init__(self):
        # Pass a size: SDKs before 0.0.47 default to 2 GB, which the API rejects.
        self.computer = Computer(ram=4, cpu=1)
        self.platform = "linux"
        # The Linux image ships python3 without pip or pyautogui, and the
        # actions Agent S3 emits import pyautogui. Install it once.
        self.computer.bash(
            "apt-get update -qq && apt-get install -y -qq python3-pip && "
            "pip3 install --break-system-packages -q pyautogui"
        )
 
    def screenshot(self):
        # The image bytes themselves, at full size.
        response = requests.get(
            f"https://www.orgo.ai/api/computers/{self.computer.computer_id}/screenshot",
            params={"response_format": "binary"},
            headers={"Authorization": f"Bearer {os.environ['ORGO_API_KEY']}"},
        )
        response.raise_for_status()
        return response.content
 
    def exec(self, code):
        result = self.computer.exec(code)
        if not result["success"]:
            raise Exception(result.get("error", "Execution failed"))
        if result["output"]:
            print(f"Output: {result['output']}")
 
    def destroy(self):
        self.computer.destroy()

Three things about it:

  • Size. Orgo Python SDK versions before 0.0.47 send 2 GB when you name no size, and the API refuses that: RAM must be 4, 8, 16, 32 or 64 GB. From 0.0.47, leaving out both ram and cpu gives 4 GB and 1 vCPU.
  • Screenshots. Agent S3 needs image bytes. response_format=binary returns them with any SDK version.
  • Cleanup. The guide's script calls destroy() when it exits, which deletes the computer and everything on it. Remove that call to keep the computer.

On a paid plan, Computer(ram=4, cpu=1) creates a computer on your plan (pricing). With no plan, the same call runs by the hour from your credit and makes a Medium Linux computer, whatever size it names. On starting credit that is your one computer, so if you already have one, connect to it with Computer(computer_id="your_computer_id") and remove the destroy() call.

The complete agent_s3.py, with LocalExecutor, create_agent and the task loop, is in the guide.

4. Run a task

bash
# Local: controls your own machine
python agent_s3.py "Open Chrome and search for weather"
 
# Remote: controls an Orgo computer
USE_CLOUD_ENVIRONMENT=true python agent_s3.py "Open Chrome"
 
# Interactive: asks for tasks until you type exit
python agent_s3.py

Watch the first remote run in the dashboard. Agent S3 ends a task by returning DONE or FAIL as its action. Stop the loop on both, so neither is sent to the computer as Python. Add this inside run_task, after the empty-action check:

python
if action[0] in ("DONE", "FAIL"):
    print(action[0])
    return action[0] == "DONE"

After a failed action, the guide's loop replaces your task with "The previous action failed. Try a different approach." Include the task in that message if you want the agent to keep it in view.

The package's own CLI drives the machine it runs on, not an Orgo computer:

bash
agent_s \
    --provider openai \
    --model gpt-5-2025-08-07 \
    --ground_provider huggingface \
    --ground_url http://localhost:8080 \
    --ground_model ui-tars-1.5-7b \
    --grounding_width 1920 \
    --grounding_height 1080

5. Optional: the coding agent

Pass a LocalEnv from gui_agents.s3.utils.local_env as OSWorldACI(env=...) to turn on the coding agent. It runs code on the host running your script. With RemoteExecutor that host is your laptop, not the Orgo computer, and Simular warns that the coding agent executes arbitrary Python and Bash with your user's permissions. Leave env=None unless you want that.

Environment variables

The guide's agent_s3.py reads these:

VariableDefaultRole
OPENAI_API_KEY(none)Main model API key
HF_TOKEN(none)Hugging Face token for a hosted grounding model
ORGO_API_KEY(none)Orgo API key, remote mode only
USE_CLOUD_ENVIRONMENTfalsetrue runs actions on an Orgo computer
AGENT_MODELgpt-5-2025-08-07Main reasoning model
AGENT_MODEL_TYPEopenaiMain model provider
GROUNDING_MODELui-tars-1.5-7bVisual grounding model
GROUNDING_MODEL_TYPEhuggingfaceGrounding model provider
GROUNDING_URLhttp://localhost:8080Grounding model endpoint
GROUNDING_WIDTH1920Grounding model output width
GROUNDING_HEIGHT1080Grounding model output height
MAX_STEPS10Maximum steps per task
STEP_DELAY0.5Seconds between actions

Point GROUNDING_URL at wherever your grounding model runs. The model defaults are the pairing the guide and the Agent S README recommend as of October 2026. Model IDs change upstream, so check that your providers still serve them.

The architecture

  • Coding agent (new in S3): writes and runs code alongside GUI actions, so work better done in a shell is not a sequence of clicks.
  • Behavior Best-of-N (new in S3): runs several attempts, summarizes each, and has a judge pick the one that completed the task. It lives in gui_agents.s3.bbon; the agent_s CLI and the guide's script do not use it.
  • Mixture of grounding (from S2): routes actions to visual grounding models that locate UI elements. It was introduced in the Agent S2 paper.
  • Cross-platform: macOS, Windows and Linux. In local mode each platform has its own setup: Accessibility access for your terminal on macOS, possibly an Administrator terminal on Windows, and python3-tk and python3-dev on Linux.

For benchmark results, see Simular's Agent S3 writeup and the OSWorld leaderboard.

Other agents on the same computer

Agent S3 fits when you want Simular's open-source loop, with a coding agent and a separate grounding model. A provider's computer use tool fits when you want one model to read the screen and return actions.

Before you run it

  • You run Agent S3 yourself and pay your model providers for its calls. Orgo bills only the computer.
  • The guide's RemoteExecutor targets Linux: it sets platform = "linux" and installs pyautogui with apt-get.
  • Agent S is designed for one monitor, and the executor works on the computer's boot screen.
  • In remote mode the coding agent runs on your machine, not on the computer.