# Interfaces

1. **Desktop, Web UI, Terminal TUI, CLI one-shot**
2. **Worker, port 18100** FastAPI and WebSocket backend, the Web UI, optional chat-channel adapters
3. **`~/.openprogram/projects/<project>/chats/`** one git repository per session; no project means the home project, default

Desktop embeds the Web UI and adds native Browser and Terminal panes. With no worker running, Desktop or the TUI starts one.

## Which one

| Interface | Open with | Best for |
| --- | --- | --- |
| [macOS Desktop](https://fzkuji.github.io/OpenProgram/docs/interfaces/desktop.html) | `/Applications/OpenProgram.app` | Multi-pane chat, Files, built-in Browser, Terminal, Agent control of visible internal webpages |
| [Web UI](https://fzkuji.github.io/OpenProgram/docs/interfaces/web.html) | `openprogram web`, then `http://localhost:18100` | Chat, DAG branch view, function, skill, MCP and memory management, settings |
| [Terminal TUI](https://fzkuji.github.io/OpenProgram/docs/interfaces/tui.html) | `openprogram tui`; bare `openprogram` first asks terminal or web | Chat in the terminal: slash commands, permission profiles, scrollable history |
| [CLI one-shot](https://fzkuji.github.io/OpenProgram/docs/interfaces/cli.html) | `openprogram --print "..."` | Scripts, other programs, quick questions |

## Continue a session elsewhere

| From | How |
| --- | --- |
| Terminal to Web | It is in the sidebar; click it |
| Web to terminal | `/resume` inside the TUI, or `openprogram --resume <session-id> --print "..."` |
| One-shot | Stored too; revisit in any interface |

`--resume` does not yet select the session when launching the interactive TUI: use `/resume`.

## Worker

| Command | Effect |
| --- | --- |
| `openprogram status`, `stop`, `restart` | Manage the background service |
| `openprogram worker install` | Launch it at login |

## Isolated workspaces

`--profile <name>` or `OPENPROGRAM_PROFILE` moves state from `~/.openprogram/` to `~/.openprogram-<name>/`: config, sessions, logs and credentials are separate, and each profile has its own worker.
