Use the Zotero online library in Obsidian
Read your Zotero library in Obsidian on a phone, a tablet or a computer without Zotero, with a read-only API key from zotero.org.
Create a read-only key on zotero.org, keep it as a secret in Obsidian's keychain, and select it in Settings > ZotLit > Zotero. ZotLit then downloads your library and keeps it up to date.
Use the online library on a phone or a tablet, where it is the only source, or on a computer without Zotero. ZotLit only reads the library, so nothing on zotero.org changes.
Before you start
- Your Zotero library syncs to zotero.org with Zotero's own sync. ZotLit reads what zotero.org holds.
- On a phone or a tablet, you have Android System WebView 133 or iOS 18.6 or newer, and Obsidian 1.15.1 or later.
- On a phone or a tablet, the ZotLit Resource Pack plugin is installed in the vault. ZotLit needs it there to read the online library. See ZotLit Resource Pack for the install steps.
Set up the online library
Choose the online library on a computer
On a computer, open Settings > ZotLit > Zotero and set Library source to Zotero online library. Then select Reload Obsidian in the row Reload to apply.
Obsidian reloads with the online library. The choice applies to this device only, so your other computers keep their own source. On a phone or a tablet, skip this step: the online library is the only source there.
Create a Zotero API key
In the row Zotero API key, select the link Create a read-only key on zotero.org. Sign in to zotero.org and give the key a name. Give it read access to your personal library. Add access to its notes if you want your Zotero notes in Obsidian too. Add read access to each group library you want. Write access is not needed.
zotero.org shows the new key once. Copy it.
Keep the key as a secret and select it
The row Zotero API key is a secret field of Obsidian. Create a new secret there, paste the key as its value, and select it. ZotLit keeps only the name of the secret, on this device.
The row Online library changes from Select the secret with your Zotero API key to sync your library. to the progress of the download.
Wait for the first sync
The first sync starts when you select the key. The status shows Downloading items and collections: 400 of 2,000…, then Updating your library: 400 of 2,000…. A large library takes a while the first time.
When the status reads Up to date. Last sync: …., your library is ready. Below it, ZotLit shows Zotero accepted this key for the account ….
The copy of your library stays on this device, outside the vault, so vault sync does not carry it. Each device downloads its own copy, so select the key on each device.
What works with the online library
| Task | On a computer with the online library | On a phone or a tablet |
|---|---|---|
| Search your library and insert citations | Yes | Yes |
| Query files and query blocks | Yes | Yes. A paper with no literature note shows No note |
Query CLI commands, such as zotlit:query | Yes | No. It needs the desktop app. |
| Library View | Yes | No. ZotLit shows The Zotero library is available only in the Obsidian desktop app. |
| Create and update literature notes | Yes. Images of image annotations are not available. | No. ZotLit shows Creating a literature note is available only in the Obsidian desktop app. |
| Open PDF and other attachment files | No. ZotLit shows This needs Zotero on this computer as the library source. Select it in Settings → Zotero → Library source. | No |
| Edit annotations from Obsidian | No. Edits happen in the PDF, and PDF files do not come with the online library. | No |
| Actions and links that Zotero sends, such as ZotLit Companion menus and live updates | No. ZotLit shows This needs Zotero on this computer as the library source. Select it in Settings → Zotero → Library source. A link that shows an item in the Library View still works. | — |
Keep the library up to date
ZotLit syncs when Obsidian starts, then every 5 minutes while an Obsidian window has focus. A change you make in Zotero shows in Obsidian after Zotero syncs it to zotero.org and ZotLit syncs next.
To sync at once, select Sync now in the row Online library, or run ZotLit: Sync Zotero online library. A sync that runs longer than 2 seconds shows the notice Syncing Zotero online library… with its progress and a Stop sync button.
When a sync fails, your notes keep the data of the last good sync. The status then reads Your notes use the data of the last sync: ….
Change the Zotero language
In Settings > ZotLit > Zotero, set Zotero language to the language of your Zotero app. ZotLit then reads a date such as 01/02/2020 in the same day and month order as Zotero does. The default is Automatic (…).
When you change the Zotero language, ZotLit downloads the online library again.
Remove the online library data
In Settings > ZotLit > Zotero, select Remove online library data, then Remove in the dialog. ZotLit deletes the copy of your library from this device and stops using the key. The key stays in Obsidian's keychain; remove it there if you no longer need it. Your library on zotero.org does not change.
Vaults that you removed from Obsidian can leave their copy of the library on this device. To free that disk space, open the group Online library data in Settings > ZotLit > Advanced and look under Data of other vaults.
To go back to Zotero on a computer, set Library source to Zotero on this computer and reload Obsidian.
Fix a problem
The status reads Zotero did not accept this API key. Check the key, or create a new one. Copy the key again in full, or create a new key on zotero.org.
The status reads This API key cannot read your library. Create a key with read access. Create a new key with read access to your library.
The status reads This API key belongs to another Zotero account. Replace the data on this device to use the new account. In the row Use the new account, select Replace data. ZotLit removes the data of the old account and downloads the library of the new one.
The status reads ZotLit cannot connect to zotero.org. It tries again at the next sync. Check your internet connection, then select Sync now.
The status reads Zotero asked ZotLit to wait. The sync continues at …. Do nothing. ZotLit continues the sync by itself.
The status reads This device has no free space for the online library. Free some space, then sync again. Free some space, then select Sync now.
On a phone or a tablet, the status reads ZotLit Resource Pack is not installed. Install it from Community plugins. You do not need to turn it on. Install ZotLit Resource Pack from Obsidian's community plugins. See ZotLit Resource Pack.
ZotLit shows This needs Zotero on this computer as the library source. Select it in Settings → Zotero → Library source. PDF files do not come with the online library. Open the PDF on a computer where Library source is Zotero on this computer.
See also
Open a Zotero PDF in Obsidian
Read and annotate PDF files on a computer with Zotero.
Use ZotLit on multiple devices
Set the Zotero location on each computer that syncs your vault.
Which Zotero and Obsidian versions ZotLit works with
Check the versions of Obsidian, Zotero and your phone that ZotLit needs.
Last updated on