Sync knowledge between local machine and cloud
Synchronize knowledge entries between local SQLite and Prefrontal cloud.
# Two-way sync (push local, pull remote)
know sync
# Push local to cloud only
know sync --push
# Pull cloud to local only
know sync --pull
Set your API token in ~/.zshrc:
export PREFRONTAL_API_TOKEN='your-token'
# Local entry count
know stats
# Compare with cloud (if available)
know sync --dry-run
| Direction | What Happens |
|---|---|
--push | Uploads local entries to cloud |
--pull | Downloads cloud entries to local |
| (default) | Push then pull (two-way merge) |
The whisper loop automatically syncs on:
To verify auto-sync is configured:
jq '.hooks.SessionEnd' ~/.claude/settings.json
Sync fails with auth error?
# Check token is set
echo $PREFRONTAL_API_TOKEN
# Test API connectivity
curl -H "Authorization: Bearer $PREFRONTAL_API_TOKEN" \
https://your-api/api/knowledge/entries
Entries not syncing?
# Check hook logs
tail -20 ~/.claude/hooks/session-checkpoint.log