Depot
unlistedby mathcrln
Store attachments in private S3-compatible buckets and link them with references that never expire.
Depot
Private attachments for Obsidian.
Keep images and files in your own S3-compatible bucket, and link them from your notes
without public URLs or expiring tokens.
Depot is under development and not yet released.
Features
- π Store images and files in your own private S3 or Cloudflare R2 bucket, not in your vault
- π Notes keep a clean link such as
mybucket://photo.jpg: no public URLs, no expiring tokens - π Paste, drag and drop, or pick a file, and it is uploaded and linked
- πΌοΈ Images show in Reading view, Live Preview, and Bases card covers (covers are best effort, since Obsidian doesn't offer an API for them yet)
- π PDF, audio, and video embeds
- β‘ Cached on your device, so attachments load instantly and work offline
- ποΈ Several storage profiles (personal, work, publicβ¦), each with its own bucket
- π€οΈ Choose where files go in the bucket: by date, by type, or by note
- 𧬠Content-hash file names, so the same file always gets the same name
- β»οΈ Optional duplicate detection that works across devices
- βοΈ Rename a profile and update every link in your vault at once
- π Convert referenced attachments between public URLs, vault files, and Depot profiles
- πΌοΈ A library of everything in your bucket: search it, and see what is used, unused, or broken
- π Credentials stay in Obsidian's secret storage, never in your notes or settings
- π± Works on desktop and mobile
How it works
Instead of writing a public URL into your note:

Depot writes a reference to the object:

mybucket is the name of a storage profile you configure. When Obsidian displays the note, Depot signs a request with your credentials, downloads the file, caches it on your device, and shows it. The bucket stays private, and the note never contains a URL that anyone else could open.
Because the note only stores the profile name and the object's path, you can later change the bucket, endpoint, or credentials without editing a single note.
Install
Depot is not in the community plugin directory yet. To install it manually:
- Download
main.js,manifest.json, andstyles.cssfrom the latest release. - Copy them to
<Vault>/.obsidian/plugins/depot/. - Reload Obsidian and enable Depot in Settings β Community plugins.
Depot requires Obsidian 1.13 or later.
Set up
- Open Settings β Depot and add a profile. Its name is what your links start with, for example
mybucket. - On the profile's page, fill in the connection:
- Endpoint: for Cloudflare R2,
https://<account-id>.r2.cloudflarestorage.com, without the bucket name. Leave it empty for AWS S3. - Bucket: the bucket's name.
- Region:
autofor R2, or your AWS region. - Path-style addressing: only needed for MinIO and some self-hosted services.
- Endpoint: for Cloudflare R2,
- Enter the Access key ID and Secret access key. Depot saves them in Obsidian's secret storage.
- Choose the Default profile: pasted, dropped, and uploaded files go there.
The keys need permission to read and write objects. For the library they also need to list the bucket. R2 tokens with object access include listing; on AWS, grant s3:ListBucket.
Uploading
Paste or drop a file into a note, or run Depot: Upload attachment. Depot uploads it and inserts a link. If the upload fails, nothing is inserted.
Image optimization
Each profile has Image optimization controls in Settings β Depot β Profiles:
- Optimize images: resize and compress JPEG, PNG and WebP before uploading.
- Output format: keep the original format, or choose WebP, JPEG or PNG.
- Quality (%): from 1 to 100 for JPEG and WebP. Lower quality reduces detail; PNG ignores this control.
- Maximum dimension (px): limit the longest side without enlarging smaller images.
New profiles use WebP at 80% quality with a 2560 px limit. Existing profiles keep optimization off until you enable it. Processing happens on your device. WebP falls back to JPEG when unavailable, or PNG when transparency is detected. GIFs, SVGs and other unsupported formats are uploaded unchanged.
If optimization fails or does not produce a smaller file, Depot uploads the original. JPEG and WebP optimization can be lossy, resizing changes the image, and re-encoding removes the original photo metadata. Original files uploaded unchanged retain their metadata. Duplicate detection always compares the original files.
Upload paths
Each profile decides where files go in the bucket, with a pattern such as {yyyy}/{mm}/{id}.{ext} β 2026/10/53670a34β¦.webp.
| Placeholder | Value |
|---|---|
{yyyy} {mm} {dd} | Upload date |
{name} {ext} | Original file name and extension |
{type} | image, pdf, audio, video, other |
{note} | Note you uploaded into |
{id} | Unique ID (required) |
{id} is a content hash by default, so the same file always gets the same name. UUID v7, UUID v4, short random, and ULID are also available.
Turn on Detect duplicates to reuse files you already uploaded, even from another device. It adds a small record to the bucket for each upload, so it is off by default.
Library
Run Depot: Open library to browse everything in a profile, grouped by month. Search, preview images full size, and see which ones are used, unused in this vault, or broken. Select Copy embed or Copy reference to use an attachment in a note. The library never deletes or changes files.
Attachment-opening actions are not available. Attachment links in rendered notes show their labels without fetching or opening the file.
Renaming a profile
Rename profile can update every link in your vault, or keep the old name working as an alias.
Moving existing attachments
Open a profile in Settings β Depot β Profiles to use Use Depot for existing attachments or Convert Depot references. Choose a source or destination, review the affected documents, attachment and reference counts, representative changes, and issues, then confirm. For storage transfers, Depot verifies or transfers each attachment before changing its references. Failed items keep their original references, and notes changed since the preview are skipped. You can stop after the current operation and resume later.
The tools recognize inline Markdown links and embeds, Obsidian wikilinks and embeds, simple scalar values in note properties, and canvas file, link, and text nodes. HTML media tags, reference-style Markdown links, and YAML collections are not supported. Markdown destinations containing parentheses must be percent-encoded, escaped, or angle-wrapped. References with literal URL queries or fragments and unsafe vault paths are left unchanged and reported as issues; percent-encoded ? and # in object keys remain valid. The tools do not process unreferenced files or copy whole buckets. Vault uploads use the original bytes without image optimization and retain the source file. Exporting to the vault preserves the object's key hierarchy and leaves existing files untouched. Depot never deletes source files or objects.
When converting Depot references to a public URL prefix, Depot constructs URLs from the prefix and object key without contacting storage or checking whether the resulting URLs are accessible. You are responsible for making the resulting URLs publicly accessible. Depot does not download from public URLs. If you stop a migration, its progress is saved in Depot's plugin data in your vault so it can resume. This record contains no credentials or attachment bytes.
Privacy and network use
- Depot only connects to the storage endpoints you configure, and only to upload, download, or list your own files. There is no telemetry.
- Credentials are kept in Obsidian's secret storage. Notes and plugin settings only contain profile names and object paths.
- Downloaded files are cached on each device, outside the vault, so they are not synced. Select Clear cache in the settings to remove them.
- Migration uploads send only the referenced files you select to the configured storage endpoint. Depot does not fetch public URLs or send vault contents to any other service.
Development
pnpm install
pnpm dev
pnpm dev compiles src/main.ts to main.js in watch mode. Clone the repository into <Vault>/.obsidian/plugins/depot, reload Obsidian, and enable Depot in Settings β Community plugins.
Before opening a pull request:
pnpm lint && pnpm format:check && pnpm typecheck && pnpm test:run && pnpm build
See CONTRIBUTING.md.
For plugin developers
Search results and similarity scores are powered by semantic analysis of your plugin's README. If your plugin isn't appearing for searches you'd expect, try updating your README to clearly describe your plugin's purpose, features, and use cases.