# Locality and online services

> One word says how much a chart needs the network once installed (local, local-first or cloud), and a list says which online services, why, and what leaves the machine. What lint checks, and what it cannot.

A chart says how much it needs the network once installed, in one word, `locality`, and lists the online services behind that word in `external.services`: who, why, whether an account is needed, and what leaves the machine. People filter on the word, and read the list before they agree to install.

## The three levels

| `locality` | Promise | In the list of services |
|---|---|---|
| `local` | once installed, it works with the network off, and never needs it | no service used at run time |
| `local-first` | everything it must do works offline; some extras use the network | every run-time service is optional (`"required": false`) |
| `cloud` | it does not work without the services it lists | at least one required run-time service: the list **is** what it needs |

The levels describe **run time**. Installing may still download something: that is a service with `"phase": ["install"]`, and it does not make a chart `cloud`.

A chart that does not say is "not declared": it is shown that way, and it never matches a locality filter. Quest packs, universes and cosmetics hold data only: they are local by construction and say neither key.

## A service

```json [chart.json: external.services[0]]
{
  "id": "telegram",
  "name": "Telegram",
  "purpose": {
    "en": "The agent writes to you on Telegram.",
    "fr": "L'agent t'écrit sur Telegram."
  },
  "hosts": [
    "api.telegram.org"
  ],
  "phase": [
    "run"
  ],
  "account": "free",
  "data": [
    "messages"
  ]
}
```

| Field | Says |
|---|---|
| `id`, `name` | the service, and its brand name |
| `purpose` | why the chart talks to it, one sentence, in English and French: the owner reads it |
| `hosts` | the host names it reaches (`api.telegram.org`); one leading `*.` allowed, no address, no port, no path |
| `phase` | `run`, `install`, or both |
| `required` | `false` for an optional extra; default `true` |
| `account` | `none`, `free` or `paid`: does the owner need an account there |
| `signin` | the chart's own sign-in that connects that account |
| `data` | what leaves the machine at run time: `prompts`, `files`, `messages`, `contacts`, `calendar`, `audio`, `images`, `location`, `identifiers`, `usage`, or `none` |
| `when` | only when a value is one of a list (or a need is bound to one of a list of providers) |

A key or a password never appears here: the list names an account, and a credential reaches the machine through a [sign-in](https://docs.altasystem.ai/charts/concepts/sign-ins).

## A mind and a channel are needs

You never write Claude, ChatGPT or Telegram in `external`: a mind and a channel are [needs](https://docs.altasystem.ai/charts/concepts/needs), and the service comes from the provider the owner binds. The `locality` you write covers your fixed services; the level of one install adds the providers bound. Before anyone binds, the store lists the worst case among the providers each need may take, and says "can run 100% local" when every need has a local one.

## It depends on the owner's choices

A service with a `when` counts only when its value holds. The `locality` you write holds for the default values; the level of one install comes from the values its owner chose and the providers bound to its needs.

## What lint can prove

Lint cannot read everything: a skill's text may tell an agent to open any web page. It computes a **floor** from what the chart names in the closed lists, and refuses a chart that says it is more local than that floor, with the reason for each field:

| What the chart names | Effect |
|---|---|
| a part or a repair whose action reaches the network | `cloud` for a part, `local-first` for a repair; a service must cover its hosts |
| a sign-in whose tool reaches the network | `cloud` if required, `local-first` if optional; a service must cover it |
| an agent's model from a provider that is not local | `cloud`; a service must cover it |
| a need whose providers are all online | `cloud` (`local-first` if optional); its service is generated |
| an agent's channel (Telegram, Slack…) | `cloud`; a service must cover its hosts |
| a tool that reaches the network wherever the agent chooses (`browser`, `web_search`, `web_fetch`, `message`) | at least `local-first`: the chart cannot be `local` |

Every network use lint can see must be covered by a service with the same phase and the same hosts ([`external.undeclared`](https://docs.altasystem.ai/reference/errors#external-undeclared)), and a chart cannot say it is more local than the floor ([`chart.locality-floor`](https://docs.altasystem.ai/reference/errors#chart-locality-floor)).

## What is not checked

Nothing enforces `locality` while the chart runs. It is a declaration checked against what the chart names, not a firewall: what an agent reaches at run time is bounded by its permissions and by OpenClaw's own sandbox. A repository may test more: a chart that says `local` can be installed against fake programs with the network off, and its proofs must hold ([How charts are reviewed](https://docs.altasystem.ai/marketplace/review)).

## Where people see it

- In search: `alta search --locality local` lists what works offline.
- At the consent step, the first step of every install, before anything changes. For the chart of [the guide](https://docs.altasystem.ai/charts/guides/declare-services), it reads:

```text [The consent step]
Morning Brief asks for: 1 agent(s): Helper; 3 sign-in(s). Each change shows its own card before it runs.

- Morning Brief will think with your Claude subscription · change
- Morning Brief will write to you on Telegram · change

Risk: medium. Read why below before you agree.
- It installs programs on your machine.
- It needs you to sign in (Claude, Telegram).
- An agent writes on a messaging channel (Telegram).
- An agent may reach the network where it chooses (message).
- It talks to online services while it runs (Claude, Telegram).

Needs online services to work.
- Claude: It thinks with your Claude subscription: what you ask goes to Claude. A paid account is needed. What leaves your machine: what you ask.
- Telegram: It writes to you on Telegram. An account is needed. What leaves your machine: messages.
```

A new version that adds a service, a host, a kind of data, makes a service required, or moves towards `cloud` asks the owner again. A repair or a background update never widens it.

**Next:**

- [Needs](https://docs.altasystem.ai/charts/concepts/needs)
- [Say what your chart needs online](https://docs.altasystem.ai/charts/guides/declare-services)
- [Find and install a chart](https://docs.altasystem.ai/marketplace/find-and-install)
- [Every field of chart.json](https://docs.altasystem.ai/reference/standards/chart)
