OpenHands
by OpenHands
Open-source AI software developer that can write code, run commands and fix issues in your projects.
- Stars
- 94,276 stars
- Forks
- 13k forks
- Last push
- today
- Activity
- Active
# Install Agent Canvas (no sandbox)$ npm install -g @openhands/agent-canvas# Start the local stack$ agent-canvasCommands from the project's README. Run them after installing (see below).
Overview
Understand OpenHands in 60 seconds
- What it does
- OpenHands Agent Canvas is a self-hosted control center for AI coding agents. It runs the open-source OpenHands agent and others like Claude Code, Codex and Gemini CLI, and lets you automate tasks that run on a schedule or from events in Slack, GitHub and Linear.
- The problem it solves
- Coding agents usually live in one terminal on one laptop and stop when it sleeps. Agent Canvas lets you run agents locally, in Docker, on VMs or in the cloud, switch between those backends, and turn routine work into automations.
- Why choose it
- Choose it if you want an open-source, self-hosted hub for several agents with automations. Use the Docker option unless you're comfortable giving the agent full access to your filesystem.
- Who should use it
- Developers who want a self-hosted agent workspace
- Teams sharing an agent server for code review and dependency updates
- People automating reports or issue triage
- Users of Claude Code, Codex, Gemini CLI or OpenCode
- Setup difficulty
You'll need:
- Node.js 24+ and uv (no-sandbox option)
- Or Docker Desktop / Docker Engine (sandboxed option)
- An API key for the LLM you want to use
How OpenHands works
Agent Canvas is a developer control center for starting agent conversations and automating everyday tasks, like reports that publish to Slack. It runs locally by default and can connect to several agent backends, such as Docker containers, VMs or company infrastructure, with optional OpenHands Cloud or Enterprise.
It runs the open-source OpenHands agent out of the box and supports third-party agents through the Agent Client Protocol (ACP), including Claude Code, Codex, Gemini CLI, Pi and OpenCode. You can bring any LLM.
Automations integrate with Slack, GitHub, Linear, Notion and more, and run on a schedule or in response to webhooks. The README recommends running the backend on a cloud server so agents keep working when your laptop is closed, and has a self-hosting guide covering security hardening.
Features
Key features
Self-host your way
Run agents locally, in Docker, on VMs or anywhere.
Switch backends
Move between local, remote and cloud agents.
Automations
Scheduled or webhook-triggered workflows.
Integrations
Slack, GitHub, Linear, Notion and more.
Any model
Bring your own LLM.
Any ACP agent
OpenHands, Claude Code, Codex, Gemini, Pi, OpenCode.
Strengths
- Open source and self-hostable
- Works with many agents and models
- Automations built in
- MIT licensed
Limitations
- No-sandbox mode gives the agent full filesystem access
- Server setups need security hardening
- You pay for the LLMs you use
Practical use cases
Always-on agent server
Run agents in the cloud and trigger them from Slack.
Team code review bot
Share an agent server for reviews and dependency updates.
Daily reports
Schedule an automation that posts to Slack.
Installation
Install OpenHands
Commands come from OpenHands's README. AIRepoHub hasn't run them yet. View source
Prerequisites
- Node.js 24+ and uv, or Docker
Supported systems
- macOS
- Linux
- Windows
- 1
Install
Warning: this runs the agent server directly on your machine with full filesystem access.
Shellnpm install -g @openhands/agent-canvas - 2
Start the full local stack
Shellagent-canvas
- 1
Prepare a workspace
Shellexport PROJECTS_PATH="$HOME/projects" # directory containing your project foldersmkdir -p "$PROJECTS_PATH" - 2
Start Agent Canvas
Shelldocker run -it --rm \ -p 127.0.0.1:8000:8000 \ -e AGENT_CANVAS_ALLOW_LAN_SESSION_KEY=true \ -v openhands-state:/home/openhands/.openhands \ -v "${PROJECTS_PATH}:/projects" \ ghcr.io/openhands/agent-canvas:1.45.0 - 3
Open http://localhost:8000/canvas
Configuration and API keys
| Setting | What it's for |
|---|
First run
- 1
Start Agent Canvas
Shellagent-canvas - 2
Add your LLM settings and start a conversation
OpenHands's documentation doesn't include sample output, so we don't show any. Expect the results in your terminal.
Your first project
Run OpenHands in a Docker sandbox
Start Agent Canvas safely in Docker with your projects mounted.
Before you start
- Docker Desktop or Docker Engine
- An LLM API key
- 1
Create a projects folder
Shellexport PROJECTS_PATH="$HOME/projects"mkdir -p "$PROJECTS_PATH" - 2
Run the container
Shelldocker run -it --rm \ -p 127.0.0.1:8000:8000 \ -e AGENT_CANVAS_ALLOW_LAN_SESSION_KEY=true \ -v openhands-state:/home/openhands/.openhands \ -v "${PROJECTS_PATH}:/projects" \ ghcr.io/openhands/agent-canvas:1.45.0 - 3
Open http://localhost:8000/canvas and configure your model
What to expect
Agent Canvas opens in your browser, with your projects available under /projects and state kept in the openhands-state volume.
Next steps
- Create a scheduled automation
- Connect Claude Code or Codex as an ACP agent
- Read SELF_HOSTING.md before running on a server
Costs and requirements
What it costs to run
- License
- MIT. Free to use, modify and use commercially.Free
- Software
- Free and self-hosted.Free
- Models
- Your LLM provider charges for usage.Depends
- OpenHands Cloud
- Optional hosted option.Depends
Troubleshooting
Common setup issues
Permission denied on Linux Docker
uid 10001 in the container needs read/write access to the workspace. On SELinux hosts, the bind mount may need a :z or :Z label.
State disappeared
Reuse the openhands-state volume; a fresh volume has no previous data.
Want to split frontend and backend
Use agent-canvas --frontend-only or --backend-only.
Alternatives
Similar AI repositories
deepseek-harness
deepseek-ai
Plugin-based harness from DeepSeek for running AI agents, where every feature is added as a plugin.
firecrawl
firecrawl
API that lets AI agents search, scrape and read web pages and other data sources through one service.
orca
stablyai
App for running and managing several AI coding agents like Claude Code and Codex on desktop, mobile or a remote machine.
TradingAgents
TauricResearch
Multi-agent framework where AI agents work together to research and analyze financial markets.