Todoist Vault Sync

unlisted

by Michael Jauk

Syncs Todoist projects and tasks to markdown files in your vault.

★ 1 starsUpdated 8mo agoMIT
View on GitHub

Todoist Vault Sync

An Obsidian plugin that syncs your Todoist projects and tasks to real Markdown files in your vault. Unofficial, community-maintained.

"Buy Me A Coffee"

CI Version Obsidian 1.4.0+ License: MIT


Why

Query-based Todoist plugins show your tasks in Obsidian, but the tasks are not in your files. This plugin writes actual .md files instead, so your tasks:

  • work offline after a sync
  • appear in search results and backlinks
  • can be queried with Dataview
  • get indexed by Smart Connections together with your notes
  • sync with any vault sync method (iCloud, Obsidian Sync, Syncthing, Dropbox, git)

Typical use cases:

  • Link tasks from project notes and daily notes
  • Let an AI agent that reads your vault see your open tasks
  • Keep a Markdown archive of completed tasks

Features

  • One file per project. Each Todoist project becomes its own .md file.
  • Sections as headings. Sections become ## headings. Tasks without a section go under ## Inbox.
  • Nested subtasks. Subtasks appear as indented list items.
  • Metadata badges. Due date, priority, recurrence, and labels appear below each task.
  • Task descriptions appear as collapsible callouts.
  • Deep links. Task titles can link to the task in Todoist.
  • Two-way checkbox sync. Check a task in Obsidian, and the next sync closes it in Todoist.
  • Sync interval. Default 15 minutes, plus a manual "Sync now" command.
  • Status bar indicator. A coloured dot shows the sync state (green, pulsing, red). Click it to sync.
  • Ribbon icon for a manual sync.
  • Project filter. Sync all projects, or only the ones you list.
  • Filename prefix and suffix prevent collisions with other notes.
  • Completed tasks. Five modes: hide, show inline, archive section, archive file, or archive folder. Three fetch strategies: lookback, incremental, or full history.
  • Frontmatter. Project URL, colour, tags, favourite and shared status, and your own YAML fields.

Desktop only. Obsidian mobile is not supported.

Installation

The plugin is not in the Obsidian community plugin directory. Install it by hand:

  1. Download main.js, manifest.json, and styles.css from the latest release.
  2. Copy the three files into <vault>/.obsidian/plugins/todoist-vault-sync/.
  3. Enable the plugin in Settings → Community plugins.

Setup

  1. Get your API token in Todoist: Settings → Integrations → Developer → API token.
  2. Open the plugin settings, paste the token, and set the sync folder and interval.
  3. To sync at once, run Todoist Vault Sync: Sync now from the command palette.

Security: The plugin stores your API token unencrypted in the plugin data file (.obsidian/plugins/todoist-vault-sync/data.json). Protect your vault accordingly.

Settings

Connection

SettingDefaultDescription
API Token(none)Your Todoist API token

Sync

SettingDefaultDescription
Sync FoldertasksVault folder for task files (created automatically)
Filename Prefix(empty)Prepended to every synced filename, e.g. 📋 → 📋 Work.md
Filename Suffix(empty)Appended before .md, e.g. tasks → Work tasks.md
Sync Interval15 minBackground polling interval (minimum 1)
Project Filter(all)Comma-separated project names or IDs to include; empty = all. Project IDs are stable across renames.

Output

SettingDefaultDescription
Completed tasks modehideWhat to do with completed tasks (see below)
Completed fetch modelookbackWhich completed tasks to fetch: lookback (N days back), incremental (changes since the last sync, cached per project), all (full history up to 2 years, in chunks)
Lookback window30Days to look back when fetch mode is lookback (max 89, a Todoist API limit). Also used as the bootstrap window for incremental mode.
Archive file suffix ArchiveSuffix added to archive filenames when mode is archive-file (e.g. Work Archive.md)
Archive folder namearchiveSubfolder inside the sync folder used when mode is archive-folder
Show metadata badgesonShow due date, priority, recurrence, and labels below each task
Show task descriptionsonRender task descriptions as collapsible callouts
Task deep linksoffWrap task titles in links that open the task in Todoist
Bidirectional syncoffChecking a checkbox in Obsidian closes the task in Todoist on next sync

Completed tasks mode options:

ModeBehaviour
hideCompleted tasks are not shown
inlineCompleted tasks appear as - [x] in each section alongside active tasks
archive-sectionCompleted tasks are appended under a ## Completed heading at the bottom of the file
archive-fileCompleted tasks are written to a separate <Project> Archive.md file in the same folder
archive-folderCompleted tasks are written to a separate file inside a dedicated archive subfolder

Frontmatter

SettingDefaultDescription
Include project URLonAdd todoist_url to frontmatter
Include project coloronAdd todoist_color to frontmatter
Include tagsonAdd tags: [todoist] to frontmatter
Include is_favoriteoffAdd todoist_is_favorite to frontmatter
Include is_sharedoffAdd todoist_is_shared to frontmatter
Custom fields(empty)Raw YAML lines appended to frontmatter, one per line

File format

Each synced project file looks like this:

---
todoist_project_id: "123456"
todoist_url: "https://todoist.com/app/project/123456"
todoist_color: "blue"
tags:
  - todoist
---

# Project Name

## Section Name

- [ ] Task content <!-- id:abc123 due:2026-03-15 p1 -->
  `📅 Mar 15` `🔴 p1`

- [ ] Recurring task <!-- id:def456 recur:every day -->
  `📅 Mar 16` `🔁 every day`

## Inbox

- [ ] Unsectioned task <!-- id:ghi789 p2 -->
  `🟠 p2`
  - [ ] Subtask <!-- id:jkl012 -->

Priority mapping

The Todoist API uses an inverted priority scale (4 = highest). The plugin converts it to readable labels:

Todoist priorityLabelBadge
4p1 (urgent)🔴 p1
3p2🟠 p2
2p3🟡 p3
1p4 (default)(no badge)

Two-way sync

Turn on Bidirectional sync in the settings. On the next sync, every task that you checked in Obsidian closes in Todoist. Every task that you unchecked reopens, if the Completed tasks mode is not hide.

Note: Only the checkbox state goes back to Todoist. Content, due dates, and priorities do not. Todoist stays the source of truth for task content.

Note: A task reopens on uncheck only if the Completed tasks mode is not hide. With hide, completed tasks are not in the file.

Development

git clone https://github.com/michaeljauk/obsidian-todoist-vault
cd obsidian-todoist-vault
bun install

bun run build        # production build: main.js
bun run dev          # watch mode
bun run typecheck    # tsc --noEmit
bun run lint         # eslint
bun run format       # prettier
bun test             # unit tests (renderer.ts)

To test in a vault, copy or symlink main.js, manifest.json, and styles.css into:

<your-vault>/.obsidian/plugins/todoist-vault-sync/

Then reload the plugins in Obsidian (Settings → Community plugins → reload).

docs/contributing.md explains how to add settings or render features.

Contributing

Issues and pull requests are welcome on GitHub.

Disclaimer

Unofficial and not affiliated with Doist (Todoist) or Obsidian. "Todoist" and "Obsidian" are trademarks of their owners.

Support

Built by Michael Jauk. If this saves you time, consider buying me a coffee.

License

MIT © Michael Jauk

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.