# Routing

The routing modes, which plan offers each one, and who can read a request in each.

Source: https://docs.noduma.dev/concepts/routing/

A request's routing mode says which PCs may answer it, and so who can read it. Send it in the `Noduma-Routing` header of each request; without the header, the account's default mode applies (`any` for an account created in the Noduma app). The answer repeats the mode used in its own `Noduma-Routing` header.

The coordinator never falls back from a mode to a less private one: a request that its mode cannot serve fails.

| Mode | Who can read your request | Offered to |
|---|---|---|
| `any` (default) | The owner of the PC that serves it, without knowing who sent it | Every account |
| `own` | Only your own PCs, while they share; free | Every account |
| `vetted` | Only PCs a maintainer vetted, and their owners | Accounts a maintainer invited |
| `trusted` | Only vetted PCs outside every network | Accounts a maintainer marked Ad-Hoc |
| `network:<id>` | Only the vetted PCs of that Ad-Hoc network | That network's member accounts |
| `confidential` | Only attested confidential-computing PCs; never run on real confidential hardware, so treat it as a design, not a guarantee | Accounts a maintainer invited |

A Community account, which every account created in the Noduma app is, may send only `any` and `own`. Any other mode is refused with `403 routing_not_in_plan`; a value that is not a mode at all gets `400 invalid_request`.

## `any`

Noduma chooses the PC. Among the PCs that serve the model and have room, it keeps a consumer's requests moving between contributors, then prefers the faster PC, the less loaded one and the more reliable one. The coordinator never sends the PC who you are.

## `own`: My PCs

Only the PCs paired to your account answer, and only while they share. The answer is free: nothing is reserved, charged or earned, and it moves no price and no ranking. When none of your PCs serving that model is sharing, the request fails with `503 no_capacity` and the message "None of your PCs serving this model is sharing now"; it never goes to another person's PC.

The signed-in chat calls this "Answered by: My PCs", and `noduma chat --my-pcs` sends it. The coordinator still relays the request, as it does every request, and keeps no prompt or answer.

## Redaction

In every mode, before the request leaves the coordinator, known secret formats (private keys, API tokens, `password=` values, email addresses) are replaced with placeholders, and the answer gets them back. It covers known formats only. `Noduma-Redaction: off` turns it off for a request. See [Headers](/api/headers/).

## Tier 2

A model split across a group of PCs is served by several PCs together, and each of them can read the request. The model list marks such a model with `"tier": 2`. `confidential` is never served by a group. See [Tiers](/concepts/tiers/).
