Agent Canvas can run directly on your machine or inside Docker. Start with the simplest setup that matches the trust boundary you want.
Agent Canvas starts an agent server that can run shell commands, read files, write files, and use connected tools. Treat the machine or container where the backend runs as trusted infrastructure. Before exposing Agent Canvas to a network you do not control, review VM / Self-Hosted Installation.
Choose An Install Method
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
Install Node.js 22.12 or later and uv, then verify both tools are available:If uv or uvx is missing, install uv before starting Agent Canvas. The local agent server runtime uses it. Install Docker and make sure the Docker daemon is running:On macOS and Windows, open Docker Desktop before running the container. Install Node.js 22.12 or later and uv, then verify the tools are available:If uv or uvx is missing, install uv before starting Agent Canvas. The local agent server runtime uses it.
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. Create host directories for persistent settings and project files, then start the container.macOS / Linux:Windows (PowerShell):Agent Canvas starts on http://localhost:8000. The agent can access project files under the mounted /projects directory.PowerShell uses backticks (`) for line continuation. If Docker reports that it cannot connect to the daemon, start Docker Desktop and run the command again.
Run the latest published package without installing it globally:Agent Canvas starts on http://localhost:8000 by default. If your browser does not open automatically, open that URL manually.Use npx when you want to try Agent Canvas once, avoid global package installs, or work around a shell PATH issue with the global agent-canvas command. Use the source workflow only when you want to modify Agent Canvas itself:For development-specific environment variables and commands, see Contribute / Development.
Confirm It Started
After startup:
- Open
http://localhost:8000.
- Confirm the default local backend shows as connected.
- Open
Settings > LLM and configure a model.
- Choose
Open Workspace before starting a conversation if you want the agent to work in a specific folder.
- Return to the home screen and start a conversation.
If the page does not load, check the terminal where Agent Canvas is running. Common causes are a missing prerequisite, a busy port, or Docker not running.
Common Startup Options
If port 8000 is already in use, start Agent Canvas on another port:
Environment Variables
Stop Agent Canvas
Return to the terminal running Agent Canvas and press Ctrl+C.
Return to the terminal running Agent Canvas and press Ctrl+C.
Return to the terminal running the container and press Ctrl+C.If the container is running in the background, stop it with:
Update Agent Canvas
Stop Agent Canvas, then run the latest package: Stop Agent Canvas, then reinstall the latest package: Stop the running container, pull the latest image, then run the container again:
Your settings and conversation data are stored outside the package or image when you use the documented ~/.openhands mount.
Uninstall Agent Canvas
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: Stop any running Agent Canvas process, then uninstall the package:If Windows reports that uv.exe or another file is in use, close terminals running Agent Canvas, stop related processes, and run the uninstall command again. Stop any running container, then remove the image if you no longer need it:
Uninstalling the package or image does not automatically remove your persisted data. If you want to delete local settings, secrets, and conversation history, remove the persistence directory you mounted or used, such as ~/.openhands.
Next Steps