Remote environments
Run agents on your own Linux machines, reached over SSH: a single machine as one environment, or Incus containers and VMs on a server. A project in an environment works like one on your computer: chats, the terminal, Changes, Files, Pull requests and the browser all work there. Other computers and the phone app can pick up the same chats.
Nothing of Mango's keeps running there. Every action is one ssh call, and Mango never sees a password.
Everything starts in Settings > Environments (also Environments in the command palette and on the welcome screen). Add machine asks how to reach it (user@host or an alias from ~/.ssh/config, an optional port, and your SSH keys, a key file or a password), looks at it when keys get in (its system, sudo, Docker, Incus and addresses, without changing anything), and asks how to use it: as one environment, or as an Incus server with many. A machine that has Incus is offered as an Incus server first.
A single machine
The machine itself is the environment, set up like a container: the agent user with passwordless sudo and a work folder, then the components you pick (the same ones as a new environment). Debian and Ubuntu only.
- Setting it up signs in to your own account there, in a terminal in the dialog, where
sshasks for the machine's password (if you chose a password) andsudofor yours. It installs the base system and adds a key Mango made for this machine to theagentuser, then installs the rest. - Everyday work (agents, git, files, terminals, installing more) signs in as
agentwith that key, so nothing asks for a password again. Your~/.ssh/configstill applies (aliases, jump hosts, known hosts). - Agents can change anything on the machine through
agent'ssudo: use a machine meant for this. - If Mango can't sign in as
agent(the setup didn't finish, or the key went missing), its row and page say so and offer Set up… again. Running the setup again is safe. - Its page has no start, stop or sharing. Its ⋯ menu edits how Mango reaches your account (name, destination, port, key file or password), sets it up again, and removes it from Mango, which takes Mango's key off the machine when it answers and leaves the
agentuser, what is installed and the projects there. - A Lore server on a machine listens on the machine's own address and port, so it is set up with its own options: see Lore.
An Incus server
All it needs is SSH access with your own keys and agent, and sudo.
- A plain Debian or Ubuntu server: Mango installs Incus for you from the server's page: its packages, a storage pool, a network, and your SSH user in
incus-admin. - Incus installed but not initialised: Mango sets it up.
- An existing Incus: works as is, optionally with an Incus remote that points at IncusOS hosts.
The setup runs in a terminal you watch, where sudo can ask for your password. The server's page also updates Incus later.
Tailscale
Optional, per server. New environments join your tailnet with the tags you set (for example tag:mango, so your ACLs keep them on their own network) and with Tailscale SSH. They sign in through a link in the terminal, or with an auth key read from a file on the server. Mango never reads the key itself.
Create an environment
New environment on a server's page: Ubuntu or Debian, container or VM, CPUs, memory and disk, and the components to install with one click:
| Component | What you get |
|---|---|
| Agent user and build tools | The agent user that agents run as |
| Claude Code, Codex | The agent CLIs |
| GitHub CLI | gh, for private clones, pushes and pull requests |
| Node.js | Official builds from nodejs.org: the current LTS or any version |
| Java | SDKMAN for the agent user, with the current Temurin LTS or any vendor and version SDKMAN offers |
| Chromium for agents | A headless Chromium with Playwright's MCP server, registered with Claude Code and Codex, so agents can open pages, read them and take screenshots |
| Desktop | An XFCE desktop you can view in Mango |
| Docker | Engine with Compose and Buildx, usable by the agent user. A container gets Incus nesting turned on, which restarts an existing one once |
| Tailscale | Joins your tailnet |
| Lore, Lore server | Epic Games' Lore CLI, and a Lore server running as a service |
Each install runs in a terminal you watch. Installing a component again updates it: Node.js to the newest release of its line; Java keeps its version and updates SDKMAN.
Node.js and Java have a Version picker, in the create dialog and on the environment's page. It lists every version from nodejs.org or SDKMAN, grouped by release line or vendor, with a search field (21 tem, lts, 22.11). Picking one on the page installs it or switches to it.
Manage an environment
From the environment's page you can:
- Start, stop, restart and delete it (you type the name to confirm).
- Rename it. Incus renames only stopped environments, so a running one is stopped and started again. Its projects and chats in Mango move to the new name.
- Resize it: CPUs, memory and disk, under its ⋯ menu. A disk only grows, and a VM's file system grows when it next starts.
- Sign in to Claude Code, Codex, GitHub CLI or Tailscale, each with the tool's own flow in a terminal inside the environment.
- Open a shell, or view the desktop in Mango (noVNC, tunnelled over SSH, never exposed to the network).
- Open a project folder there, optionally cloning a repository into it.
Projects in an environment
Open folder, New project and Clone repository (project menu, welcome screen, command palette) have a Where choice: this computer or any running environment, grouped by server, with Shared with you last. Mango remembers the last choice.
- Open folder browses the environment's folders in Mango's own picker (git repositories are marked), or you type a path.
- New project makes the folder there, with
git initif you want it. - Clone runs
git cloneinside the environment. Private repositories need the GitHub CLI signed in there.
Once a project lives in an environment:
- Chats run the agent inside it as the
agentuser. Stopping a run stops the agent's processes there too. - The terminal opens a shell there.
- Changes and branches run git inside the environment as the
agentuser, so commits use that user's git identity and pushes use its credentials. It is read a little less often than on your computer, since every read goes over SSH. - Files browses, opens and saves files inside the environment. Every path stays inside the project folder.
- Pull requests finds the GitHub repository from the git remotes in the environment, then reads and merges through the GitHub CLI on your computer. For GitLab, Mango uses the
glabsigned in inside the environment. - Attachments go along: pictures inline, and other files (PDFs, documents, logs, archives) are copied to
~/.local/share/mango/attachmentsof theagentuser, where the agent reads them. - The browser:
localhostaddresses are the environment's own, tunnelled over SSH. See Browser.
The titlebar shows the project's branch next to a server mark that opens the Environment tool window.
The Environment tool window
The bottom button on the right-hand tool stripe (Ctrl Shift H) shows where the active project runs: a laptop for this computer, a server for an environment, with a mark when it is stopped or can't be reached.
It holds the folder, the environment's state and addresses, a shell in the terminal dock, its desktop, the CLIs' sign-ins, its components with versions and updates, and who it is shared with. It checks the environment when it opens, never in the background.
Dropped connections
A run keeps going in the environment when the network or the server goes away. The chat says Reconnecting to environment and stays Working. Mango attaches to the run again as soon as the server answers: it checks every few seconds, and at once when your computer is back online or the window comes to the front. Nothing the agent wrote meanwhile is lost, and messages you sent meanwhile go out once it is back.
A run nobody is attached to for 30 minutes stops itself.
A remote terminal whose connection drops says so and starts a fresh shell in the same tab when the server is back. The Changes and Files views, the shared chats and the agents' browser tools reconnect on their own too.
Chats on several computers
A remote project's chats are also kept inside its environment (~/.local/share/mango/chats/ of the agent user), so every computer that opens it, yours or one it is shared with, sees the same chats.
- A change is sent a few seconds after it happens, at least every 15 seconds while an agent replies.
- Mango looks for changes from other computers when a remote project opens, when its window comes to the front, and every minute while it is in front.
- Deleting such a chat deletes it on the other computers too.
- When two computers change the same chat, the environment's copy wins, unless the chat is running on yours.
Sharing an environment
Give one person full access to one environment, and nothing else on the server, with a one-line mango://join/… link or its QR code: Sharing on the environment's page, then Share…. Say:
- Who it is for.
- How they reach it: over the internet, through a port on the server that leads only into that environment (using the server's public address or its SSH host), or over Tailscale when the person is on your tailnet.
- When access ends: after 1, 7 or 30 days, or never.
The first share installs an SSH server in the environment, which can take a few minutes.
The link is a key
It gives root inside the environment. Mango shows it only once and keeps no copy, so send it privately. Revoke any share from the same list and the link stops working.
Joining
Whoever gets a link needs no server of their own. Open the link in Mango, or paste it under Settings > Environments > Join with a link (also Join a shared environment in the command palette). Mango shows what it leads to and when access ends before saving anything, then connects straight into that environment.
It appears under Shared with you, with everything on this page except starting, stopping, deleting and sharing. Leave removes it and deletes its key from your computer.
A Lore server in an environment
Tick the Lore server component when you create an environment. Publishing it, sign-in and firewalls are covered in Lore.