# Files CLI configuration (/en/docs/files/configuration)

Settings live in one file, `config.json`, in the folder `files doctor` shows. Each profile has its own part,
and `defaults` apply to every profile. This page lists how to see and change them.

```sh
files config show
files config set --defaults limit 50
files config unset --defaults limit
```

`config show` lists each setting and where it came from: the file, a variable or the default.

## Permissions [#permissions]

`permissions` decides what a command may do for this profile: `allow`, `ask`, `readonly` or `deny`, per permission
key. Over MCP there is no one to ask, so `ask` lets the command run. `FILES_READ_ONLY=1` refuses every write, whatever
the permissions say.

## Run records [#run-records]

A command that fails is kept as a run, for `files runs list` and `runs show`. A command you add that does its work
in `context.run` is kept when it succeeds too, unless `record` is `false` (then only failures) or it ran with
`--no-record`. `record_input` decides whether a run
keeps the words you typed; it is `true` unless you set it to `false`. Secrets are masked either way; see
[Security](/llms.mdx/docs/files/security/content.md).

## Notes folders [#notes-folders]

`defaults.notes` holds the folders `files folders add` gives an id, and how they are read:

```json
{
  "defaults": {
    "notes": {
      "folders": [{ "id": "f-1", "path": "/home/me/notes", "format": "obsidian" }],
      "ignore": ["Archive", "**/Private*"],
      "embed": true,
      "export": { "dir": "/home/me/notes/from-wirecat", "format": "markdown" }
    }
  }
}
```

`ignore` leaves files and folders out of every sync. `embed: false` keeps the notes out of search by meaning.
`export` is where `files notes export` writes the notes you wrote with `notes add`.

`read_scans` chooses who reads the text of scans and pictures in the notes folders: `local` (the default, the
`tesseract` program on this computer), `anthropic`, `openai` or `off`. See
[Scans and pictures](/llms.mdx/docs/files/notes/content.md#scans-and-pictures).

`defaults.sources` holds the reader `files sources suggest` sends a source's text to, its `model`, and for Ollama
the `base_url` on this computer. Only you choose them, with `files sources readers set`.

## Moving from memo [#moving-from-memo]

On its first start `files` copies the `notes` and `sources` settings from memo's config, the state of each notes
folder and the old `people-notes.json`. It looks in `wcat`'s folders first, then in `cli-memo`'s. It also copies the
OpenAI or Anthropic key memo's sync enriched your notes with, from memo's keyring entry into the one `files` reads.
A setting or key `files` already has is kept. memo's files, its keyring entries and your notes are not changed. A
marker in the state folder records the move, so it runs once. Only an installed `files` (npm, pnpm or bun) moves
anything: a build run from a source checkout never does. When the keyring does not answer, a later start copies
the keys.
