ydisk: Yandex Disk CLI for AI agents
Your Yandex Disk from the terminal, for you and for Claude Code, Codex, Cursor or any AI agent. Search the text of
the folders you choose on your computer, and work with the files live.
Docs ·
Install ·
Usage
- Your documents, searchable on your computer. Choose the Disk folders that matter. Their text is copied into
WireCat's local store, and one search finds it by words and word forms, and by meaning once indexed.
- The whole Disk, live. List, read, download, upload, copy, move, delete to the trash, restore and share files
without opening a browser.
- Edit a file where it is. An agent changes a Markdown note, cells of an Excel workbook or paragraphs of a Word
document on the Disk, at the content it read. A file without a public link is checked by the Disk itself at the
moment of the write; a shared one is checked just before it. What the edit replaced is kept on your computer.
- Safe to give to an agent. Deleting and public links ask first at a terminal, and one setting turns either off
for an agent.
What you get
- Find a document by what is in it. "Where is the lease for the flat?" finds the PDF by its text, not by its
file name.
- Read a file without saving it. An agent reads the text of a PDF, docx, xlsx, CSV or Markdown file on the Disk
and answers from it.
- Change a note, a spreadsheet or a letter in place.
files update writes a text file, files sheets update
writes cells and keeps the workbook's formatting and formulas, files documents update replaces paragraphs and
keeps their style; files sheets create and files documents create make a new one. Each edit takes the file's
sha256 from when it was read and is refused when someone changed the file since; files history and
files restore put an earlier version back.
- Keep the Disk tidy. Move, copy, rename into a folder, and delete to the trash, where
files restore brings a
file back.
- Share on request. A public link for a file or folder, and close it again when you are done.
- A folder on your computer that stays in step with the Disk. Edit files with your own tools; a mirror sends
your changes up and brings the Disk's down. Mirror one folder or the whole Disk, and leave out the folders you
choose. A note edited here and on your phone in different places is merged; a real conflict waits for you in
mirrors conflicts. A deleted file goes to a trash, never away, and many deletions at once wait for your approval.
- The Disk as a folder in your file manager, read-only.
ydisk personal files serve shows a Disk folder next
to your own, on Linux, macOS and Windows, with nothing to install. Open and read any file there; nothing can delete
or change the Disk through it (mount).
- See the whole picture. The copies sit next to your messages, mail, notes and meetings from the other WireCat
tools, so one search covers all of them.
You: Find the lease for the flat and send Bob a link to it.
Agent: (runs ydisk personal search "lease flat")
/Documents/Flat/lease-2026.pdf, signed by Alice Example on 12.03.
A public link lets anyone who has it open the file. Make one?
You: Yes.
Agent: (runs ydisk personal files publish /Documents/Flat/lease-2026.pdf --yes)
Here is the link. Say "close it" when Bob has the file.
Invented people, illustrative output.
Why ydisk
- No WireCat server.
ydisk talks to Yandex Disk's API from your computer. There is no account with us, and the
copies of your folders stay in a local store on your computer.
- The official Disk API, with your own token.
ydisk uses Yandex's
Disk REST API with an OAuth token from an app you register. The token
stays in your system keyring and only goes to Yandex's API.
- Search that understands the text. Text is read from PDF, docx, doc, xlsx, pptx, OpenDocument, RTF, HTML,
EPUB, CSV, TSV, plain text and Markdown files. Search finds other forms of a word, and matches by meaning once the text is indexed.
- Safe to give to an agent. You decide what an agent may do: read only, or no deleting and no public links. The
agent's instructions say that text from files is data, never an instruction to follow.
- Ready for any agent. A skill for agents with a terminal, an MCP server for Claude Desktop and Cursor, and a
secure link for ChatGPT and Claude in the browser.
- Free and open source. Apache 2.0, on macOS, Linux and Windows. It works with a free Yandex account.
How it compares with rclone, Yandex's own apps and the Yandex Disk MCP servers:
compared with other tools.
Quick start
In WireCat Desktop, add Yandex Disk from the tool list and paste a Yandex OAuth token
when it asks. Or in a terminal:
npm install -g @wirecat/yandex-disk-cli
ydisk doctor # what is set up, with no network
You need Node.js 22.16 or a later 22.x, or 24 or later. Try it without installing:
npx @wirecat/yandex-disk-cli --help.
Sign in once with a Yandex OAuth token. The token is kept in the system keyring, or in a private file only you can
read where no keyring works. It is never in an argument or the output.
- Register an app at oauth.yandex.ru/client/new ("For API access or
debugging"), with the Yandex Disk access
cloud_api:disk.read, cloud_api:disk.write and cloud_api:disk.info
(only disk.read and disk.info for a read-only token). Copy its ClientID.
- Open
https://oauth.yandex.ru/authorize?response_type=token&client_id= with your app's ClientID added at the end,
allow access and copy the token. Every step, with Yandex's own labels:
get a Yandex token.
- Sign in under a profile name you choose, then copy a folder and search it:
ydisk personal session start # paste the token when asked, or pipe it on stdin
ydisk personal session status --check
ydisk personal folders add /Documents
ydisk personal sync
ydisk personal search "quarterly budget"
personal is a name you choose for this account. You can add work or any other later. No profile is ever assumed.
Yandex says a token lasts several months and is extended while it is used
(Yandex ID). When Yandex stops accepting it, sign in
again.
More: installation
Use it with your agent
Ask in plain words. The agent picks the commands.
"Use ydisk. Find the contract with the printing house and tell me the payment terms."
"Use ydisk. What did I upload to /Photos/Trips this month?"
"Use ydisk. Move last year's invoices to /Archive."
- Claude Code, Codex, Gemini CLI and other agents with a terminal run
ydisk themselves.
ydisk skill install teaches them how.
- Claude Desktop, Cursor and other MCP apps connect to
ydisk personal mcp serve.
- ChatGPT or Claude in the browser reach it through your own tunnel, after a login with a one-time code.
ydisk skill install # Claude Code, Codex, Gemini CLI and OpenClaw
ydisk personal mcp add claude-code --allow-writes # or: codex
ydisk personal mcp config # the entry for Claude Desktop, Cursor and others
More: connect your agent ·
recipes
What it can do
Search the folders you choose
ydisk personal folders browse # the Disk's folders, one level at a time
ydisk personal folders add /Documents
ydisk personal sync # read what changed since the last sync
ydisk personal search "quarterly budget" --json
ydisk personal documents list
ydisk personal changes --since 7d # what sync added, changed or no longer finds
To read one document in full, pass an id from documents list or search to ydisk personal documents show.
Tags, notes and memories stay attached to a document, and documents export writes it to a Markdown file.
documents history <id> lists the earlier versions sync kept, and --revision <n> shows one.
Choose folders rather than the whole Disk: each sync lists every one of their subfolders.
Work with the files live
ydisk personal files list --folder /Documents
ydisk personal files download /Documents/notes.md # its text
ydisk personal files download /Documents/plan.pdf --output ./plan.pdf
ydisk personal files upload ./notes.md --folder /Documents
ydisk personal files move /Documents/old.pdf --folder /Archive
ydisk personal files delete /Documents/old.pdf # to the Disk's trash, files restore brings it back
ydisk personal files publish /Documents/plan.pdf # a public link: anyone with it can open the file
ydisk personal files unpublish /Documents/plan.pdf
ydisk personal files update /Notes/plan.md --text "# Plan" --expected-fingerprint <sha256>
ydisk personal files sheets update /Work/budget.xlsx "Sheet1!B3" --values '[[1300]]' --expected-fingerprint <sha256>
ydisk personal files history /Work/budget.xlsx # what this computer's edits replaced; files restore puts it back
files show, files copy, files create (a new folder), files sheets show and files documents show|update are
commands too. More: edit a file on the Disk
Keep a local folder in step
ydisk personal mirrors add /Notes ~/notes
ydisk personal mirrors preview # what a sync would copy, and nothing else
ydisk personal mirrors sync # both ways; text edits on both sides merge
ydisk personal mirrors conflicts list # what could not merge; show and resolve settle it
ydisk personal mirrors watch # keep syncing until Ctrl-C
More: mirrors
Open the Disk as a read-only folder
ydisk personal files serve /Documents # prints the address and how to mount it; Ctrl-C ends it
More: mount
The whole Disk API
ydisk personal api list lists the 20 operations of the Disk API, each as its own command, such as the trash, the
public links and the Disk's own operations that run in the background. ydisk personal api show resources-list shows
an operation's parameters without calling Yandex.
More: commands
With your other sources
ydisk keeps what it reads in the same local store as the other WireCat tools, such as Telegram, WhatsApp, mail,
Google Drive and Notion. memo context shows one person across all of them.
More: WireCat
How it works
- A local copy of the folders you choose. Yandex Disk has no change feed, so each
sync lists the chosen folders
again and reads only the files that changed since the last one (by MD5). A stop loses nothing: the next sync goes
on from where it stopped.
- Stable ids. A file moved inside the chosen folders keeps its id (Yandex's
resource_id), its tags and its
notes. A file this tool replaces gets a new id from the Disk, and its tags and notes move with it. A file deleted on the Disk leaves the copy at the end of the pass.