Skip to content

Remote locations (cloud / WebDAV / Telegram) ​

Mount a NAS, cloud drive, or any WebDAV-capable service as a remote location, browse its .omy files like a local folder, and stream videos and preview images directly — only ciphertext ever leaves the device, and decryption happens on your machine.

Two kinds of remote location are supported today: WebDAV and Telegram.

WebDAV is the common standard across most self-hosted NAS (Synology, QNAP, TrueNAS) and aggregators (AList, Nextcloud, ownCloud), so a single WebDAV driver covers a large class of storage without adapting to each vendor.

Telegram turns your private chats, groups, and channels into directories — see Telegram below.

Why WebDAV first

WebDAV is an open standard with uniform semantics for listing directories, random-access reads via Range, upload, delete, and rename. Private cloud APIs differ widely in client protocol and token policy, and will be added as separate drivers only when there is a real need.

Add a remote location ​

At the bottom of the sidebar's Remote locations section, click New remote location, choose WebDAV, and fill in:

  • Server URL: the WebDAV root, e.g. https://nas.example.com/dav/;
  • Username / password: credentials for that service;
  • Name: the label shown in the sidebar (can be left blank);
  • Writable: leave it read-only if you are unsure.

The app runs a read-only probe first: the location is added only if it can connect and list the directory. If the account lacks write permission, it is automatically marked read-only.

Browse, recognize, and stream ​

Once inside, the app lists the directory and recognizes .omy files:

  • Recognition reads the file header rather than relying on the name, so renamed or moved files are classified correctly;
  • Video, audio, and images use the same preview/playback pipeline as local files. Seeking fetches ciphertext blocks on demand via HTTP Range — the whole file is never downloaded first;
  • In grid view, unlocked entries whose header carries a thumbnail show it directly. The thumbnail lives in the header TLV and is obtained while listing the directory, so no body download is involved; on failure it falls back to a type icon;
  • Listing is progressive: once the directory is listed, "Identifying…" skeletons appear immediately and each entry is filled in as soon as it is recognized — you don't wait for every file to finish;
  • A single file whose header can't be fetched because of a network problem is marked separately as "Could not read"; tap the entry to retry it. It is never confused with "locked (wrong password)", and you don't have to reload the whole directory;
  • Besides the item count, the bottom status bar separately counts 🔓 unlocked and 🔒 still-locked (wrong or untried password) encrypted files in the current directory. The numbers update live as scanning progresses; entries still being identified are not counted yet;
  • Decryption happens locally. The server and the wire only ever see ciphertext, just like the LAN sharing model: you must know the password yourself.

The WebDAV server must support HTTP Range for random reads, playback, and chunked downloads. If it ignores Range and returns 200, omy reads only a bounded prefix at offset zero; a nonzero offset reports unsupported instead of downloading the entire file for a seek. Malformed or incomplete 206 responses fail explicitly.

WebDAV streaming uploads complete only after the source stream matches the declared length and the server reports success. Locations supporting rename and delete upload a temporary object before committing the final name. A cancelled source stream, disconnect, or commit failure triggers best-effort cleanup; cleanup failures report possible residue. The GUI’s local batch uploads use the same bounded commit path and report each file’s outcome separately. Local source files and the source objects of remote copies are retained.

WebDAV file paths are relative to the configured server root. Unicode, spaces, and characters such as # and % are encoded consistently for reads, writes, rename, and delete. Download redirects apply only to the current request; temporary signature parameters do not replace the stable file identity used by bookmarks or caches.

Android: opening WebDAV files in other apps ​

On Android, the preview panel for a WebDAV file offers two explicit actions:

  • Open read-only: grants only the selected app read access to a content:// URI. If the same stable URI was previously opened for editing, omy revokes the old write grant first.
  • Open for editing: shown only for writable WebDAV locations, and grants only the selected app read/write access to the same URI. Whether a third-party app actually supports in-place saving still depends on that app.

Each remote file always maps to the same private local path, so its URI remains stable across repeated opens and app restarts. The URI exposes only the working file used for external opening; it cannot be used to browse omy's state file, other caches, or general device storage.

For ordinary files, the grant is bound directly to the selected app package and does not depend on omy's UI or process remaining alive: the external app can reopen the same URI after its receiving activity has finished, and Android can start the FileProvider on demand if omy was reclaimed. Whenever another app is selected, omy first revokes the URI's previous grants, leaving only the latest app and the read-only or read/write access chosen this time. This is not a permanent grant across device reboots—after restarting the device, open the file from omy again. Force-stopping, clearing the data of, or uninstalling omy is also outside this guarantee.

