Upgit
approvedby ewigmidori
Upload images from the file explorer or editor context menu using the Upgit CLI. - This plugin has not been manually reviewed by Obsidian staff.
Upgit
Upload images from Obsidian with the Upgit CLI. Right-click an image in the file explorer or on an image embed in the editor, then choose Upload with Upgit.
This plugin is desktop-only. It runs your local upgit binary and does not bundle credentials. Hosting, rename rules, and tokens stay in Upgit's own config.toml.
Requirements
- Install Upgit and confirm
upgit path/to/image.pngprints a URL in a terminal. - Keep
config.tomlnext to the binary (or pass--application-pathvia extra arguments if you store it elsewhere).
Install
Community plugins (after listing)
- Open Settings → Community plugins.
- Select Browse, search for Upgit, then install and enable it.
Manual
- Download
main.jsandmanifest.jsonfrom Releases. - Place them in
<vault>/.obsidian/plugins/upgit/. - Enable Upgit under Settings → Community plugins.
Setup
- Open Settings → Upgit.
- Set Upgit executable to the absolute path of the binary, for example
E:\Software\upgit_win_amd64\upgit.exe. - Leave it empty to use
upgitfromPATH. On Windows the plugin also looks forE:\Software\upgit_win_amd64\upgit.exewhen that file exists.
Optional:
- Extra arguments — extra CLI flags, split on whitespace (
--uploader github). - Replace links in the active note — swap
![[image.png]]orfor. - Copy URL to clipboard — on by default.
- Delete local file after upload — passes
--clean. Off by default.
Usage
- File explorer: right-click one or more image files → Upload with Upgit.
- Editor: right-click an image wikilink, Markdown image, or
<img src>→ Upload with Upgit. - Command palette: Upgit: Upload image from the editor.
The plugin calls Upgit with --output stdout --format url. When the executable path is absolute, it also passes --application-path so Upgit can find config.toml beside the binary.
Privacy
Images you upload go wherever your Upgit uploader is configured to send them (GitHub, S3, SM.MS, and others). Public GitHub repositories make raw URLs world-readable. This plugin does not add telemetry.
Development
npm install
npm test
npm run lint
npm run build
Copy main.js and manifest.json into <vault>/.obsidian/plugins/upgit/ to try a local build.
License
MIT. See LICENSE.
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.