---
title: "OpenHands on company accounts — selan app openhands · Selan"
description: "Run OpenHands, a web app for coding agents and automations, on company Selan accounts: via selan app, by hand, on a server over SSH, or hosted by Selan."
url: https://selan.ai/docs/openhands
updated: 2026-11-27T10:00:38+02:00
---

Apps

Docs · OpenHands

# Run OpenHands on your company's accounts

[OpenHands](https://github.com/OpenHands/OpenHands) is a web app for coding agents and their automations, here running on your company's Selan accounts. One of the [Selan apps](https://selan.ai/docs/apps).

**OpenHands keeps your Selan token in its own files.** It stores the API key, encrypted with a key file beside it, under `~/.selan/apps/openhands/home/.openhands`: its settings, its default model profile and each conversation's state. Each launch replaces the key in the settings and the profile; a conversation keeps the key it started with. If you revoke the token, it stops working.

Get started

## How do I run OpenHands with selan?

```bash
selan app openhands
```

The first time, `selan app` prints the commit and the scripts and asks `[y/N]`. It installs OpenHands, starts it, and opens `http://127.0.0.1:8000`. Stop it with Ctrl-C. Arguments after the app's name go to `agent-canvas`, so `--port 3000` changes the port.

You need `curl`, `node` 24 or later and `npm`. The install fetches `uv` if you have none, and the agent server, the automation backend and their Python. It runs on macOS and Linux; on Windows use WSL.

## How do I run OpenHands without selan?

You need an API token, which an owner mints in control under [Settings → API tokens](https://control.selan.ai/settings/access). Then:

```bash
export SELAN_TOKEN=selanct_...
curl -fsSL https://raw.githubusercontent.com/selan-ai/selan-apps/main/openhands/install.sh | bash
~/.selan/apps/openhands/run.sh
```

## How do I run OpenHands on a server?

Add the [selan-apps plugin](https://selan.ai/docs/apps#plugin) to Claude Code and ask for a deploy. `deploy-google-cloud` makes a Compute Engine VM in your project. `deploy-hostinger` uses a Hostinger VPS you already have, and it has not been tested against a real VPS.

A server has no session, so an owner creates an API token under [Settings → API tokens](https://control.selan.ai/settings/access) and you paste it into a line that hides it. The skill keeps it in Secret Manager or in a file only root can read, and revokes it when you remove the deploy.

On a server OpenHands stays on localhost and has no login, so its port is never opened: anyone who reaches it has a shell on the machine. Reach it through an SSH tunnel. On Google Cloud:

```bash
gcloud compute ssh selan-openhands --project PROJECT --zone ZONE --tunnel-through-iap -- -N -L 8000:127.0.0.1:8000
```

On a Hostinger VPS:

```bash
ssh -N -L 8000:127.0.0.1:8000 root@HOST
```

Then open `http://127.0.0.1:8000` on your own machine.

## How do I have Selan host OpenHands?

In [control](https://control.selan.ai), open the Agents tab, choose Launch and pick OpenHands. Pick one of your company's models and who can open it, people and teams; you are always in. If the tab is not there, [ask us](https://selan.ai/contact) to turn Agents on.

It runs on its own virtual machine in Selan's Google Cloud, and its data stays across restarts ([disk and snapshots](https://selan.ai/docs/apps#hosted-machine)). Open it from its dialog in the Agents tab, at `https://_name_.agents.selan.ai`, signed in with your Selan account. See [opening it](https://selan.ai/docs/apps#hosted-open). Everyone let in has a shell on its machine through its agents and terminal.

About €60 a month (€0.0822 an hour) from your company's credits while it runs, plus the models it uses.

How it works

## What does the launch do?

1.  Reads your company's models from the gateway. `SELAN_APP_MODEL` picks one; an id your company does not list stops the launch; unset, it is the first.
2.  Starts OpenHands: its web UI, the agent server and the automation backend, offline.
3.  Gives it one model setting, the profile `default`, on the Anthropic Messages endpoint at the gateway with your token. It is saved and made active at every launch; new conversations start on it.

A conversation keeps the model it started with. Anything else you set in that profile is kept.

## What does OpenHands put on my disk?

Everything is under `~/.selan/apps/openhands`, about 3.2 GB after the install: `node_modules/` with the pinned `@openhands/agent-canvas`, `xdg/` with the agent server, the automation backend and their Python, `home/` with OpenHands' settings, conversations, automations and the agents' workspaces, and `run.sh`. Nothing is installed globally.

## Which models do the agents get?

Any of your company's models, Claude or not. To change the model, use the Agents tab when hosted, or set `SELAN_APP_MODEL` and launch again.

The browser tool uses a Chrome or Chromium already on the machine; without one, the agents have every tool but the browser.

**Claude models served from a Claude subscription work in OpenHands.** Hermes Agent and OpenClaw do not.

## What if OpenHands did not work?

-   **It says `SELAN_TOKEN` is not set.** By hand, export a `selanct_` token first. `selan app` sets it for you.
-   **It says OpenHands is not installed.** Run `install.sh` first, or use `selan app openhands`, which does both.
-   **It says a model is not one of the company's models.** `SELAN_APP_MODEL` names an id your company does not list.
-   **The agents stop answering.** The token was revoked or expired. Launch again so the profile gets the current key; a conversation that already started keeps the old one, so start a new one.
-   **The page does not open.** OpenHands may be on another port. On a server, the tunnel has to be running.
-   **The browser tool is missing.** There is no Chrome or Chromium on the machine.
-   **Something else.** [Ask us](https://selan.ai/contact).

## Related

-   [Apps](https://selan.ai/docs/apps)
-   [Paperclip](https://selan.ai/docs/paperclip)
-   [Models and providers](https://selan.ai/docs/providers)
