Built with Claude by Anthropic.
Export your Anytype notes to Obsidian-compatible markdown — with all images, links, and tags preserved.
Run from source — clone and use bun run:
git clone https://github.com/you/anytype-export
cd anytype-export
bun install
bun run login
bun run exportCompile to a standalone binary — no Bun needed to run:
bun run build
./anytype-export login
./anytype-exportCompile to a standalone Windows binary — no Bun needed to run:
bun run buildW
./anytype-export login
./anytype-exportThe compiled binary runs on any machine — no Bun, no Node, no dependencies.
anytype-export login # or: bun run login- Open Anytype on your computer
- Go to Settings → API
- Enter the 4-digit code shown there
Your credentials are saved securely to the OS keychain via Bun.secrets — macOS Keychain, GNOME Keyring on Linux, or Windows Credential Manager. No file is written to disk.
anytype-export # or: bun run exportYour notes appear in ./export/, ready to open in Obsidian.
anytype-export -o ~/notes/anytype # short flag
anytype-export --output ~/notes/anytype # long flag| Flag | Alias | Description |
|---|---|---|
--output DIR |
-o |
Where to save files (default: ./export) |
--force |
Re-export everything, ignoring the cache | |
--dry-run |
Preview what would be exported without writing files | |
--no-files |
Skip downloading images and attachments | |
--include-types Note,Task |
Only export these object types | |
--exclude-types Task |
Skip these object types | |
--group-by-type |
Organise into subdirectories by type | |
--create-index |
Generate an index.md overview file |
|
--help |
-h |
Show all flags |
--version |
-v |
Print version |
anytype-export switch # switch to a different space
anytype-export status # show current account & space
anytype-export logout # remove saved credentialsFlags accept both = and space separators:
anytype-export --output ~/notes # space-separated
anytype-export --output=~/notes # = sign
anytype-export -o ~/notes # short alias| Notes, Tasks, Bookmarks… | All object types, including custom ones |
| Properties | Saved as YAML frontmatter |
| Internal links | Converted to Obsidian [[wikilinks]] |
| Images & files | Downloaded alongside your notes |
| Fast reruns | Only changed notes are re-exported |
| Deletions | Stale files are removed automatically |
Obsidian tip: The
createdandmodifiedfrontmatter fields are recognised by the Dataview plugin. Without Dataview, they appear as raw frontmatter but aren't indexed.
Everything stays on your machine. anytype-export talks only to the Anytype app running locally — no cloud, no third-party servers.
MIT — see LICENSE
Built with Claude by Anthropic