A fast, keyboard-driven terminal UI for managing Syncthing — browse folders, track sync states, manage ignore patterns, and control your files, all from the comfort of your terminal.
Screenshots and the demo GIFs are generated by demo/record.sh against throwaway Syncthing instances.
- Live Status Updates: See sync state changes instantly with visual icons (
📄✅synced,📁⛅remote-only,📄🔄syncing) - Directory States Up Front: Directories show remote-only files or local changes inside them as soon as a folder opens, without browsing into each one
- Folder Cards: State icon, type (
⇅Send & Receive,⇡Send Only,⇣Receive Only), size, file count and what's left to sync, with words only where icons can't say it (Syncing 62%, scanning, errors). Cards drop detail instead of getting cut off as the folder pane narrows while you browse - Ignored File Detection: Distinct icons for ignored files that exist (
📄🔇) vs deleted (📄🚫) - Local Deletions: Files deleted on this device in a Receive Only folder show
📄❌and "Deleted locally". Pressuto download one again from your other devices, orRto revert the whole folder - Icon Modes: Choose between emoji or Nerd Fonts icons
- System Dashboard: View device name, Syncthing version, uptime, storage usage, and live transfer rates
- Breadcrumb Navigation: Multi-pane directory browsing with ancestor highlighting
- Recursive Search: Fast wildcard search (
*jeff*,*.txt) with instant filtering as you type - Out-of-Sync Filter: Press
fto show only files that need attention- Shows remote files you need to download
- Shows local changes in receive-only folders (added/deleted/modified files)
- Works recursively across entire folder hierarchy
- Loads the full list in the background for large folders, with progress in the status bar
- Update History: View recent file changes with timestamps (lazy-loaded pagination) — press
Enterto jump directly to any file's location - Flexible Sorting: Sort by sync state, name, date, or size
- File Preview Popup: View file details, text, formatted JSON and tables, archive contents, ANSI art, or images directly in terminal
- Text files: Scrollable with vim keybindings
- Markdown: Rendered headings, lists, quotes, code blocks, links and tables; press
rfor the raw source - JSON: Pretty-printed with colors; press
rfor the raw file - CSV and TSV: Drawn as a table fitted to the pane, with long cells ending in
…; pressrfor the raw file - JSON, CSV and TSV files over 2 MB show raw (Markdown has no size cap)
- Archives: zip (also jar, apk, epub, cbz and Office files), tar and tar.gz list a summary and each entry's date, size and path. Archives are recognized by content, not extension. Zips with more than 10,000 entries list their first 10,000 rows (the totals cover the whole archive). Tarballs list their first 10,000 entries or first 64 MB (tar.gz: or first 512 MB unpacked)
- gzip: a gzip file that isn't a tarball previews as the file inside it (
config.json.gzas formatted JSON,syslog.1.gzas text), up to its first 20 MB unpacked. A damaged or partly written file shows what decompressed and says so in the title - Step through files:
Shift+↑/Shift+↓(orK/Jin vim mode) preview the previous or next file without closing the popup - Open the file:
oopens the previewed file. When you return from your editor, the preview shows your changes - ANSI art: Detected by extension (
.ans,.asc,.nfo,.diz; an.nfoor.dizthat is UTF-8 with non-ASCII characters or starts with<, like Kodi XML, previews as text), a character-art SAUCE record or its content. PC art is decoded as CP437 and Amiga ASCII as ISO-8859-1 (from the SAUCE font, or the characters used when there are no escape codes). Drawn at its SAUCE width (80 columns without one) in the classic DOS colors on black (blink blinks), and cut off rather than wrapped when the pane is narrower - UTF-16 text: Files with a BOM, or UTF-16 without one, preview as text
- Images: Terminal graphics (Kitty/iTerm2/Sixel/Halfblocks protocols)
- Ignore Management: Add/remove files from
.stignorepatterns - Folder Control: Pause/resume sync, change folder type (Send Only/Send & Receive/Receive Only)
- Folder Groups (Syncthing 2.1+): Folders are listed under their group, ungrouped last. Press
eto move a folder into a group, take it out, or create a new group. On older Syncthing the list stays ungrouped andetells you which version groups need - Safe Operations: Confirmation prompts for delete, restore, and other destructive actions
- Instant Feedback: Deleting, ignoring, unignoring, undeleting and reverting show their result at once and keep it until Syncthing confirms it, so icons don't flicker back to an older state. If Syncthing never confirms, stui shows Syncthing's real state after a short timeout
- Arrow Keys or Vim Mode: Choose your preferred navigation style
- Single-Key Actions: Quick commands for all operations (sort, ignore, delete, search, etc.)
- Context-Aware Help: Smart hotkey legend shows only relevant keys for current view
- Terminal Title: The window or tab title shows where you are (
stui · Projects/website) and is restored when you quit
git clone https://github.com/corcoran/stui.git
cd stui
cargo build --release
sudo cp target/release/stui /usr/local/bin/Optional: build with --features chafa for much better image previews in terminals without a graphics protocol, rendered with chafa instead of plain half-blocks. This links libchafa dynamically, so it must be installed (e.g. pacman -S chafa, apt install libchafa-dev) both when building and when running.
- Rust 1.70+ (install via rustup)
- A running Syncthing instance (local or remote)
Copy config.yaml.example, included in every release, to your config location and fill in your API key:
# stui configuration. Copy to:
# Linux: ~/.config/stui/config.yaml
# macOS: ~/Library/Application Support/stui/config.yaml
# Windows: %APPDATA%\stui\config.yaml
# Only api_key and base_url are required. Every other setting shows its default.
# Syncthing API key (web UI: Actions > Settings > General > API Key)
api_key: "your-syncthing-api-key"
base_url: "http://127.0.0.1:8384"
# Icon display mode: "nerdfont" or "emoji"
icon_mode: "nerdfont"
# Copying with `c`. If it is not set, stui copies through your terminal (OSC 52).
# This works locally and over SSH in most modern terminals. To use a clipboard tool
# instead, set a command that reads text on stdin.
# Wayland: "wl-copy", X11: "xclip -selection clipboard", macOS: "pbcopy", Windows: "clip.exe"
# clipboard_command: "wl-copy"
# Opening files with `o` on the desktop: a command that opens a file in a desktop app.
# stui starts it in the background (no default).
# Linux: "xdg-open", macOS: "open", Windows: "explorer"
# On window managers like niri, sway or Hyprland, xdg-open runs terminal apps such as
# nvim inside the terminal it was called from, which stui can't provide. Use "gio open"
# there, which opens them in a new terminal window.
open_command: "xdg-open"
# Editor that opens files inside stui's window. Quit it to return to stui.
# Over SSH or without a desktop session, stui uses it for text files and directories.
# Binary files only open on a desktop. With open_text_in_editor: true, stui also uses it
# for text files on the desktop. Default: $VISUAL, then $EDITOR.
# editor: "nvim"
# Open text files in the editor on the desktop too (default: false)
open_text_in_editor: false
# Maps paths inside the Syncthing container to paths on this machine (default: none).
# Needed when Syncthing runs in Docker, so delete, open, copy and preview find the files.
path_map:
"/data": "/home/user/syncthing-data"
"/photos": "/mnt/photos"
# Start with vim keybindings (same as --vim)
vim_mode: false
# Image preview
image_preview_enabled: true
image_protocol: "auto" # auto|kitty|iterm2|sixel|halfblocks
# Show the current folder, path or file in the terminal title
terminal_title: trueauto asks the terminal what it supports and uses Kitty graphics in Konsole and kitty. Terminals without a graphics protocol fall back to half-blocks, or chafa when built with --features chafa.
- Open Syncthing Web UI (usually http://127.0.0.1:8384)
- Go to Actions → Settings → General
- Copy the API Key value
If Syncthing runs in Docker with volume mounts, configure path_map to translate paths:
path_map:
"/data": "/home/user/Sync" # Container path → Host path
"/media": "/mnt/external/media" # Multiple mappings supportedThis allows stui (running on host) to perform file operations on the correct paths.
# Start stui (reads config from ~/.config/stui/config.yaml)
stui
# Enable vim keybindings for this session
stui --vim
# Enable debug logging
stui --debugStandard Navigation:
↑/↓— Navigate itemsEnter/→— Preview file (if file) or enter directory (if folder)←/Backspace— Go back to parent directoryPageUp/PageDown— Scroll by page (hidden feature)Home/End— Jump to first/last item (hidden feature)
Vim Keybindings (when enabled):
h/j/k/l— Navigate left/down/up/rightgg— Jump to first itemG— Jump to last itemCtrl-d/Ctrl-u— Half-page down/upCtrl-f/Ctrl-b— Full-page down/up
Inside the file preview popup:
↑/↓/j/k,PageUp/PageDown,Ctrl-d/Ctrl-u,Ctrl-f/Ctrl-b,gg/G— ScrollShift+↑/Shift+↓(orK/Jin vim mode) — Preview the previous/next file in the directoryo— Open the previewed file, with the same rules asoin the file list. The preview reloads when you return from the editorr— Switch a Markdown, JSON, CSV or TSV file (also inside a.gz) between formatted and rawEsc/←/?— Close the preview
| Key | Action | Confirmation |
|---|---|---|
Ctrl-F / / |
Search: Enter search mode (recursive wildcard search) | No |
f |
Filter: Toggle out-of-sync filter (shows remote needed files + local changes) | No |
u |
Context-aware: View update history (folder view; press Enter on a file to jump to it) OR Undelete a file deleted on this device in a Receive Only folder (breadcrumb view) |
No |
? |
Show detailed file info popup (metadata, sync state, preview). Note: Enter on files also opens preview. |
No |
c |
Context-aware: Change folder type (folder view) OR Copy path (breadcrumb view), through your terminal or clipboard_command |
Selection menu / No |
e |
Set the folder's group: pick one, remove it, or create a new one (folder view, Syncthing 2.1+) | Selection menu |
p |
Pause/resume folder (folder view only) | Yes |
i |
Toggle ignore pattern (add/remove from .stignore) |
No |
I |
Ignore AND delete from disk | No (immediate) |
o |
Context-aware: Open Syncthing web UI (folder view) OR Open file/directory (breadcrumb view) on the desktop or in your terminal editor; see Using stui over SSH | No |
d |
Delete file/directory from disk | Yes |
r |
Rescan folder (refresh from disk) | Yes |
R |
Restore deleted files (revert receive-only folder) | Yes |
s |
Cycle sort mode (Sync State → A-Z → Timestamp → Size) | No |
S |
Reverse current sort order | No |
t |
Toggle info display (Off → Timestamp → Size+Timestamp) | No |
q |
Quit stui | No |
Search Mode Keys (when search is active):
- Type to filter results in real-time
Enter— Accept search (keep filtering, deactivate input)Backspace— Delete character (auto-exits when query becomes empty)Esc— Clear search and restore all items
Filter Mode (when out-of-sync filter is active):
- Press
fagain to toggle filter off and show all files - Status bar shows "Filter: Remote + Local" (receive-only) or "Filter: Remote" (other folder types)
- Filter persists when navigating into subdirectories
Stui caches data for instant UI performance. Cache locations:
- Linux:
~/.cache/stui/cache.db - macOS:
~/Library/Caches/stui/cache.db - Windows:
%LOCALAPPDATA%\stui\cache\cache.db
To clear cache if you experience issues:
# Linux
rm ~/.cache/stui/cache.db
# macOS
rm ~/Library/Caches/stui/cache.db
# Windows
del %LOCALAPPDATA%\stui\cache\cache.dbstui works on a machine you reach over SSH, or one without a desktop:
- Copying (
c): With noclipboard_command, stui copies through your terminal (OSC 52). The path lands on the clipboard of the computer you are sitting at. In tmux, addset -g set-clipboard onto~/.tmux.conf. - Opening (
o): Over SSH or without a desktop session, stui opens text files and directories in your editor inside its own window. The editor iseditor, else$VISUAL, else$EDITOR. Quit the editor to return to stui. Binary files, such as images, only open on a desktop. On the desktop, files open withopen_command. To edit text files inside stui there too, setopen_text_in_editor: true.
If paste does nothing after c, your terminal may not support OSC 52 or may have it turned off. Check its settings, or set clipboard_command.
stui detects SSH from SSH_CONNECTION and SSH_TTY. A tmux session that you start on the desktop keeps those values when you reattach it over SSH. So in that session, stui still opens files as if it were on the desktop.
On window managers like niri, sway or Hyprland, xdg-open runs terminal apps (nvim, vim) inside the terminal it was called from. stui starts open_command in the background, so those would hang invisibly. Use open_command: "gio open" to open them in a new terminal window, or open_text_in_editor: true to edit text files inside stui.
- Check that Syncthing is running:
curl http://127.0.0.1:8384 - Verify
base_urlin your config matches Syncthing's listen address
- Ensure your API key in
config.yamlmatches Syncthing's settings - API key is found in Syncthing Web UI: Actions → Settings → General
- Run
rm ~/.cache/stui/cache.dbto clear stale cache - Required when database schema changes between versions
- Run with
--debugflag to enable verbose logging - Check
/tmp/stui-debug.logfor detailed operation traces - To try a build without touching your real setup, run
demo/run.shagainst the throwaway demo cluster (seedemo/README.md). It keeps its own cache and debug log underdemo/.run/
- No async loading spinners (planned)
- No batch operations for multi-select yet (planned)
Stui is designed for monitoring and file-level operations, not initial setup or configuration. You'll still need the Syncthing Web UI for these tasks:
| Category | Missing Features (that Web UI CAN do) | Impact |
|---|---|---|
| Device Management | Add/remove/edit devices, configure device settings (compression, rate limits, introducer), view device IDs | Cannot set up or manage sync relationships |
| Folder Setup | Create/delete folders, edit folder settings (path, label, versioning, intervals, pull order), share folders with devices | Cannot configure new sync folders; for existing folders stui only pauses, changes type and sets the group |
| Versioning | Enable/configure versioning schemes (Simple/Staggered/Trashcan/External), browse version history, restore old versions | No access to file version history or recovery |
| System Configuration | GUI settings (authentication, theme), connection settings (listen addresses, NAT, UPnP), global bandwidth limits, discovery/relay toggles | Cannot configure Syncthing's network or system behavior |
| Advanced Ignore Patterns | Direct .stignore editing with complex patterns, pattern validation/help |
Limited to adding/removing individual files only |
| Diagnostics & Monitoring | Syncthing logs, failed items view | Limited troubleshooting capabilities |
| System Control | Restart/shutdown Syncthing, API key management | Must use command line for system administration |
What Stui DOES Better Than Web UI:
- File-level browsing, deletion, and restore operations (Web UI doesn't browse individual files)
- Real-time sync state monitoring with visual indicators
- Fast keyboard-driven navigation and search
- Terminal-native file previews (text, rendered Markdown, JSON, CSV tables, archive listings, gzip contents, images, ANSI art)
Contributions welcome! This project is actively being developed. See PLAN.md for roadmap and CLAUDE.md for architecture details.
MIT License - see LICENSE file for details.
Built with:








