# Share an agent

> A chart is personal until it says \"privacy\": \"shareable\". What changes, what alta lint then refuses, your private keyword list, and alta package --public.

Every agent you make starts as yours alone. `alta chart new` writes `"privacy": "personal"` in its `chart.json`, and a chart without the field is personal too. A personal chart stays in a private repository, its schedules are hidden when they are exported, and it is never packaged for a public repository.

To share an agent, you say so in the chart, and Alta then checks that nothing of yours is left in it.

## 1. Say it is shareable

In `chart.json`, next to `origin`:

```json [chart.json]
"privacy": "shareable"
```

Agents, teams, modules, packages and skills may say it.

## 2. Lint it

```sh [Terminal]
alta lint my-agent
```

A shareable chart is read whole: every text of `chart.json` and every file of its folder (the agent's files, its schedules). `alta lint` refuses:

| Rule | What it found |
|---|---|
| [`chart.privacy-secret`](https://docs.altasystem.ai/reference/errors#chart-privacy-secret) | something that looks like a password or a key |
| [`chart.privacy-token`](https://docs.altasystem.ai/reference/errors#chart-privacy-token) | a long token-shaped string |
| [`chart.privacy-home-path`](https://docs.altasystem.ai/reference/errors#chart-privacy-home-path) | a path in your home folder, such as `/Users/<name>/notes`: write `~/notes` |
| [`chart.privacy-email`](https://docs.altasystem.ai/reference/errors#chart-privacy-email) | an e-mail address (`you@example.com` is fine) |
| [`chart.privacy-keyword`](https://docs.altasystem.ai/reference/errors#chart-privacy-keyword) | a word of your private keyword list |

Each problem names the file and the field, never the text it found.

## 3. Your private keyword list

Names of clients, projects or people that must never leave your machine go in a local file, one per line (a regular expression, case ignored; `#` starts a comment):

```text [~/.config/alta/privacy-keywords.txt]
# never in a shared chart
acme
project-falcon
```

`alta lint` reads it for a shareable chart. Another file can be named with `ALTA_PRIVACY_KEYWORDS`. The file stays on your machine: it is never in a chart.

## 4. Package it for a public repository

```sh [Terminal]
alta package my-agent --public
```

`--public` refuses a personal chart and says why. Without it, `alta package` packages any chart, for your own use.

Then publish it as any chart: [Publish a chart](https://docs.altasystem.ai/marketplace/publish).

**Next:**

- [Trust](https://docs.altasystem.ai/charts/concepts/trust)
- [Publish a chart](https://docs.altasystem.ai/marketplace/publish)
