Skip to content

ScriptOS

Run Python and R scripts like a real app — no terminal, no setup headaches.

Download Quick start

ScriptOS running on macOS

Why ScriptOS

  • Point, click, run. Load a script and ScriptOS builds the form for its parameters — no flags to remember.
  • Dependencies handled. It shows what a script needs and installs it into an isolated environment, only when you click.
  • Safe by default. A risk scan warns about suspicious code, and memory/time limits stop runaway scripts.
  • Secrets stay secret. API keys live in an encrypted local wallet and never appear in the command line.
  • Reproducible. Same script, same environment, same result — every time.

Installing and starting ScriptOS

Grab the latest version from the ScriptOS Releases page (a new tab opens — come back here when you're done), then follow the steps for your system.

  1. On the Releases page, under Assets, click ScriptOS.dmg to download it.
  2. Open the downloaded file (double-click it in your Downloads folder). A window appears showing the ScriptOS icon and an Applications folder.
  3. Drag the ScriptOS icon onto the Applications folder. Wait for the copy to finish, then eject the disk image (right-click → Eject).
  4. Open Applications and double-click ScriptOS — or press Cmd + Space, type "ScriptOS" and hit Return.

First launch: \"ScriptOS can't be opened\"

macOS is cautious with apps downloaded outside the App Store. If you see this warning, right-click ScriptOS → Open → Open once. After that it starts normally. Details: Apple: open an app from an unidentified developer.

  1. On the Releases page, under Assets, click ScriptOS-windows.zip to download it.
  2. Right-click the downloaded file → Extract All… and pick any folder (for example Documents). Don't run it from inside the zip.
  3. Open the new folder and double-click ScriptOS.exe.

First launch: \"Windows protected your PC\"

Click More info → Run anyway. You only need to do this once.

Only needed if you want to compile ScriptOS from the source code. First download or clone the repository, then open a terminal in its folder.

./build.sh          # macOS: produces dist/ScriptOS.app
./make_dmg.sh        # macOS: produces ScriptOS.dmg

On Windows, run build_windows.bat — see BUILD_WINDOWS.md.

Only needed if you're changing ScriptOS's own code — end users never do this. Requires Python 3.

python3 -m venv .venv
.venv/bin/pip install PySide6 cryptography pytest
.venv/bin/python -m app.main

Whichever way you start it, use the house icon (top left) any time to get back to your loaded script — it works from anywhere, including the Environments page.

Your first run in 2 minutes

Analysis card for a loaded script

  1. Start ScriptOS and drag a .py or .R file onto the window (or use File → Open).
  2. Read the analysis card: it lists the script's parameters and any missing packages.
  3. Fill in the fields, then click Run.
  4. Watch the Logs tab live; results appear in the Files tab.

No script at hand? The repository contains small example scripts in tests/fixtures/ — the walkthrough below uses them.

Walkthrough: the basics

Every path below is a real file already in the ScriptOS project — clone/open the project folder and follow along exactly. Nothing here needs the internet except the one-time environment/package installs.

These four steps cover everyday use. Want more? Continue with Advanced.

1. Run a plain script (no dependencies, no environment needed)

analyze.py after a successful run: logs and a reproducibility summary

  1. Launch ScriptOS, drag tests/fixtures/analyze.py onto the window.
  2. The analysis card shows: 5 parameters detected, no dependencies (stdlib only).
  3. In the Input field, drag in tests/fixtures/samples.csv (or click its folder icon to browse).
  4. Watch the command preview update live as you type.
  5. Click Run. The Logs tab streams output; when it finishes, open the Report tab — that's your reproducibility record (exact command, parameters, duration).

2. Create an environment and install real dependencies

Analysis card showing a missing dependency

  1. Click Environments (top right) → Environments tab → + New environment, name it demo.
  2. Go back (arrow-left) to your script, load tests/fixtures/plot_histogram.py instead (drag it on, or use File → Recent Scripts if you loaded it before).
  3. Its analysis card shows pandas and matplotlib as ✗ not installed — that's checked against whatever's currently selected in the Environment dropdown.
  4. Set the Environment dropdown to demo. The dependency list re-checks against that environment — still missing there too.

Naming a new environment

  1. Click Install missing dependencies into this environment. Watch pip run live; when it's done, both packages show ✓.

Dependency resolved after install, environment attached to the script 6. Fill Input with tests/fixtures/samples.csv, leave Output Dir as ., click Run. 7. Open the Files tab — histogram.png is listed; double-click to open it. 8. Reload the same script later (or reopen ScriptOS) — the demo environment is still selected automatically. Check Environments → Environments tab → demo and you'll see "Activated for: plot_histogram.py" and its on-disk location.

3. Store a secret in the wallet and use it in a run

Secrets Wallet tab

  1. Environments → Secrets Wallet tab → + New set, name it Demo Credentials, enter a key like API_TOKEN and any test value.
  2. Back on a loaded script, set the Secrets dropdown to Demo Credentials.
  3. Look at the command preview — the secret is not there. It's injected only into the script's environment variables at run time, never as a visible argument. (To prove it to yourself: temporarily add import os; print(os.environ.get("API_TOKEN")) to a test script and run it — you'll see the value in the Logs tab, and only there.)
  4. The wallet's key file and encrypted store live in ~/.scriptos/ — check cat ~/.scriptos/credentials.enc.json yourself; it's ciphertext, not your value.

4. Run an R script

runnable_r_tool.R after a successful run

  1. Install R once if you haven't: brew install r
  2. Install the one R package ScriptOS's discovery relies on: Rscript -e 'install.packages("optparse", repos="https://cloud.r-project.org")'
  3. Load tests/fixtures/runnable_r_tool.R — no extra dependencies, safe to run immediately.
  4. Set Input to tests/fixtures/samples.csv, click Run — same workflow as Python, just a different interpreter under the hood.

Walkthrough: advanced

Optional extras: workflows, the command line, safety checks and limits. Same example files as above.

5. Chain two scripts as a workflow

Workflows page

Workflows are a simple linear chain — not a full pipeline engine. Each step's declared output feeds the next step's first file/directory input, automatically.

  1. Click Workflows (top right) → + New workflow, name it demo chain.
  2. + Add step twice: pick tests/fixtures/workflow_step_a.py, then tests/fixtures/workflow_step_b.py.
  3. Click Run workflow. Step 1 writes a result file; step 2 automatically receives step 1's output location and reads it back — no path typed by hand.

6. Use the command line (for people who already live in a terminal)

ScriptOS ships a small scriptos CLI that shares the same environments and manifests as the GUI:

scriptos list                       # environments + which scripts use them
scriptos new my-env                 # create one
scriptos activate my-env            # opens a subshell with it on PATH
scriptos run tests/fixtures/analyze.py --env my-env -- --input tests/fixtures/samples.csv

Or skip the CLI entirely: on the Environments page, each environment shows a copyable source .../bin/activate line — that's a plain Python venv, so any tool that understands venvs (including your own shell) works with it directly.

7. Power Terminal: jump straight into a directory + environment

Power Terminal tab

For working from a plain terminal without keeping a tab open just to stay oriented. Two independent wallets you mix and match:

scriptos dir new my-project ~/Desktop/my-project     # save a directory once
scriptos activate my-env --dir my-project            # cd + activate in one step

Or in the app: Environments → Power Terminal tab — pick an environment and a saved directory from the two dropdowns, get a copyable cd ... && source .../bin/activate line, or click Open Terminal here to launch a new Terminal.app window already sitting in that directory with that environment active.

8. See what a script without CLI flags looks like

interactive_script.py failing fast with EOFError instead of hanging

Load tests/fixtures/interactive_script.py — it calls input() and has zero argparse flags. The analysis card warns about both: no configurable parameters, and a script that would otherwise hang forever waiting for typed input (ScriptOS makes it fail fast with a clear error instead).

9. Check a script for risky code before running it

Risky-code warning on the analysis card

Load tests/fixtures/risky_script.py — it uses eval(), os.system(), and pickle.loads(). The analysis card flags each one with a plain-language reason. This is a static heads-up, not a security verdict — a script that hides what it's doing can still slip past it, so only run scripts from sources you trust.

10. Stop a runaway script automatically

Load tests/fixtures/memory_hog.py, set Memory limit (MB) to 50, and run it — it allocates far more than that and gets killed automatically, with the reason shown in the log. Leave both limit fields blank (the default) to run unrestricted. This is a safety net for scripts that spiral out of control, not an isolation boundary — a script can still do anything your user account can until a limit is hit.

Installing R

ScriptOS detects whether Rscript is on your system and tells you how to fix it if not:

brew install r
Rscript -e 'install.packages("optparse", repos="https://cloud.r-project.org")'

optparse is what ScriptOS's R parameter discovery looks for (make_option() calls).

Appearance

Light mode is the default. Switch via View → Appearance → Dark / Light in the menu bar. ScriptOS offers to restart so the change applies cleanly.

What ScriptOS is not

  • Not a full pipeline engine — workflows are simple linear chains
  • Not a replacement for the command line for people who already use it
  • Never installs anything without you clicking a button first
  • Never touches your OS keychain — the secrets wallet is entirely local to ~/.scriptos
  • Not a security sandbox — the risk scan and resource limits are heads-ups and safety nets, not isolation; only run scripts from sources you trust