# Hosts and production marking

A host is a server you connect to. Every host has an environment, and the environment decides how loudly Valakes warns you while you work on it.

Source: https://docs.valakes.com/hosts-and-production/

Last updated: 2026-11-28

A host is a server you connect to. Every host has an environment, and the environment decides how loudly Valakes warns you while you work on it.

## The four environments

Choose one when you add a host. You cannot save a host without it.

| Environment | Use it for | Markers |
|---|---|---|
| Production | Servers real users depend on | Six red markers |
| Staging | Servers that mirror production | Four amber markers |
| Development | Your own test machines | None |
| Other | Anything else | None |

Valakes pre-selects Production when the name, address or tags contain `prod`, `production`, `live` or `prd`, and says why ("Looks like production"). You confirm or change it. Hosts you import from `~/.ssh/config` go through the same step: you pick an environment for every row before the import saves. Changing a host away from Production asks for a confirmation in a native window.

## The markers

On a production host you see red in six places, so you cannot miss it while you type:

1. A red stripe on the tab, with a red `PROD` badge next to the host name.
2. A thin red line along the top edge of the terminal.
3. A red `prod` badge in the composer.
4. A red `PROD` segment in the status bar.
5. A red focus ring on the composer.
6. A red Run button that reads `Run on PROD`.

On a staging host you see a weaker amber set in four places: an amber stripe and an outlined `STAGING` badge on the tab, an amber line along the top of the terminal, an amber `staging` badge in the composer and an outlined `STAGING` segment in the status bar. The focus ring and the Run button stay teal. Development and Other hosts have no markers.

The terminal background is never tinted, because that would change the colors of `vim`, `htop` and `mc`.

The environment always comes from the host record that you saved. It never comes from anything the server prints, such as a title or a prompt, so a server cannot make a production tab look like a development one. If the saved record has been tampered with outside Valakes, the host counts as production until you save it again.

## What production changes

- A command rated Medium risk is raised to High, so it asks before it runs. See [Composer and Raw mode](https://docs.valakes.com/composer-and-raw-mode/#the-command-check-and-the-risk-card).
- A multi-line paste is shown to you first and waits for your confirmation. A setting can ask on every host.
- In Files, deleting a folder needs the host name typed, dropping files on the server pane asks "Upload to PROD", and the replace button reads **Replace on PROD**. See [Files](https://docs.valakes.com/files/).
- For agents, a command that uses a credential on a production host, or a production credential on any host, always waits for your approval, even on a host set to Full. Raising a production host's agent access above Read-only shows a warning and asks for a native confirmation. See [Agents](https://docs.valakes.com/agents/).
- The built-in assistant asks whether to withhold a production host's output the first time it gets a session there. See [Built-in assistant](https://docs.valakes.com/assistant/).

The first command after you connect is not treated specially. The markers do that job.

## Tags

Tags group hosts. Add them in the host editor, manage them in Settings under **Tags**, and filter the host list with the tag row above it.

## Jump hosts

If a server is reachable only through another one, set **Jump host** in the host editor to the host that forwards you. Opening the host then shows a host key prompt for every hop whose key is not trusted yet, labelled "Hop 1 of 2" and so on, and the shell is on the last host.

## Known hosts

Valakes keeps the host keys you trusted in its own list. Open Settings and choose **Known hosts** to see them. **Remove** needs you to type the host pattern and then confirm in a native window. That is the only way to clear a changed-key stop. See [What happens when a host key changes?](https://docs.valakes.com/security-faq/#what-happens-when-a-host-key-changes)

Settings, **SSH** also has **Use ~/.ssh/known_hosts (read-only)**. When it is on, Valakes also trusts the keys in that file. It never writes to it.
