Skip to content

Web server and deployment ​

Run session-web on a headless server and use it from a browser; plus Docker, security, and multiple machines.

Web server ​

The Linux web server is a static musl executable. It runs without WebKit or other desktop GUI dependencies.

bash
chmod +x ./session-web

# Default: loopback only (127.0.0.1:3000)
./session-web

# Network access: a token is required when binding to a non-loopback address
./session-web --host 0.0.0.0 --port 8080 --token my-secret

# Equivalent environment variables
ASV_HOST=0.0.0.0 ASV_PORT=8080 ASV_TOKEN=my-secret ./session-web
OptionEnvironment variableDefault
--hostASV_HOST127.0.0.1
--portASV_PORT3000
--tokenASV_TOKENNone; required for non-loopback hosts
--allow-no-authASV_ALLOW_NO_AUTHOff; allow a non-loopback host without a token (unsafe)
--allowed-originsASV_ALLOWED_ORIGINSNone; extra comma-separated origins allowed for CORS / WebSockets
--allow-skip-permissionsASV_ALLOW_SKIP_PERMISSIONSOff; let chat clients request --dangerously-skip-permissions
--allow-client-credentialsASV_ALLOW_CLIENT_CREDENTIALSOff; let chat clients supply their own API key / base URL

When querying models through Web/remote nodes, a custom Base URL requires an explicit, non-empty API key. Leave both blank to use the server's CLI configuration. Server-discovered keys are never implicitly sent to a client-supplied endpoint. Local desktop mode still supports local credential discovery.

Docker ​

bash
docker compose up -d

Configure mounts and ports in docker-compose.yml. The container binds 0.0.0.0, so a token is required: ASV_TOKEN=my-secret docker compose up -d.

Compose pins the published 3.2.0 image and its manifest digest; it does not follow latest or include unpublished local fixes. To upgrade, verify the new version and digest, set ASV_IMAGE=ghcr.io/zuoliangyu/ai-session-viewer-web:<version>@sha256:<digest>, then run docker compose pull and docker compose up -d. To deploy the current source instead, run docker build -t asv-web:local ., then ASV_IMAGE=asv-web:local ASV_TOKEN=my-secret docker compose up -d.

The Dockerfile also pins Node, Rust, and Alpine base-image versions and digests; maintainers upgrade them by hand and review and validate each change before merging. Dependency security checks run in regular CI, before releases, and daily; they do not publish images automatically.

Native web executableDocker
Browse, search, statisticsSupportedSupported
Host CLI conversationsCalls the installed host CLIHost CLIs are inaccessible due to container isolation
Runtime requirementStatic Linux executableDocker
Typical usePersonal server with CLI accessShared history browser

Access protection: session histories may contain source code, credentials, and private conversations. Local use needs nothing extra — the default bind is 127.0.0.1. For LAN access, configure a token and restrict the port with a firewall. For public access, also use an HTTPS reverse proxy such as Nginx or Caddy. The server itself does not provide HTTPS; tokens sent over plain HTTP are not encrypted.

Desktop and web differences ​

FeatureDesktopWeb
ResumeOpen a system terminalCopy a resume command
Delete sessionMove to recycle binMove to recycle bin
ForkCreate a session and open its terminalCreate and navigate to the new session
In-app chatLocal CLI processServer CLI through WebSocket
UpdatesIn-app updater / release linkManual deployment
File changesTauri eventsWebSocket events
AuthenticationNone for local IPCOptional on loopback; bearer token required for network binds

Multiple machines ​

Register session-web root URLs in the sidebar's machine selector. Each node has its own token and connection status. Browsing, search, statistics, file watching, and chat use the selected node. The desktop's local node continues to use Tauri IPC.

  • Use an http:// or https:// root URL without embedded credentials.
  • Remote folder selection and resume behavior follow web mode, even from the desktop app.
  • Node preferences stay in the current client's localStorage.
  • Statistics are displayed per node rather than merged.
  • See MULTI_NODE_SYNC_DESIGN.md for synchronization boundaries.

Released under the MIT License · Reads local session files only, nothing is uploaded