config command
config inspects and updates ~/.config/zot/config.toml.
This is a runtime reference page, not the primary agent entrypoint.
Subcommands
bash
zot --json config show
zot --json config init --library-id 123456 --api-key abcd
zot --json config init --target-profile work --library-id 123456 --api-key abcd --make-default
zot --json config set library-id 123456
zot --json config set api-key abcd --target-profile work
zot --json config profiles list
zot --json config profiles use workshow
bash
zot --json config show
zot --json --profile work config showUse it to:
- inspect the effective config
- see the default profile
- see which profile the current session selected
- debug missing write credentials, embeddings, or data-dir state
init
bash
zot --json config init --library-id 123456 --api-key abcd
zot --json config init --target-profile work --library-id 123456 --api-key abcd --make-defaultNotes:
- without
--target-profile, it writes root config - with
--target-profile, it writes a named profile --make-defaultalso updates the default profile- if
data-diris not provided, the runtime tries to auto-detect the Zotero data directory
set
bash
zot --json config set library-id 123456
zot --json config set api-key abcd --target-profile work
zot --json config set embedding-url https://api.example.com/v1/embeddingsSupported keys:
data-dirlibrary-idapi-keysemantic-scholar-api-keyembedding-urlembedding-keyembedding-modeloutput-formatoutput-limitexport-style
Notes:
embedding-*is root-only and does not support--target-profileoutput-limitmust be a positive integer
profiles
bash
zot --json config profiles list
zot --json config profiles use workUse it to:
- inspect named profiles
- switch the default profile to a named profile
Recommended use
If you are just trying to do Zotero work through Claude Code or Codex, start from the skills pages.
Drop to config only when:
- you need to initialize write credentials
- the default profile is wrong
- doctor reports missing config
- you need to switch profiles before continuing