Handbook
Install and run
Getting the Lenses Python server running so you can open the dashboard and Forge Studio in a browser.
What it is
Getting the Lenses Python server running so you can open the dashboard and Forge Studio in a browser.
When to use it
First time you clone forge-lenses, or after updating dependencies.
Prerequisites
| Requirement | Notes |
|---|---|
| Git, Python 3, pip | Use a venv below — do not rely on system Python on macOS/Linux if your distro is strict |
| Network | Needed once for pip install |
Standalone vs submodule
| Approach | Prefer when… |
|---|---|
| Standalone clone | Lenses is a tool beside your product repos (typical) |
| Submodule | A parent “workspace” repo should pin the same Lenses revision for everyone |
Both paths end with a venv, pip install -r requirements.txt, and ./scripts/run-lenses.sh.
Steps
Standalone clone
git clone https://github.com/autowww/forge-lenses.git
cd forge-lenses
./scripts/setup.sh
python3 -m venv .venv
.venv/bin/pip install -r requirements.txt
./scripts/run-lenses.sh
Submodule
From a parent repo:
git submodule add https://github.com/autowww/forge-lenses.git forge-lenses
git submodule update --init --recursive
cd forge-lenses
./scripts/setup.sh
Then create a venv, pip install -r requirements.txt, and run ./scripts/run-lenses.sh from forge-lenses/.
Default URL
Open http://127.0.0.1:8080/ (or the port shown in the terminal if yours differs).
Health checks
| Check | Pass criteria |
|---|---|
| Classic UI | http://127.0.0.1:8080/ loads |
| API | http://127.0.0.1:8080/api/workspace-state returns JSON |
| Studio | http://127.0.0.1:8080/studio/ loads after Classic works |
If Classic works but Studio does not, see Studio 101 and Troubleshooting.
How to verify success
- The Classic dashboard loads in the browser.
- http://127.0.0.1:8080/api/workspace-state returns JSON.
What to do next
- Workspace setup — multi-repo root and config
- Studio overview —
/studio/
If /studio/ does not load correctly after the server is up, see Studio 101 and Troubleshooting.