Use the dashboard
The dashboard is a web page that shows all workspaces of this machine. It does the same operations as the CLI. Use it to read logs, open a terminal in a service, watch CPU and memory, or start and stop workspaces with a click.
The dashboard changes the same state as lo. A workspace that you start with lo up shows in the dashboard, and the reverse is also true.
Open the dashboard
Section titled “Open the dashboard”- Run
lo ui. - Wait for the browser to open.
lo uistartslo ui servein the background if it does not run. It printsdashboard: <address>.
The server listens on 127.0.0.1 only, on port 7090. A different computer cannot reach it directly. To change the port, set ui: {port: <port>} in config.yaml, or run lo ui --port <port>. To open the dashboard on a different computer, see reach the dashboard from a different machine.
lo ui serve keeps running after lo ui returns. Its output goes to ui.log in the logs directory of the localspace home. To run the server in the foreground, run lo ui serve in a terminal. One server runs for each localspace home.
Sign in
Section titled “Sign in”The dashboard has a token. localspace makes the token on the first run and keeps it in ui.token in the localspace home. Only your user can read the file. The token works only on this machine.
lo ui opens the address with the token at the end, after #token=. The page changes the token to a session in your browser. A session stays valid for 30 days after its last use.
If the page shows that it has no session, run lo ui again.
| Command | Action |
|---|---|
lo ui sessions |
List the browsers that have a session. |
lo ui sessions rm <id> |
Sign out one browser. Its open terminals and log streams close immediately. |
lo ui sessions rm --all |
Sign out all browsers. |
lo ui token rotate |
Replace the token and sign out all browsers. |
Find your way
Section titled “Find your way”The top bar has links to four pages, a New workspace button, and a gear icon for the settings. A Live mark shows that the page receives changes from the server.
| Page | Content |
|---|---|
| Workspaces | All workspaces and shared instances of the machine, with status, CPU and memory. Charts above the list show the total use. |
| Flow | A graph. Each workspace and shared instance is a box, and each reference between them is an arrow. |
| Templates | The templates, with their services, repositories and resources. Each template shows the average memory and disk of its workspaces. |
| Secrets | The paths of the secrets that localspace stores. You can store a new secret. The page does not show a value. |
The usage numbers update live. localspace samples CPU and memory each 2 seconds, and the charts show the last 2 minutes.
Work with a workspace
Section titled “Work with a workspace”Click a workspace in the list to open its page. The header shows the name, the status and these buttons:
| Button | Same as |
|---|---|
| Up | lo up |
| Down | lo down |
| Restart | lo restart |
| Checkout | lo checkout. The dialog first shows which ports and aliases it takes. It can move only the aliases. |
| Release checkout | lo checkout --release. It shows only when the workspace holds ports or aliases. |
| Remove | lo rm. If a worktree holds unsaved work, the dialog shows the reason and offers to force the removal. |
The page has these tabs:
- Services and Resources: the units, with status, usage and the URLs of the services. A service shows the aliases that it holds after a checkout.
- Sources: the branch and the checkout of each repository. You can switch a repository to a different branch, as
lo setdoes. - Logs: the live logs of all units, or of one unit.
- Activity: the events that
lorecorded for the workspace, newest first.
To make a new workspace, click New workspace in the top bar. The form has four steps: the workspace, the services, the resources, and the start. It does the same as lo new, and it can run lo up at the end.
Work with a unit
Section titled “Work with a unit”Click a service or a resource to open its page. These tabs show:
- Logs: the live log of the unit.
- Earlier runs: the logs of earlier runs, as
lo runsshows them. - **Depends on**: for a service, the other services that it refers to in its env or lists in `depends_on`. The tab shows the variables that read them, their status, and the shared instance of a shared service.
- Resources: for a service, the resources that it uses.
- Used by: the services of the workspace that refer to a service, or that use a resource.
- Commits: for a service with code, the branch, the unsaved work and the latest commits. A service with an image or a shared service has no commits.
- Terminal: a shell in the service, with its env and directory. For a service in a container, the tab is Container terminal and the shell runs in the container. A shared service has no terminal.
Start a workspace on a small machine
Section titled “Start a workspace on a small machine”If the machine has less free memory or disk than the workspace used on average, the dashboard shows a dialog. The dialog shows the average use and the free amount of memory and disk. Click Cancel to stop, or Start anyway to continue. The CLI shows the same prompt. See lo up.
Change the settings
Section titled “Change the settings”Click the gear icon to open the settings. The page has these sections:
- Public URLs, DNS and HTTPS: the proxy, the domain and the certificates. See public URLs.
- Plugins: install and remove plugins.
- MCP: turn the MCP server on, copy the command that registers it, and read the list of its tools. See coding agents.
- Usage history: turn the recording of usage on or off.
- Appearance and Terminal: how the dashboard looks. The browser keeps these two settings. They are not in
config.yaml. - About: the version of localspace.
The sections for the machine write to config.yaml, the same file that you can edit by hand.