Encrypted files are different: the external app receives a decrypted plaintext working copy, so it gets only a temporary grant tied to the receiving activity's lifetime. Locking omy immediately revokes read and write grants for that URI and deletes plaintext working copies that are already synced (copies with unsynced changes are kept until they sync after the next unlock; leftovers from a previous run are also cleared at startup). Android cannot let a provider forcibly invalidate a file descriptor that another app already opened, so close the file in the third-party app before locking.

External opening keeps a plaintext working copy

Inline preview uses omystream:// and does not write plaintext to disk, but third-party apps cannot consume that internal protocol. External opening therefore stores a plaintext working copy of the single file in omy's private Android directory. Only the selected app can access it through the temporary grant, but an attacker running as the same local user, a rooted device, or anything able to read private app data may still obtain the copy. Uninstalling omy or clearing its app data removes it.

An editable file is not uploaded on every FileObserver event. The observer only marks it as potentially changed; omy checks immediately when it returns to the foreground and batches synchronization every 30 seconds while the process remains alive. If Android kills omy, the edit session, remote revision baseline, and local content fingerprint remain persisted; the next launch checks them again and resumes pending work.

Synchronization never overwrites blindly. omy records the server ETag when the file is opened, falling back to Last-Modified when no ETag is available; if neither exists, "Open for editing" is refused. Uploads are conditional. If another device changed the remote file, omy keeps the local edit and reports a conflict instead of silently replacing the remote version.

For a .omy file, the third-party app receives a decrypted single-file working copy. Synchronization re-encrypts it while preserving the original file UUID, all password slots, device-key slots, recovery-code slots, and format parameters. Encrypted directory containers cannot be edited externally. To cover the window where an upload succeeds but Android kills the process before state is committed, the pending ciphertext is persisted as a transaction file and the exact same bytes are reused after restart.

Read-only vs writable ​

Capabilities come from the backend's real probe, not from a UI toggle:

OperationWritableRead-only
List, recognize .omy✅✅
Preview / stream (read ciphertext on demand)✅✅
Listing thumbnails (read header, not body)✅✅
Decrypt to local (plaintext lands only on this machine)✅✅
Ciphertext block cache✅✅
Remove a single file from the cache (local ciphertext only)✅✅
Encrypted upload / Upload to another remote✅❌ rejected before any request is sent
Keep permanently / stop keeping✅✅
New folder, rename, deleteNot available yet❌

Right-click on desktop, long-press on mobile on an entry opens its context menu: "Preview / Open", "Upload to…", "Decrypt to local…", "Keep permanently" (shown as "Stop keeping" for files already kept), and — once that file actually has local ciphertext blocks cached — "Remove from cache".

Menu items follow the capabilities of the current directory, not of the location. Within one Telegram location the conversation list is not writable, a read-only channel is not writable, and your own group is — so the upload button only appears where writing actually works.

Decrypt to local ​

A read-only location cannot be rewritten, yet you may still need to bring a file back to this machine to edit or keep — that is what "Decrypt to local" is for: the server only ever holds ciphertext, and plaintext is written only into a local folder you choose.

  • After you pick a local folder, the app streams ciphertext, decrypts, and writes it out chunk by chunk; a multi-GB video is never loaded fully into memory.
  • Downloads reuse the ciphertext block cache, so parts already streamed while scrubbing are not fetched twice.
  • The file name comes from the original name recorded in the header (and is sanitized to stop a crafted name from writing outside the target folder). It never overwrites: if a same-named file already exists, it errors out and asks you to pick another location.
  • Encrypted folders (containers) cannot yet be decrypted to local from a remote location; handle them locally for now.

Encrypted upload is available (see the Telegram section below). Delete, rename, and new folder still have no general-purpose UI entry point; Upload to… uses the target's capabilities internally for safe commit and cleanup, as described next.

Upload to another remote location ​

Right-click a local file or a file in a real remote location and choose Upload to…. The destination picker can browse WebDAV folders or Telegram conversations. It re-queries effective capabilities after every directory change, and confirmation is enabled only when that specific directory reports write; a location-level upper bound is never treated as proof that the current directory is writable.

  • Local → remote uses the ordinary local-file upload path.
  • Remote → remote (Cache locally and upload) stores the complete source file in its server-side format in the permanent directory. A retry reuses that local file, at the cost of disk space.
  • Remote → remote (Upload through memory) reads up to 8 MiB from the source at a time and connects download to upload with a fixed, bounded 64 MiB in-memory queue. It writes no local cache; if upload is slower, download waits instead of accumulating without bound.

When media is copied from Telegram to another Telegram conversation, omy reads the source message's real media attributes and preserves its Telegram classification as a photo, video, audio item, or GIF during re-upload. A video therefore stays in the Media tab instead of becoming a generic file attachment. Ordinary documents and .omy files remain file attachments, and non-Telegram targets such as WebDAV still receive only the original byte stream.

