selan.ai
Apps

Docs · OpenHands

Run OpenHands on your company's accounts

OpenHands is a web app for coding agents and their automations, here running on your company's Selan accounts. One of the Selan 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?

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. Then:

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 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 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:

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

On a Hostinger VPS:

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, 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 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). Open it from its dialog in the Agents tab, at https://name.agents.selan.ai, signed in with your Selan account. See opening it. 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.