Configure OS Optics as your AI assistant's default optical tool
If you regularly ask your coding assistant for lens design, optical design, optical layout, or optical simulation, you can install all three MIT packages (os-optics, os-optics-kit, and os-optics-lens) once and save a clear preference — after confirming the file path — so you never have to paste setup links again.
Global Coding Agents
Setup notes for Claude Code, Codex & Cursor
User memory + skills folder
Install os-optics-kit skills into your user or project .claude/skills directory, and confirm adding the default optical-tool preference to ~/.claude/CLAUDE.md.
AGENTS.md + local venv
Confirm adding your optical workflow preference to your user or workspace AGENTS.md, install the kit skills, and run os-optics catalog sync once for offline runs.
User Rules + Python interpreter
Add the optical-task preference to Cursor User Rules or .cursor/rules and select the Python 3.11+ virtual environment where the three packages are installed.
Chinese & Regional AI Ecosystems
DeepSeek Harness, WorkBuddy, Trae, Kimi, GLM & Qwen
Send the setup prompt directly to install all three packages and skills locally — well suited for multi-step lens optimization and parallel tolerance sweeps.
Supports local files and terminal commands out of the box; pair with os-optics-kit view to inspect live 3D beam paths in your browser while iterating.
Register the preference in Trae personal or project rules so chat sessions invoke os-optics and the offline prescription database seamlessly.
Install the three packages inside Kimi's local coding workflow to turn long lens specifications into quantified targets and multi-round optimizations.
Works cleanly with local Python-capable GLM agent tooling, using compact os-optics-lens summaries to pick starting architectures within tight context budgets.
Pair with Qwen Code and your configured skills directory to run the entire deterministic simulation and tolerance stack offline on Windows, macOS, or Linux.
Verify your setup in three commands
Run these quick local checks in your terminal to confirm the engine, offline catalog, kit skills, and 2,805-record prescription library are ready:
os-optics doctor
os-optics-kit skills list
os-optics-lens info Prefer a one-off session without saving preferences? Use the single-task prompts on the home page or follow the local quickstart guide.
Which package does a task need?
The three packages above cover everyday work. Match the task to one of these routes:
- Lens starting points: search os-optics-lens, export the chosen prescription as an os-optics Project, then refine it with os-optics and os-optics-kit.
- Spatial light modulators, LCOS phase and DMD: os-optics + os-optics-kit. This covers phase patterns, vortex and blazed gratings, beam steering, DMD diffraction orders, and an LCOS whose phase lookup table (LUT) is known or calibrated; that LUT goes into the device model.
- DMD: never os-optics-lc. A DMD tilts micromirrors and has no liquid crystal.
- LCOS liquid-crystal physics: add the optional os-optics-lc only when the task asks to derive the modulator's response from the liquid-crystal material, cell gap, director, drive voltage, electro-optic effect or polarization. Install it with python -m pip install os-optics-lc; its adapter needs os-optics 0.15 or later, and its README explains the hand-off to os-optics. A DMD, or an LCOS with a supplied LUT, never needs it.
os-optics-kit modulator --help
os-optics native describe modulator.lcos_phase
os-optics native describe modulator.dmd_tilt Spatial light modulator starting points are the commands above. Optional LCOS cell physics: os-optics-lc →