Commit and cleanup follow the destination's capabilities rather than assuming every remote can rename or delete:

  1. If write, rename, and delete are all supported, omy writes a random temporary name and renames it only after the upload succeeds; failures can delete that exact temporary object.
  2. If either rename or delete is unavailable, omy writes the final name directly. When delete is available it attempts cleanup after failure. When delete is unavailable or cleanup fails, Transfer Management reports that an incomplete object may remain and does not offer Retry until you inspect the destination.
  3. Path-based destinations such as WebDAV refuse to overwrite a same-named existing file.

Every remote-copy operation appears immediately in Transfer Management, showing progress, bytes transferred out of the total, speed, and estimated time remaining, with cancellation and Retry for failures that are safe to retry.

Can Telegram resume transfers? ​

Download and upload have different answers:

  • Downloads can continue from an offset. Telegram's download API accepts offset; in permanent-cache mode a retry reuses blocks already downloaded rather than fetching them again.
  • The upload protocol is chunked, but current omy cannot continue an entire failed upload from chunks already accepted by Telegram. The grammers upload API used by omy creates a new file_id for each call and does not expose the completed-part set, so retrying an upload to Telegram starts that upload again. Temporary uploaded parts are short-lived as well.
  • Memory mode keeps no source blocks, so a failed task reads the source again. Permanent-cache mode can avoid repeated downloading, but the destination upload still restarts.

Cache an entire Telegram group ​

In a Telegram location's conversation list, right-click a group on desktop, or tap the group's More button on mobile, then choose Cache all…. The dialog can combine:

  • file types: photos and videos, audio, ordinary files, and GIFs (multi-select);
  • a time range: all time, the last 7 or 30 days, or custom inclusive dates;
  • a message keyword matched against the message text or media caption.

All selected conditions are combined with AND. Confirming creates a global download parent task immediately; child file tasks appear progressively while history is scanned. Files already fully present in temporary cache or permanent storage are marked as skipped. The parent or any child can be paused, resumed, or cancelled; retryable failures can be retried individually or together from the parent. Downloads go to the temporary block cache governed by its size limit and LRU eviction—they are not silently promoted to permanent storage.

Set the number of simultaneous child downloads under Settings → Remote locations → Parallel downloads. This is separate from the directory-scan concurrency setting; raising it consumes more bandwidth and increases the chance of Telegram rate limiting.

Telegram ​

Mount your Telegram conversations as a remote location: each conversation is a directory, and the documents, photos, and videos in it are the entries. .omy files are recognized, previewed, and streamed exactly as they are over WebDAV.

Signing in ​

At the bottom of the sidebar's Remote locations section, click New remote location → Telegram. There are three sign-in routes:

  • Sign in with a QR code: scan it with a phone that is already signed in, so you never type a phone number or verification code into omy. The code refreshes itself when it expires, and the interface makes that refresh visible. If your account has two-step verification enabled, omy asks for the cloud password at the point where the server requires it — accounts without it never see that step.
  • Sign in with a phone number: enter a number with its country code, submit Telegram's verification code, and enter the cloud password if two-step verification is enabled.
  • Reuse the desktop sign-in: read the tdata folder of Telegram Desktop on this machine and reuse the sign-in it already has, with no QR code. You must quit the desktop client first — closing its window is not enough, it minimises to the tray. The portable build keeps tdata next to Telegram.exe, where automatic detection usually will not find it, so the interface lets you point to it.

Reusing the desktop sign-in means sharing one session

After importing, omy and the desktop client share a single sign-in session, not two: signing out in the desktop client ends it in omy as well.

The sign-in (which contains account credentials) is encrypted and stored on this machine. The key is held by the system credential store, and omy never falls back to plain text when that store is unavailable, at the cost of signing in again on every launch.

Encryption is off by default and optional. Accounts without an omy password stay as they are and connect automatically as before. To add a layer of omy-password protection to a sensitive account, there are two entry points:

  • Right-click it in the sidebar → "Encrypt this location": a password dialog opens and you set a password right there (typed twice to confirm, with an optional KDF strength) — the same interaction as encrypting an ordinary omy file; the same menu also offers "Remove encryption" to revert to the default.
  • After an account is added successfully, omy asks once whether to encrypt — you can encrypt or skip (default is not encrypted).

The key is the password you set. It shares the same session key pool as ordinary .omy files and other encrypted locations: omy remembers every encrypted vault it has seen (only the public salt and Argon2 parameters from the file header, never the password), so with the same password, unlocking a local file first or any one location first automatically unlocks all other same-password vaults and Telegram locations without retyping; the "N passwords unlocked" indicator counts distinct passwords.

