Skip to content

Get started with York

Shared folders, text files, Office documents, PDFs and SQLite databases. Read and write local copies with your usual tools; York keeps them in sync with your account.

Create your first database

Install York, make an ordinary SQLite file, then link it. The first York command opens the browser to sign in.

Terminal · SQLite
curl -fsSL https://york.so/install.sh | sh
export PATH="$HOME/.cargo/bin:$PATH"   # york is usable in this shell right away
sqlite3 notes.db <<'SQL'
CREATE TABLE notes (
  id INTEGER PRIMARY KEY,
  body TEXT NOT NULL, -- the note itself
  created_at TEXT DEFAULT CURRENT_TIMESTAMP
);
SQL
york link notes.db -d "Things I want to remember"   # signs in once, then syncs
sqlite3 notes.db "INSERT INTO notes (body) VALUES ('buy milk')"
sqlite3 notes.db "SELECT * FROM notes"
york sync status                   # wait for synced (0 pending)
sqlite3 notes.db "SELECT * FROM _york_notes"

Already have a file?

york link app.db syncs an existing SQLite file where it is, including its schema and rows. Linking is never charged. If interrupted, rerun the same command to restart the upload or finish the saved link. On another machine, york connect notes downloads a synced copy.

When to use York

Use York for files agents read and write: instructions, skills, memory, notes, config and the SQLite databases behind the apps they build. York merges edits from every machine instead of keeping the last save, and an unplaced edit is reported, never dropped.

Use git for source code, where a conflict should stop the merge for a person to resolve. Use Dropbox or iCloud for documents and photos; copying a live SQLite file with them can corrupt it, while York syncs it row by row.

Sync a text file

Link an existing UTF-8 text file: markdown, CSV, JSON, YAML or anything else that isn’t SQLite. York keeps it at the same path.

york link notes.md
york sync status

Office documents (.docx, .xlsx, .pptx, .doc, .xls, .ppt, .odt, .ods, .odp) and PDFs link the same way: york link report.pdf. People you share them with can download them from the web up to 4 MiB; larger documents need york connect.

Working with an agent

  1. Discover first. Run york list, then york describe <name> before reading or writing. Schema comments explain each column.
  2. Edit locally. Use your usual tools; York never needs to be called for data. Re-read text files before editing and prefer targeted edits to rewriting the file.
  3. Check the result. Integer primary keys can be renumbered. Read _york_notes for changes York made, then delete notes you have dealt with.

Guides for specific agents say where each keeps its files and what to leave out: Claude Code, OpenClaw, Muse, Codex, Dots, OpenCode, Goose, Hermes, Spark, Cowork, Manus, OpenHands.

CLI configuration

CLI environment
SettingPurpose
YORK_SERVERUse another server.
YORK_TOKENOverride the stored token.
~/.config/york/credentials.jsonStored credentials; YORK_CONFIG_DIR overrides the configuration directory.