• Logseq plugin
  • v0.1.2

Aktar for Logseq

Paste or drop a screenshot or any file into a block, and it goes to your own S3, Cloudflare R2, Backblaze B2, DigitalOcean Spaces or MinIO bucket. Your graph stays small, and every link is a plain https:// URL that works without the plugin and outside Logseq.

Free and open source, in the Logseq marketplace. Logseq 0.10 or later on desktop: Windows, macOS and Linux.

A link, not an asset

Logseq's own paste copies the file into your graph's assets folder, and it travels with the graph wherever you sync it. With Aktar the file goes to your bucket and the block gets the link. A marker holds the place while it uploads.

Logseq's paste
![Shot.png](../assets/Shot_1764504000000_0.png)
Uploading
`Uploading Shot.png… [aktar:3f9c2a1b]`
With Aktar
![Shot](https://files.example.com/logseq/Work/2026/aB3xK9q.png)
  • Your graph stays small: the file lives in your bucket, not in the assets folder of every copy of your graph.
  • Images become ![name](https://…), other files [name](https://…). The links work in any Markdown app and in a browser.
  • Nothing is lost: when an upload fails, the file is kept on this computer and the marker says so. Aktar: Retry failed uploads sends it again, also after a restart.

Everything it does

The plugin follows the same rules as the Aktar apps, so a file uploaded from a block lands where one from your Mac, PC or phone would. It works with DB graphs (Logseq 2.0) and file graphs.

  • Paste a screenshot

    Paste a file or a screenshot into a block you're editing and it goes to your bucket. A file pasted right after a word gets a space before its link, so Logseq shows the image.
  • Drop files

    Drop one or more files on a block. Each one gets a marker that turns into its link when the upload is done: at the cursor in a block you're editing, at the end of any other block.
  • Upload from disk

    The /Upload a file with Aktar slash command, or Aktar: Upload a file in the command palette, puts the files you pick at the cursor.
  • Nothing is lost

    Offline, or the keys are wrong? The file is kept on this computer, the marker says the upload failed, and Aktar: Retry failed uploads puts the link in its place later.
  • Works with the Aktar app

    Connect to Aktar for Mac or Windows on the same computer and uploads go through the app, with its keys, history and hooks. Logseq never sees the keys, and the app's destinations show up in the plugin.
  • No location in your photos

    Where a photo was taken is removed before it leaves your computer. Text files are sent as UTF-8, so browsers show them right.
  • Your folder structure

    Uploads follow the destination's own path, or a template such as logseq/{graph}/{year}/{short}.{ext}. {graph} is the graph's name, and {page} turns a namespaced page into folders.
  • Same rules as the Aktar apps

    Path templates, {short} codes that never replace another file, and destinations moved over from any Aktar app with a transfer code.

Set it up

In Logseq, open Plugins › Marketplace, search for Aktar and install it. Then open Aktar from its toolbar icon or with Aktar: Destinations and settings in the command palette, pick where uploads go, and add a destination one of three ways.

  1. From any Aktar app

    1. In Aktar on your Mac, PC, iPhone or Android phone, open a destination and choose Share. Copy the transfer link.
    2. In the Aktar panel in Logseq, choose Add from transfer link. A link on the clipboard is filled in.
    3. Type the 12-character code Aktar shows. The keys come along encrypted, and the destination is ready.
  2. Enter it by hand

    1. In the Aktar panel, choose Add manually and pick the provider.
    2. Enter the endpoint (or the account ID for Cloudflare R2), bucket, region, public URL and keys. The setup guides show where to find them.
    3. Test and save uploads a small test file first, and saves the destination only when that works.
  3. Connect to the Aktar app

    1. Install Aktar for Mac 0.18 or Windows 0.11 or later, and add a destination there. This needs Logseq 2.0 or later.
    2. In Aktar, open Settings › Integrations and copy the token.
    3. In the Aktar panel, choose Aktar app, paste the token and choose Connect. The app's destinations show up, and uploads to them go through Aktar.

Commands

Type / in a block for the slash command, or open Logseq's command palette for the rest. The Aktar icon in the toolbar opens the panel too.

/Upload a file with Aktar
Pick files from disk, upload them and put the links at the cursor.
Aktar: Upload a file
The same, from the command palette.
Aktar: Destinations and settings
Opens the Aktar panel: where uploads go, adding and removing destinations, the Aktar app connection and failed uploads.
Aktar: Retry failed uploads
Sends the files whose upload failed again and puts their links where their markers are. If a marker is gone, the link is copied instead.

Settings

In Settings › Plugins › Aktar.

Upload pasted files
Default: OnFiles pasted into a block go to your bucket and become links. Off: Logseq keeps them in the graph as usual.
Upload dropped files
Default: OnFiles dropped on a block go to your bucket and become links.
Path template
Default: EmptyWhere uploads with keys on this computer go, for example logseq/{graph}/{year}/{short}.{ext}. Empty uses the destination's own path.
Remove location from photos
Default: OnTakes the GPS position out of photos before they leave this computer.

Template variables: {graph} {page} {year} {month} {day} {date} {time} {short} {filename} {ext} {uuid} {random} {sha256}

Where your keys are

Logseq has no secret store for plugins. Destinations and keys are kept in the plugin's own storage on this computer (~/.logseq/storages/aktar/), not in Logseq's settings and not in your graph, so they don't travel with it or with Logseq Sync.

They are plain files there, readable by programs running as your user. Connected to the Aktar app, Logseq has no keys at all: the app keeps them.

What it connects to

Only the storage endpoints and public URLs of the destinations you add, and the Aktar app on 127.0.0.1 if you connect it. There's no Aktar server in between, no account, no analytics and no telemetry.

Logseq's plugin API has no paste or drop hook, so the plugin listens for them in Logseq's own window, which is why it asks for that access. It only acts on pasted or dropped files in a block, when a destination is ready; everything else is left to Logseq. It reads the clipboard when you add a destination from a transfer link, to fill the link in.

Requirements

  • Logseq 0.10 or later on desktop (Windows, macOS or Linux), with DB graphs or file graphs
  • A bucket on Amazon S3, Cloudflare R2, Backblaze B2, DigitalOcean Spaces, MinIO or another S3-compatible service, with a public URL. On Logseq 2.0 and later it needs no CORS rule
  • Optional: Aktar for Mac 0.18 or Windows 0.11 or later, with Logseq 2.0 or later, to upload through the app

Can I keep Logseq's own paste?

Yes. Turn off Upload pasted files or Upload dropped files in the plugin's settings and Logseq keeps those files in the graph as usual. Until a destination is ready, pastes and drops are left to Logseq too.

Why does it need access to Logseq's window?

Logseq gives plugins no way to hear about a paste or a drop, so the plugin listens for them in Logseq's window. Without that access paste and drop stay Logseq's own, and /Upload a file with Aktar still works.

Does my bucket need a CORS rule?

Not on Logseq 2.0 or later: requests go through Logseq's own request proxy. On Logseq 0.10 the plugin sends them from its own window, so the bucket needs a CORS rule that allows it, and the Aktar app connection isn't available.

Does it work with DB graphs?

Yes, with DB graphs in Logseq 2.0 and with file graphs.

Do I need the Aktar app?

No. Add a destination with a transfer link or by hand and the plugin uploads on its own. With Aktar for Mac or Windows on the same computer, uploads can go through it instead.

What does it cost?

The plugin is free and open source. You pay your storage provider for what you store, and with Cloudflare R2 there's no charge for downloads.