# The config editor

> Open, save, delete, publish and pull the files of your synced config store, from the account pages on clai.chat and from the terminal.

Canonical URL: https://www.clai.chat/docs/guides/config-editor/ · Version: 1.0 · Updated: 2026-11-10

Full site index: https://www.clai.chat/llms.txt

Your config lives in two places: as files in the config directory on each
machine, and as one private store in your account on
[clai.chat](https://www.clai.chat), which every machine pulls. This page
covers the second one: the store, the editor the account's config pages put
over it, and the commands that carry it to a machine.

## The config store

The store is one private repository on clai.chat. It holds one file per
config kind, at the same relative paths the config directory uses:

- `profiles/<name>.json`, one per named profile.
- `mcpServers/<name>.json`, one per MCP server.
- `shellContexts/<name>.json`, one per shell context.
- `skills/<name>/`, a folder per Agent Skill, holding its `SKILL.md`.
- The single files: `textConfig.json`, `photoConfig.json`,
  `videoConfig.json`, `theme.json` and `skills.json`.

Every change to the store is a commit, and every commit has a revision: a
number naming the state the store was in once that commit landed. Nothing is
written without saying which revision the writer started from, so two
machines editing the same file at once cannot silently lose each other's
work.

## Opening a file

Sign in on clai.chat, then choose **Config** in the account tabs: the config
pages list the kinds the store holds, and under each kind its files. Choosing
one opens it. The page shows a form drawn from the
kind's JSON Schema document, with a field per key the document defines, and
the JSON itself beside it: they are two views of one body, an edit in either
shows in the other at once, and they never disagree. A key the form has no
field for is kept and listed, so nothing the document allows is lost.

**Download** gives the stored bytes: the file is served byte for byte as the
newest commit for that path stored it, with no reformatting on the way out.

## Saving a file

One save is exactly one commit, whatever the edit touched, and it names the
revision the page started from as the one it builds on.

The findings of the kind's document are shown with the file, each naming a
JSON path such as `model` and one line of reason. An error refuses the save:
nothing is written and your text stays on the page. A warning does not: the
file is stored, because clai's own loaders accept it, and the finding is
there to tell you what the document would have preferred.

If the file moved under you, because another machine or another tab saved it
first, the save answers 412 and nothing is written. The page shows your text
beside the stored bytes, so you can take what you want from each and save
again from the newer revision.

## Deleting

Deleting a file is one tombstone, written as its own commit at the revision
the page was opened at. The commits before it stay, so a deletion has a
revision like any other change, and a machine that pulls it drops the file.

Deleting a folder, such as a skill's directory, is one commit over every path
under it. It is refused whole when a file arrived under the folder after the
list the page showed: the page deletes what you saw and nothing else, so
reload, check the folder again, and delete then.

## Publishing and privatizing

Three things are published from their own pages: a profile file, a skill's
`SKILL.md`, and one alias of a mode config. What is published is the stored
bytes byte for byte, so the version on the Hub is the file you have. An alias
has no file of its own, and publishes as its model list.

The form asks for the title, the one-line summary and the name in the
address before it sends anything. The findings that publishing would refuse
are shown first, so a file holding a credential stops on the page rather
than on the Hub, and nothing is sent until they are gone.

Privatizing is the other direction. It hides the config from the Hub and
from every anonymous answer, and keeps its ratings, comments and versions,
since those belong to the address rather than to the visibility. Publishing
it again reuses that address: the same handle and name, with the next
version.

## Pulling to every machine

A machine takes the store with `clai cloud pull`, and the three commands
below say where it stands:

```sh
clai cloud pull
clai cloud status
clai cloud log settings
```

`clai cloud pull` fetches the commits this machine does not have yet and
writes the files, and a conflict never overwrites a local file: the account's
copy goes to `cloud/theirs/` until you resolve it. `clai cloud status` shows,
offline, what a pull or a commit would do. `clai cloud log settings` lists the
store's recent commits.

## Related

- [Config schema](/docs/reference/config-schema/) for the document behind
  every form and every finding.
- [Profiles and setup](/docs/guides/profiles/) for the profile file the
  editor edits.
- [Share and rate configs](/docs/guides/community-hub/) for the Hub the
  published version lands on.
- [Configuration](/docs/reference/configuration/) for the files and the
  directory they live in.
