Local files
Local files lets Niko work with files on your computer. For example, ask it to organize Downloads, rename invoices, or save a report in Documents. It works in the desktop app on macOS and Windows, and in the Linux Flatpak preview. A source install or a self-hosted server does not offer it.
Start with a request
Section titled “Start with a request”Open chat in the desktop app and tell Niko what to do. Local file access starts off. You do not need to open Settings first.
- "List the files in my Downloads folder."
- "Read invoice.pdf in Downloads and summarize it."
- "Save this report as report.md in Documents."
- "Show me the screenshot on my Desktop." Niko copies it into its workspace and attaches it to the reply, so you can open its preview.
When access is off, Niko asks to turn it on in chat before it opens your files. Reply "yes" or select the approval button. Niko saves the setting, then continues your request. If you decline, access stays off.
Work Niko starts on its own cannot request local file access. A schedule you create can ask you to enable access in chat.
This setting covers allowed locations in your home folder and on external drives. It does not give access to one folder only. The file checks below still apply to each action.
You can tell Niko to turn local file access on or off. You can also change Local file access in Settings → Privacy & data.
If Niko asks for confirmation of a file action, review the file path and proposed action before you approve it.
Where Niko can work
Section titled “Where Niko can work”Niko can work anywhere in your home folder and on external drives (under /Volumes on macOS, a drive other than the system drive on Windows, or /media/<user> or /run/media/<user> on Linux). It refuses, for every action:
- anything outside your home folder and those drives, and Niko's own data;
- hidden files and folders, such as
.ssh,.configor.env; Libraryon macOS andAppDataon Windows, including on external drives, and Time Machine backups;- files that usually hold secrets: keys and certificates (
.pem,.p12,.pfx,.ppk,id_rsaand similar), password databases and exports (.kdbx,.1pux, Bitwarden exports),.envfiles,.ovpn,.gpg,.asc,.tfstate,wallet.dat, files whose name hascredentialsand ends in.csv, andservice-accountfiles ending in.json; - any folder you keep Niko out of.
Niko also never changes your home folder or a drive itself as a whole, for example by moving or trashing it.
On macOS, the first time Niko opens a protected folder, such as Downloads, Documents or Desktop, macOS asks whether Niko may access it. That first visit happens in work you started. If you declined, allow Niko in System Settings, Privacy & Security, Files and Folders.
Keep Niko out of a folder
Section titled “Keep Niko out of a folder”Tell Niko, for example "never touch my Taxes folder", in a chat or a task you started. Niko adds it to a list of up to 100 folders it always refuses, without any judgment call: it doesn't list, open or change anything there, and doesn't move or trash a folder that contains it. Only you can take a folder off the list again, in Settings, Privacy & data, Kept out of local files. Niko can't remove one.
Only work you started
Section titled “Only work you started”Niko works with your files only in work you started: a message you sent, a task that started from one, or a schedule you set up. Work Niko starts on its own, such as on new email or other activity in a connected app, can't list, open or change files at all. So a message from a stranger can't make Niko read or file your documents.
What Niko can do
Section titled “What Niko can do”| Action | What it does |
|---|---|
| List | Lists a folder, newest first, up to 500 entries. |
| Read | Reads up to 256 KB of a text file. |
| Copy to Niko | Copies a file of up to 90 MB, such as a PDF or a photo, into Niko's workspace so Niko can work on it. |
| Create folder | Creates one folder. |
| Write | Creates a text file of up to 1 MB, or replaces one. |
| Edit | Replaces exact text in a text file of up to 1 MB. |
| Copy from Niko | Saves a file Niko made in its workspace, such as a report or a converted image, onto your computer. |
| Move | Moves or renames up to 200 items at once, and never overwrites. |
| Trash | Moves up to 200 items to the Trash or Recycle Bin, where you can restore them. |
Each action goes through the same trust check as an app action, with the real paths after links are followed. A path that is ~, or starts with ~/ (~\ on Windows), such as ~/Documents, means your home folder. Listing a folder is a read and runs without asking. Opening a file, by reading it or copying it to Niko, needs your words: Niko opens a file you named or one in a folder you asked it to work on, and asks first before it opens one that only a file or message mentions. Niko asks before it writes, moves or trashes files your words don't cover.
Niko never deletes a file outright. When it replaces or edits a file, the previous version goes to the Trash from its own place, so Put Back returns it there; if the Trash step fails, nothing changes. Niko marks files it writes, edits or copies from its workspace as downloaded when the system allows it, so macOS and Windows check them before they open.
When Niko reads, copies or edits a file, it opens the file without following links where the system supports it, and the opened file must be the same one the check saw, or the action stops. Before a write, edit or move, Niko checks the target's folder again right before the change.
Niko checks the file's identity, size and change times before and after an approved read or copy to Niko. If these checks detect a change, the action stops with an error. These checks depend on the file system: an outside edit with the same size and reported times can go undetected. A new read or copy checks the file again and asks for approval when your words do not cover it. A read or copy approved in an older Niko version may also stop and need a fresh check. Niko does not repeat a read or copy you refused, or one whose outcome is uncertain, in the same request.
An input/output failure after reading starts can leave the result uncertain, even when no content reaches chat. Niko keeps the specific error and blocks another attempt in that request. Start a new request to try again.
Limits
Section titled “Limits”- On Windows,
desktop.ini,Thumbs.dband the Recycle Bin count as hidden; Niko doesn't read Windows' hidden attribute. To change an item, Niko needs its full name, not a short name such asDOCUME~1. - The list of secret files is by name. A secret in an ordinary file, such as a password in
notes.txt, isn't recognized; keep such folders out of Niko. - Niko doesn't create programs or shortcuts, such as
.exe,.bat,.lnkor.urlfiles on Windows;.command,.app,.pkg,.dmgor.shfiles on macOS; or.sh,.bash,.desktop,.run,.appimage,.jar,.flatpak,.flatpakrefor.flatpakrepofiles on Linux, and doesn't rename files into them. It can move an installer that already is one, as long as it keeps its extension. It doesn't change executable files either: on macOS and Linux, files marked executable; on Windows, programs and scripts such as.exe,.bat,.ps1or.lnk. Drives formatted as FAT or exFAT, such as many USB sticks, can mark every file as executable on macOS and Linux. Niko can list, read, move and trash files there but cannot write or edit them. - Links are followed, but the resolved path must still be allowed, so a link can't reach a refused place. A link with a relative target can be renamed but not moved to another folder, because it would point somewhere else there.
- Commands Niko runs in its workspace can't see your files. Files reach the workspace only when Niko copies them there, and only through this check.
- When you share conversation traces, the text of files Niko reads is part of them, like any other tool result.