# Production is always marked

Every host in Valakes has an environment. Production is marked in red wherever you type, staging in amber, and commands on production ask more before they run.

Source: https://valakes.com/features/production-marking/

Last updated: 2026-11-27

Every host in Valakes has an environment, and a production host is marked in red wherever you work on it. Staging gets a quieter amber.

## Every host has an environment

When you add a host you choose its environment: Production, Staging, Development or Other. There is no way to skip the choice, because the environment decides how loudly Valakes warns you while you work. Hosts imported from `~/.ssh/config` go through the same step, one row at a time, before the import saves.

| Environment | Use it for                     | Markers                                              |
| ----------- | ------------------------------ | ---------------------------------------------------- |
| Production  | Servers real users depend on   | Red, in every place you type                         |
| Staging     | Servers that mirror production | Amber, on the tab, terminal, composer and status bar |
| Development | Your own test machines         | None                                                 |
| Other       | Anything else                  | None                                                 |

## How it works

Valakes guesses, you decide, and the marking follows the host everywhere. The guess comes from the words people use for production, so most production servers arrive marked without extra work. Changing a host away from Production later asks for a confirmation in a native window, so a slip cannot quietly unmark it.

1. Add a host, or import your hosts from `~/.ssh/config`.
2. Valakes pre-selects Production when the host looks like one, and says why.
3. Confirm the environment or change it.
4. Open a session. The markers of its environment appear at once.

## What you see on production

On a production host the red is wherever you look, and none of it covers the terminal: a red stripe with a `PROD` badge on the tab, a red line along the top of the terminal, a `prod` badge in the composer, a red status bar segment, a red focus ring and a red Run on PROD button.

Staging gets the same places in amber, except the focus ring and the Run button, which stay teal.

## What production changes

Production does more than change colors: Valakes asks more before anything risky reaches the server. Commands, pastes, file operations and AI agents all get stricter on a host marked Production, and each extra question has Cancel as the safe answer, so a habit of pressing Enter cannot do harm there.

- A command rated Medium risk is raised to High, so it asks first. See [the command check](https://valakes.com/features/command-check/).
- A multi-line paste is shown to you first and waits for your confirmation.
- In Files, deleting a folder needs the host name typed, and uploads ask "Upload to PROD".
- An agent's command that uses a credential on production always waits for your approval.

For a day on live servers with all of this at work, see [working on production servers without fear of one wrong command](https://valakes.com/use-cases/production-servers/).

## What it does not do

The markers make production impossible to miss; they do not stop you. The marking is only as right as the environment you chose, so a production server saved as Development has no red anywhere. The extra questions protect you from a slip, and they are not a barrier against a compromised window.

## Questions

### Which hosts does Valakes guess are production?

Those whose name, address or tags contain prod, production, live or prd. Valakes says why ("Looks like production"), and you confirm or change it.

### Can a server make itself look like a development host?

No. The environment comes from the host record you saved, never from anything the server prints. A record tampered with outside Valakes counts as production until you save it again.

### Why is the terminal background not red?

A tinted background tires the eyes over a long session and changes the colors of `vim`, `htop` and `mc`. The markers sit around the terminal instead.

## Related features

- [Several servers in one tab](https://valakes.com/features/panes-and-broadcast/): A tab in Valakes can hold several terminals side by side, each its own connection to a host. Broadcast sends what you type to several of them at once, and production is held back until you answer.
- [Files move over the same connection](https://valakes.com/features/files/): The Files panel moves files between your computer and the server of the active SSH tab. It runs over the tab's own connection with SFTP, so there is no second login.

## Documentation

[Read the docs: Hosts and production marking](https://docs.valakes.com/hosts-and-production/)

## With an AI agent

An agent works on your servers under the host policies and approvals you set. Setup for each client:

- [Claude Code](https://valakes.com/agents/claude-code/)
- [Codex](https://valakes.com/agents/codex/)
- [Cursor](https://valakes.com/agents/cursor/)
- [MCP clients](https://valakes.com/agents/mcp-clients/)
- [REST API](https://valakes.com/agents/rest-api/)
