Choose An Install Method
| Method | Use It When | What The Agent Can Access |
|---|---|---|
| npm local install | You want the quickest local browser setup. | Runs directly on your machine and can work in local workspaces you open. |
| Docker | You want a local sandbox with clearer file boundaries. | Runs inside a container and can access mounted project directories. |
| npx | You want to try Agent Canvas without installing the package globally. | Runs directly on your machine and can work in local workspaces you open. |
| VM / self-hosted | You want an always-on backend, stronger hardware, or a team-accessible server. | Runs on the VM or dedicated host you configure. |
| From source | You are contributing to Agent Canvas or changing the frontend/backend stack. | Runs your local development checkout. |
If you are new to Agent Canvas, use
npx for a quick first run or npm local install if you want a reusable agent-canvas command. Use Docker when you specifically want sandboxing.Verify Prerequisites
- npm
- Docker
- npx
Termux and other mobile Linux environments are not a primary supported target. For the most reliable local setup, use macOS, Linux, Windows with PowerShell, or Windows with WSL2.
Install And Run
- npm
- Docker
- npx
- From Source
Install the published package globally:Start the full local stack:Agent Canvas starts on
http://localhost:8000 by default. If your browser does not open automatically, open that URL manually.Confirm It Started
After startup:- Open
http://localhost:8000. - Confirm the default local backend shows as connected.
- Open
Settings > LLMand configure a model. - Choose
Open Workspacebefore starting a conversation if you want the agent to work in a specific folder. - Return to the home screen and start a conversation.
Common Startup Options
| Option | Description |
|---|---|
-p, --port <port> | Set the ingress port. The default is 8000. |
--backend-only | Start only the backend behind ingress. Use this for a headless backend on a local machine, VM, or server. |
--frontend-only | Start only the static frontend behind ingress. Use this when connecting a local UI to a remote backend. |
--public | Enable public mode. Requires LOCAL_BACKEND_API_KEY and is intended for deployments reachable beyond localhost. |
-v, --version | Show the version number. |
--info | Show version and stack configuration details. |
-h, --help | Show built-in help. |
8000 is already in use, start Agent Canvas on another port:
Environment Variables
| Variable | Purpose |
|---|---|
LOCAL_BACKEND_API_KEY | API key for the server. Required in --public mode; optional for local use because Agent Canvas can auto-generate and persist one. |
OH_SECRET_KEY | Secret used to protect stored settings and secrets. |
OH_AGENT_SERVER_VERSION | Pin a specific agent server version, such as 0.1.0. |
PORT | Ingress port inside the Docker container. Map it with -p <host>:<PORT>. |
Stop Agent Canvas
- npx
- npm
- Docker
Return to the terminal running Agent Canvas and press
Ctrl+C.Update Agent Canvas
- npx
- npm
- Docker
Stop Agent Canvas, then run the latest package:
~/.openhands mount.
Uninstall Agent Canvas
- npx
- npm
- Docker
There is no Agent Canvas package to uninstall when you use
npx. Stop the running process with Ctrl+C.If you want to clear downloaded package cache entries, use npm’s cache commands:~/.openhands.