Once encrypted, the location shows as encrypted (with a lock badge). On a cold start, before you type the password, it shows as locked — you can see its name but can't enter, with a prompt to unlock first; after you enter the correct password you're in and it connects automatically. The name stays visible while locked. Locations that are not encrypted are unaffected and open directly.

Most networks need a proxy

Direct connections to Telegram's data centres fail on many networks. Telegram uses one global proxy policy, managed under Settings → Remote locations → Telegram proxy. Every account and every path—QR sign-in, phone sign-in, tdata import, browsing, downloads, uploads, remote copies, message reading, forwarding, and group creation—uses that same policy.

The default Use the current system proxy automatically mode reads the system setting whenever a Telegram connection is created or rebuilt; if no supported system proxy is enabled, it connects directly. You can instead choose Set manually and enter one global fixed address, such as socks5://127.0.0.1:7897; an http:// address is normalized to SOCKS5 on the same port. On desktop the controls are stacked at full width in Remote locations; on mobile, Settings has a dedicated Telegram proxy entry that opens the same global settings. Save and check connection first persists the current policy, then runs the connectivity probe through the backend policy that will actually be used. Saving a different policy invalidates existing Telegram connections and open remote-file handles, and the next operation rebuilds them under the new policy.

Telegram location records never store proxy addresses. On upgrade, proxy values written into each location's url field by older versions are removed automatically and no longer participate in connection selection.

omy reports itself honestly as omy in Telegram's list of active sessions rather than impersonating an official client, so you can always recognise it there and revoke it.

Multiple accounts ​

You can mount several Telegram accounts at once. Each one is its own remote location with its own stored sign-in. Adding another account after the first still runs a full sign-in rather than silently reusing the account you already have.

A location is named after that account's display name by default. When two accounts share a display name (a main and an alt belonging to the same person, say) the sidebar cannot tell them apart, so the name can be changed: click the ✎ on that row in the location list. This only changes the name on this machine; it does not touch the account profile on the server.

There are two ways to get rid of a Telegram location, and their consequences differ a lot, so they are two separate entries:

Sign-inNext time
Remove from list (✕)Kept on this machineAdd it back directly, no new QR code
Delete account (🗑️)Deleted as wellScan a QR code or import tdata again

The latter cannot be undone, and says so before you confirm. Note also that removing a location from the list does not delete files you kept permanently — they still occupy disk space; clear them from the permanent list in Settings.

Browsing and searching ​

Entering the location shows the conversation list; opening a conversation shows its files. The file list is split into five tabs by type — Media, Files, Links, Audio, GIF — each returned by Telegram's server-side type index: the Media tab holds images and videos, the Files tab holds documents, and the rest each get their own tab. Images sent as photos and videos sent as videos land in the Media tab; documents sent as files land in the Files tab. Tabs load a screen at a time — fill one screen first, then fetch more as you scroll. Thumbnails first show the tiny low-res placeholder carried with the message, then swap to the sharper image once it is fetched in the background.

Each conversation also has a message view that lists messages over time with files as the through-line, so a message carrying a file can be opened directly. For broadcast channels the message view is read-only browsing (you can read it, but omy does not implement sponsored messages — see the note below).

When a message carries a "reply #N" reference, clicking it jumps to the referenced message: while loading, only a small spinner appears next to the reference — the whole list is not reloaded. If the target is outside the loaded range, omy fetches a window centered on it and highlights the message. After the jump the timeline continues in both directions — scroll down for older messages and up (toward the top) for newer ones; the messages from before the jump are kept.

