Skip to main content
Verified on Windows · macOS · Linux · Python 3.11+ · Local & Offline

Run your first 3D optical system locally in 60 seconds

OS Optics ships as a lean pure-Python MIT stack — free, offline-capable, and ready with zero account registration. Follow these four steps to verify your environment, trace a 3D beam path, launch the live viewer, import CSV prescriptions, and search 2,805 native lenses.

1

Install the MIT stack & run os-optics doctor

Use a clean virtual environment on Windows PowerShell, macOS, or Linux. If you later need protected commercial hardware assembly previews, install python -m pip install "os-optics[protected]" or uv tool install "os-optics[protected]".

python -m venv .venv
# macOS / Linux: source .venv/bin/activate
# Windows PowerShell: .venv\Scripts\Activate.ps1

python -m pip install os-optics os-optics-kit
python -m pip install os-optics-lens
os-optics doctor

Tip: If os-optics is not on PATH yet, activate your virtual environment or invoke python -m os_optics doctor directly.

2

Four commands: sync catalog, create, simulate & view in 3D

One catalog sync stores 3,000+ optical components locally so every subsequent design, simulation, and rendering step works offline. Here is a classic two-lens beam expander (beam_expander):

os-optics catalog sync
os-optics project example --kind beam_expander > project.json
os-optics project run project.json --out-dir run
os-optics view run

On Windows PowerShell 5.1, pipe with os-optics project example --kind beam_expander | Out-File -Encoding utf8 project.json for clean UTF-8 encoding. Inspect outputs with os-optics results describe run and os-optics project verify run.

Example kind Optical system Example kind Optical system
focus Single focusing lens dichroic_routing Two-wavelength dichroic split
folded Fold mirror and lens polarization Waveplate and polarizer
beam_expander Two-lens telescope two_beam_interference Two-arm interference fringes
relay_4f 4f optical relay two_color_dichroic Dual-line source to two detectors
folded_expander Folded beam expander dichroic_combiner Two lasers combined via dichroic
3

Live local read-only viewer: os-optics-kit view

While you or your AI assistant iterate on project.json or write fresh runs, os-optics-kit view opens a strictly read-only browser page bound only to your local loopback address — auto-updating interactive 3D rays, full power ledgers, freshness badges, and per-target checks with zero extra rendering packages required.

# Follow an existing simulation run directory live
os-optics-kit view run

# Pair a Project file with a run (automatically flags stale runs)
os-optics-kit view project.json --run run

# Evaluate once in a temporary folder and open the interactive 3D view
os-optics-kit view project.json --evaluate
4

Import CSV prescriptions & search 2,805 native lenses

Bring existing multi-element lens tables directly into native Projects via os-optics project import-prescription, search 2,805 offline starting prescriptions via os-optics-lens, or reproduce all 21 worked cases bundled in os-optics-kit.

# Save your own lens prescription table as prescription.csv, then import it as Project-native optical models
os-optics project import-prescription prescription.csv > lens_import.json

# Inspect the 2,805-record offline prescription library and retrieval workflow
os-optics-lens info
os-optics-lens help quickstart

# Browse all 21 reproducible cases and the optical-design agent skill
os-optics-kit cases list
os-optics-kit skills list

Ready to hand the heavy exploration to your AI assistant?

Configure OS Optics as your default optical tool in minutes, or explore 27 published engineering cases with real tolerance data.