VOOZH about

URL: https://docs.openhands.dev/openhands/usage/agent-canvas/setup

⇱ Install - OpenHands Docs


Documentation Index

Fetch the complete documentation index at: /llms.txt

Use this file to discover all available pages before exploring further.

Skip to main content
Agent Canvas starts an agent server on the machine where you run it. Treat that machine as trusted infrastructure and review the guidance in VM / Self-Hosted Installation before exposing it to a network you do not control.
Prerequisites: Node.js 22.12 or later, npm, and uv.Install:
npm install -g @openhands/agent-canvas
Run:
agent-canvas
By default, Agent Canvas starts on http://localhost:8000.

CLI Flags

FlagDescription
-p, --port <port>Set the ingress port (default 8000)
--publicEnable public mode — requires LOCAL_BACKEND_API_KEY. The key is not injected into the frontend; users must enter it when the UI loads. Use this for any deployment reachable by others. See VM / Self-Hosted Installation.
--backend-onlyStart only the backend behind ingress (no frontend). Use this to run a headless backend on a VM or server.
--frontend-onlyStart only the static frontend behind ingress (no agent server or automation). Use this to point a local UI at a remote backend.
-v, --versionShow the version number
--infoShow the version and default stack configuration (agent server version, ports, etc.)
-h, --helpShow the built-in help output

Environment Variables

VariablePurpose
LOCAL_BACKEND_API_KEYAPI key for the server. Required in --public mode; optional otherwise (auto-generated and persisted across restarts).
OH_SECRET_KEYSecret used to protect stored settings and secrets
OH_AGENT_SERVER_VERSIONPin a specific agent server version (e.g. 0.1.0)
If you want to clone the repository, run custom dev modes, or configure Vite-specific environment variables, use the Contribute / Development guide instead.

First Steps After Launch

After the UI opens:
  1. Confirm the default local backend is healthy.
  2. Open Settings > LLM and configure a provider, model, and API key.
  3. Open Customize if you want to add skills or MCP servers.
  4. Return to the home screen and enter a prompt to start your first conversation.
  5. If you want the conversation tied to a local folder, choose Open Workspace first.

Next Steps

Was this page helpful?

⌘I
Assistant
Responses are generated using AI and may contain mistakes.