For the file block inside a message: a plain click previews/opens it; right-click and choose "Show in files" to switch to the matching file tab (Media / Files / Links / Audio / GIF, chosen from the file's type) and scroll that file card into the middle with a highlight. If the target is outside the loaded range, omy fetches one page anchored on it — it never triggers endless paging.

Multi-select and forwarding ​

Files and messages inside a Telegram conversation can be forwarded natively:

  • In file view, right-click one file and choose Forward…. Use Ctrl/Command-click on desktop or long-press on mobile to enter multi-select; the selection toolbar then offers Forward.
  • In message view, each row has a checkbox, so text-only and file-bearing messages can be selected together. Right-clicking a message row also forwards that single message.
  • The destination dialog lists only groups or people the current Telegram account can actually write to. Read-only conversations and broadcast channels are omitted, and destinations can be searched by name.
  • Forwarding uses Telegram's native forwardMessages; the server forwards the message directly, so omy does not download the file and upload it again. Message IDs are deduplicated and sent in original chronological order.
  • One operation accepts at most 100 messages, keeping the action to one server request and avoiding a partially completed multi-batch operation that cannot be retried safely.
  • The destination dialog can create a supergroup whose only initial member is you. The new group is selected after creation, but nothing is sent until you press Forward here.
  • Forwarding stays within the same Telegram account. A source conversation with protected content cannot be forwarded, and omy reports that before sending the request.

Search comes in two forms, and the interface keeps them clearly apart:

  • Filter locally: narrows the entries already listed. The search term is not sent anywhere.
  • Search on the server: Telegram searches server-side and finds history that was never listed. This sends your search term to Telegram, so it takes an explicit switch, after which a notice states exactly which term was sent.

Searching on the server from the conversation list searches across all conversations. Conversations you lack access to are skipped silently, but rate limiting and network errors are reported as such — that is a different thing from "nothing was found".

Search and all four batch actions are connected to the backend. End-to-end verification with a real account is still pending.

Inside a conversation, the filter button at the right edge of the search box opens Advanced search. Combine several conditions and choose whether messages must match all of them or any of them:

  • Media type: photos, videos, GIFs, music, voice, files, links — pick any number;
  • File extension: e.g. mp4, mkv, pdf; case and a leading dot don't matter;
  • File size: a minimum, a maximum or both, in KB / MB / GB;
  • Message text: the message body or media caption contains this text;
  • Message date: a start date, an end date or both; both days are included, in your device's time zone.

To mix AND and OR, click Add group: a group has its own "All of these / Any of these / Not all of these / None of these" setting and counts as a single condition in the level above. Groups nest up to two levels — for example "video, AND (extension is mkv OR text contains 'outtakes')". The AND / OR labels between conditions can be clicked to switch how that whole group is combined.

Every condition can be negated ("does not contain", "is not", "outside range"). When negated, text-only messages without a file count as matches for the extension and size conditions. Message-text conditions are sent to Telegram's servers, the same as server-side search above.

Matches are listed below as the chat is scanned; scrolling to the end keeps scanning older history. Select all matches selects every match, including messages not scanned yet: when you run an action, omy keeps walking the whole conversation and skips only the items you unticked, so until scanning finishes the count shows as "N+". With a selection you can:

  • Keep permanently: store every file as a complete permanent copy;
  • Forward…: native forward to another chat (unavailable in chats with protected content);
  • Add to virtual remote…: create a reference to each file in a virtual remote;
  • Upload to…: copy to another remote location.

A batch action appears in Transfers as a parent task that can be paused, resumed, cancelled and retried for failed items. File actions skip messages without downloadable files. Forwarding preserves chronological order in batches of up to 100. An uncertain forward result is not blindly retried; check the destination first.

Uploading ​

When uploading into a writable conversation, omy always sends as a file rather than letting the client classify by content. Sending as a photo makes the server re-encode the data, which is fatal for ciphertext — and the resulting failure points at the key rather than at the upload method.

Current limitations ​

  • Some groups enable "restrict saving content" (noforwards). omy can still read and play those files normally, but cannot forward them. The Forward action is disabled, and the backend rejects the operation again before sending a request.
  • A few files are served via a CDN redirect, which this version does not support. It reports a clear error instead of failing silently.
  • The message view for broadcast channels is read-only, and omy does not implement sponsored messages. Telegram's terms require clients that display a message stream to support and faithfully display sponsored messages (ads), and carrying ad delivery and impression reporting inside a local encrypted file manager conflicts with what omy is for. omy's choice is to browse channel messages read-only and not implement sponsored messages (i.e. not participate in ad delivery), rather than refusing to show messages at all. Files and the media tabs in those channels work as usual.

Remote cache ​

Repeatedly seeking through a remote file would otherwise re-fetch the same bytes. The temporary tier keeps an internal hashed block cache:

  • Blocks are aligned to 1 MiB and evicted with LRU once usage exceeds the limit;
  • Decrypted .omy plaintext and keys never enter the temporary cache;
  • The cache key incorporates the file version and total length, so updated content under the same name never matches stale blocks.

Under Settings → Remote locations → Remote cache you can:

  • Set the maximum size (512 MB / 1 GB / 2 GB / 5 GB / 10 GB / unlimited; default 2 GB);
  • See current usage and clear it immediately;
  • Open the cache directory;
  • Clear the cache on exit.

Beyond clearing everything in settings, you can clean up a single file: choose "Remove from cache" in an entry's context menu. It deletes only that file's locally downloaded ciphertext blocks and never touches the remote file, so it is available on read-only locations too. The menu queries on demand — the item only appears when the file actually has some cached blocks; a file with no cache never shows an empty action. Whether a file is fully cached (available offline) is counted block by block at 1 MiB; this is not scanned for every file while listing the directory, to avoid slowing down browsing when there are many files.

Keep permanently: complete original files and reuse across machines ​

The temporary blocks above are evictable. Keep permanently instead downloads and atomically commits the complete remote file in its original server-side format; it does not merely flag existing blocks. A .omy file remains encrypted as .omy, while an ordinary Telegram or WebDAV photo, video, or document remains directly usable by other applications.

  • Permanent files are outside the temporary-cache limit and never evicted; Settings reports their total size and file count separately;
  • Telegram uses pinned/telegram/<userId>/<chatId>/<messageId>/<server filename>;
  • WebDAV uses pinned/webdav/<normalized URL + username source directory>/<remote-path hash>/<server filename>;
  • These paths do not depend on machine-local p1 / p2 ids. Removing and re-adding the same remote, or copying/merging the whole pinned directory onto another machine and adding the same remote there, reuses the data;
  • Unsupported filesystem characters are escaped deterministically. .omy-pin.json beside the file records the original server name, stable source, size, and version for validation and management;
  • Stopping permanent storage deletes the complete copy. Any temporary preview blocks that still exist remain under LRU management.

Ordinary remote files remain ordinary files in the permanent directory

When an ordinary Telegram or WebDAV file is not encrypted as .omy, its permanent copy is not additionally encrypted either. Other local programs can see its server filename and contents. A complete copy is created only when you explicitly choose Keep permanently.

Settings → Remote locations → Remote cache → Manage permanent files… lists the stable source, item id, and server filename and lets you delete copies one by one. The list remains available after a location is removed, so reclaiming space does not require reconnecting to the remote.

"Cache on Wi-Fi only" on mobile will follow in a later release.

Where config and cache live ​

Portable-first layout:

  • Desktop: omy-data/config.toml, the omy-data/cache/remote/ ciphertext cache, and the local device store omy-data/devices.omy (which holds the local private key and paired-device list) all sit next to the executable; copying that whole folder carries settings, cache, and pairing identity with it;
  • Mobile: the app's own data directory.

The device store path can also be overridden explicitly via the OMY_DEVICE_STORE environment variable. See Configuration for the full list of keys.

Managing remote locations from the command line ​

Remote locations are not limited to the GUI. The omy remote subcommands read and write the same remote.places as the GUI: a WebDAV location added on the CLI is recognized by the GUI and its password unlocks there, and vice versa. For the full command and option list see Command overview › remote; this section gives the GUI↔CLI coverage and the real boundaries.

CapabilityGUICLI
WebDAV location: add (with liveness probe) / list / show / rename / remove✅✅
Telegram: QR-code login (terminal QR)✅✅
Telegram: phone-number phone, import desktop tdata✅✅ (wired, not tested against a real account)
Telegram: detach (keep session) vs logout (destroy session)✅✅
Telegram: global proxy proxy-*, pre-login check, local status✅✅ (check probes live)
Telegram: custom app identity app-id-* (encrypted envelope)✅✅
Telegram: per-place encrypt / unlock / lock / decrypt (offline)✅✅ (offline)
Telegram: forward targets / forward, server-side search, self-archive group✅✅ (wired, not tested against a real account)
Telegram: cache entire group, parent/child transfers, parallel downloads, pause/retry✅ (desktop and mobile)N/A (requires a long-running global task and interactive transfer management)
Telegram: advanced chat search (combined conditions with AND/OR groups, date range)Connected; real-account verification pendingAvailable (advanced-search --query-file, shared query logic)
Telegram: batch actions on all advanced matchesParent/child tasks with pause, cancel and retryNot yet (requires resident GUI tasks and destination selection; individual actions have CLI equivalents)
List directory ls, download download, cross-location ciphertext copy✅✅
Upload: single file upload, recursive directory upload (non-transactional)✅✅
mkdir / delete (recursive) / move (same-directory rename)not offered yet✅
Remote single-file decrypt streamed down-and-decrypt to local✅✅
Remote cache: status / clear temporary blocks / keep complete original files / stop keeping✅✅
Virtual locations (favorites) place / folder / ref / encrypt / lock / unlock✅✅ (offline)
Preview / stream video, audio & images, incremental scan, thumbnails✅N/A (GUI-only; the audio player and scrubber do not apply to a terminal)
Transfer manager page, resuming a failed transfer✅N/A (CLI is a short-lived process)
Broadcast-channel message view, sponsored-message stance, in-place preview/source-jump from a reference✅ (read-only)N/A (GUI event stream / interaction)

A few CLI-specific constraints:

  • Passwords never hit the command line: the WebDAV password, the Telegram two-step password, the per-place password, the virtual-favorites password, and the custom api_hash all come only from interactive hidden input / --password-stdin / --password-file / --password-env (or their --code-* / --passcode-* / --hash-* equivalents); there is no --password. Anonymous WebDAV needs an explicit --anonymous (mutually exclusive with any password channel) — it is no longer "leave the password blank".
  • The file commands' --password-* is only needed for an encrypted Telegram place: ls / upload / download / mkdir / delete / move / cache pin|unpin all carry this place-password channel, but it unlocks a per-place-encrypted Telegram session and is unrelated to the .omy file password. WebDAV places, unencrypted places, and places the local machine key can already unlock need none — when it's not needed the command neither prompts nor consumes stdin. remote copy splits it per side as --source-password-* / --dest-password-*; when both ends need a password you can't read both from stdin (a single stdin stream is read once). For remote decrypt, --password-* is the file password and --place-password-* is the place-session password — don't mix them.
  • Overwriting needs an explicit --force: upload / download / copy / decrypt refuse to overwrite an existing same-name target by default; add --force to confirm. For delete, --force skips the "permanent delete" confirm.
  • Remote paths can't escape: any .. segment in a remote path is rejected before a request is sent.
  • The QR code goes to stderr and never into --json: half-block Unicode in a real terminal, falling back to plain ASCII when piped/redirected (non-TTY), with a copyable tg:// link always printed — but that short-lived login ticket goes to stderr only, never into the structured stdout, so --json | tee … can't persist it into a log. In a non-interactive run a wrong two-step password fails after a single attempt.
  • Proxy and app identity are globally same-source: telegram proxy-set (manual --url vs follow-system --system, mutually exclusive) applies to every account; the --proxy on login / phone / tdata import is a one-off per-login override. proxy-status shows what is currently in effect; proxy-reset returns to following the system proxy. QR, phone, and tdata login — and every later reconnect / open-session — use the same api_id / api_hash and proxy. The one exception is tdata import, which forces the built-in api_id 2040 (that key comes from Telegram Desktop); the proxy stays same-source.
  • Exit codes: 2 for usage errors, 3 for a wrong password on an encrypted Telegram place (TG_PLACE_WRONG_PASSWORD), 1 for every other remote failure, 3 for a wrong virtual-favorites password, 8 on cancel, and telegram check also exits 1 when unreachable. Connection failures expose a structured TG_* code in --json error.code; the offline Telegram place operations still use [tg_*] message prefixes (always exit 1) — match those prefixes, not the code.

The real-account online leg is not end-to-end tested headless

The QR rendering, two-step password channels, session adoption, and de-duplication are pinned by unit tests, and mkdir / delete / move / decrypt, recursive upload, cross-location copy, and virtual favorites (including encryption and reference edits) are covered end-to-end against a local dav-server. But actually reaching Telegram's data centers and completing a real-account scan / code / tdata import / forward / server-side search cannot be exercised headless, and is not claimed as verified — that leg is wired correctly and reports failures honestly.

How passwords are stored ​

Remote locations are saved along with your configuration and come back after a restart. The password is never written to the configuration file in plain text: it is encrypted with a key, and that key is handed to the operating system to keep.

PlatformWhere the key lives
WindowsCredential Manager
macOSKeychain
LinuxSecret Service (gnome-keyring / KWallet, etc.)
AndroidThe app's private directory

This means copying the configuration file to another machine gets you nothing — the key is not there. Equally, if you move to a new computer or clear your keychain, the locations are still listed but you have to enter the password again.

What it does and does not protect against

It protects against: the configuration file being copied, the disk being pulled and mounted elsewhere, a leaked backup.

It does not protect against an attacker who can run programs as you on this machine — they can simply ask the system for the key. That is an inherent limit of OS credential stores, not something specific to omy. Defending against it needs a "verify your fingerprint every time" tier, which does not exist yet.

Linux needs a keyring service

On Linux something implementing Secret Service must be present (installing a desktop environment usually brings one). Without it omy does not fall back to storing the password in plain text — the location is still saved, the password is not, and you enter it each time you start. Settings shows which state you are in.

The kernel keyring (keyutils) would also work, but it is cleared on reboot, which would mean re-entering the password after every restart, so omy does not use it.

Windows: Credential Manager can be filled up by other programs

If Settings reports that passwords cannot be stored securely and you are on Windows, Credential Manager is most likely full. Some programs (VS Code's Microsoft account tokens, observed in practice) keep appending credentials and never clean them up; after a few hundred entries nothing new can be written.

First see who is using the space:

powershell
(cmdkey /list | Out-String) -split "`r?`n" |
  Where-Object { $_ -match 'Target:' } |
  ForEach-Object { ($_ -replace '.*Target:\s*','') -split '[|:/]' | Select-Object -First 1 } |
  Group-Object | Sort-Object Count -Descending | Select-Object -First 5

Once you have confirmed a group is safe to remove (deleting sign-in tokens just means signing in again; no data is lost), clear it by keyword:

powershell
(cmdkey /list | Out-String) -split "`r?`n" |
  Where-Object { $_ -match 'keyword' } |
  ForEach-Object { (($_ -replace '.*Target:\s*','').Trim()) -replace '^LegacyGeneric:target=','' } |
  ForEach-Object { cmdkey /delete:$_ }

The target name must have the LegacyGeneric:target= prefix stripped; deleting with the prefix reports "Element not found".

The name, address and username are stored in plain text; only the password is encrypted. This is deliberate: without the key those locations must still be listed so you can be told to log in again, rather than showing an empty list that looks like lost configuration. The cost is that anyone reading the file can tell which server you use.

Virtual remote locations (collections) ​

In the "Remotes" area you can create a virtual remote location: it connects to no server and only collects references to files you pick from real remotes (Telegram / WebDAV), letting you organize what you watch often across accounts and chats.

Concurrent edits through the same shared virtual-collection registry are saved in order, so an older snapshot cannot overwrite entries saved later. Separate registry instances or omy processes writing the same collection file are currently not coordinated.

  • Create: at the bottom of the sidebar's "Remote locations" section, or at the end of the list on the "Remote locations" page, click "New remote location" → "Virtual remote", then give it a name. Virtual remotes are listed on the "Remote locations" page alongside real locations.
  • Add content: right-click a file in a real remote (or select several) → "Add to virtual remote…". In the dialog, clicking a virtual remote's name adds to its root (files can live at the root — no folder needed first); click the arrow on the right to expand it and pick a specific subfolder.
  • Organize: inside a virtual place the toolbar has "New folder / Paste"; right-click a reference or folder to create, rename, delete, and cut / copy / paste (Ctrl+X / Ctrl+C / Ctrl+V and Delete work too). Cut/copy can only be pasted between virtual places — real remotes don't accept references; cut moves within one place, while copy and cross-place paste create new references. Deleting removes only the bookmark, never the real file. You cannot upload files into a virtual place — it only stores references.
  • Multi-select: on desktop hold Ctrl (⌘ on macOS) and click items, or just click while a selection is active; on touch, long-press an item to enter selection mode (the local file list supports long-press multi-select too). A bulk "Cut / Copy / Delete" bar appears at the top; Ctrl+X / Ctrl+C / Delete work as well.
  • Manage from the sidebar: right-click a virtual place in the sidebar to rename, delete, or encrypt / unlock / lock it. What gets encrypted is the collection itself (which files you point to); the name stays visible. It is sealed on disk with a standalone password + Argon2, and after locking no plaintext stays in memory — re-entering asks for the password. A virtual place password shares the same session key pool as ordinary .omy files: with the same password, unlocking one unlocks the other automatically, and it counts toward the "N passwords unlocked" indicator. omy remembers every encrypted vault it encounters while browsing or scanning (only the public salt and Argon2 parameters from the file header — never the password), so once a vault has appeared anywhere, unlocking anything with the same password unlocks it too, even if you are not currently viewing that folder.
  • Open: double-clicking a reference previews/plays the real file it points at in place (reading is delegated to the source, without leaving the virtual location); anything the real location already cached opens instantly (a reference shares the same cache as the real file, nothing is downloaded twice).
  • Locate the source: right-click a reference —
    • for a Telegram file there are two entries: "Go to source message" (jumps to that chat's message timeline and highlights the message) and "Go to source file" (switches to the tab that holds the file and scrolls its card into view with a highlight; the file's type/tab is remembered when the reference is added);
    • for a non-Telegram source such as WebDAV there is just "Go to real location", equivalent to opening that file in its source folder.
  • Source changes: a reference records the account's stable identity (not the local number that can change). So if you remove a remote from the list and add it back later, the reference re-attaches and works again; while the source is temporarily gone the reference does not disappear but is marked "source unavailable"; if the source is encrypted and still locked, it prompts you to unlock it first.

Current limitations (first iteration) ​

  • The GUI's generic entry for new folder / rename / delete is not available yet (encrypted upload is); the CLI's remote mkdir / move / delete are available. Decrypting an encrypted folder (container) from remote to local is not supported yet — remote decrypt handles single files only.
  • No private cloud drivers beyond WebDAV and Telegram yet.
  • No "unlock with fingerprint / face" tier for credential protection yet.

The design and progress notes live in docs/research/14-remote-locations-cloud.md in the repository; the Telegram part is in docs/research/15-telegram-remote.md.

omy-core / omy-net are MIT OR Apache-2.0, omy-media is LGPL-2.1+, omy-cli / omy-gui are GPL-3.0+.