LogiShell For developersGet the apps My shells
For developers

Build on LogiShell

Root is the one LogiShell people open. A service plugs into it with one line, and people open it inside their shell next to LOG.

Plug in a serviceEndpointsLive services
What root is

One LogiShell, everything else plugs in

Root opens in any browser and installs as an app on a phone or a computer. It holds the frame: the main page, the builder where LOG makes a shell, and the shell itself. Accounts, kept shells and LOG are core services of the platform. Tools live in their own repositories and open inside a shell.

Plug in a tool

Three steps

  1. Add one line to services.json

    Say what it is in a person's words, where its code lives and where it answers in each environment. Root never holds its code. This is the real Sketch entry:

    {
      "id": "sketch",
      "name": "Sketch",
      "kind": "tool",
      "what": "An endless page for the pen, LOG draws along",
      "repo": "LogiShell/shell-sketch",
      "at": { "dev": "https://sketch.lsh.dev", "lsh": "https://sketch.lsh.dev", "prod": "https://sketch.lsh.dev" },
      "probe": "/",
      "icon": "sketch",
      "stage": "experiment"
    }

    kind is tool for something that opens inside a shell, core for the platform. A core service may also carry pin, the version root expects (0.9 accepts 0.9.58). "stage": "experiment" keeps a service off the main path.

  2. Let root frame it

    A tool opens in an iframe. Do not send X-Frame-Options: DENY or SAMEORIGIN, and if you send Content-Security-Policy, its frame-ancestors must allow https://root.lsh.dev. The frame runs with this sandbox:

    allow-scripts allow-same-origin allow-forms allow-popups
    allow-popups-to-escape-sandbox allow-downloads allow-modals
  3. Check it, then it is live
    npm test
    npm run check:live

    The second command asks your service in every environment and fails if it refuses to be framed. After deploy it shows on /_root with a live answer.

What people do today: in a shell, Add (in the left rail, or the bottom bar on a phone) puts a card on it (Today, Checklist, List, Week, Notes, Timer or Cards), or they ask LOG. Tool services plug in by their line in services.json. This week Sketch, Canvas and Content studio are marked "stage": "experiment": they stay off the main path and show only on /_root.

Endpoints

What root answers

GET/_rootEvery service with a live answer and its version, and every address of LogiShell.
GET/_root/services.jsonThe service map for this environment, each with its url.
GET/_root/domains.jsonEvery domain, its role and who serves it.
POST/_root/logLOG: {"mode":"build","text":"..."} builds a shell and streams it; other requests ask LOG about the shell.
POST/_root/id/codeSign in, step one: {"email"}. A code goes to that mailbox.
POST/_root/id/verifyStep two: {"email","code"} answers {"token","email"}.
GET/_root/id/meWho the token belongs to.
GET/_root/shellsThe shells this person kept.
GET
PUT
/_root/shells/<name>Read or keep one shell, up to 64 KB.

The /_root/id and /_root/shells calls take Authorization: Bearer <token> and accept only root's own page as origin. The token is kept by the page in the person's browser. Root passes calls to the platform and stores nothing.

The key is narrow. A sign in started by root gets scope shells: GET /api/me, GET the list of kept shells, and GET and PUT one kept shell. Nothing else on the platform answers to it. This comes with platform pull request 2186.

A shell

What a kept shell looks like

The page keeps a shell with PUT /_root/shells/<name> and the body {"shell": ..., "home": "https://root.lsh.dev"}. Reading it back answers {"shell": ..., "updatedAt": ...}. Tool kinds: today, list, checklist, week, notes, timer, cards and service.

{
  "name": "Founder desk",
  "sub": "For shipping a product with AI agents",
  "active": "t4k2pq",
  "tools": [
    { "id": "t4k2pq", "kind": "checklist", "name": "Launch week", "icon": "list",
      "list": true, "check": true, "hint": "Add an item",
      "items": [{ "t": "Record the demo", "done": true }], "note": "" },
    { "id": "t9x1ab", "kind": "service", "name": "Sketch", "icon": "sketch",
      "service": "sketch", "url": "https://sketch.lsh.dev", "w": 560,
      "items": [], "note": "" }
  ],
  "today": null,
  "msgs": [],
  "oneDone": false
}

A service tool keeps its service id and its https url, so it opens on every device the person signs in on, and LOG in the app knows it is there.

Next

Toward an integration API

Root is heading to be the place other products plug into: a line in services.json, a logishell.json in the product's repository, and the endpoints above. The goal is that at Web Summit 2027 a startup can integrate with LogiShell on the spot. It is not finished yet: today this page is its first draft, and it will change.

Environments

Where root runs

lshroot.lsh.devStaging of the main LogiShell, on the dev platform.
devdev.logishell.comRoot in front of the dev landing pages.
prodlogishell.com is not switched to root yet.

Code and more docs

Root lives in LogiShell/logishell-root on GitHub. The repository is private for now: ask for access. The platform APIs are documented at docs.logishell.com.