Skip to content
AIRepoHub

OpenHands

by OpenHands

Open-source AI software developer that can write code, run commands and fix issues in your projects.

AI AgentsProductivityTypeScriptMIT license
Stars
94,276
stars
Forks
13k
forks
Last push
today
Activity
Active
OpenHands: quick start
# Install Agent Canvas (no sandbox)$ npm install -g @openhands/agent-canvas# Start the local stack$ agent-canvas

Commands 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

Based on official documentation

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. 1

    Install

    Warning: this runs the agent server directly on your machine with full filesystem access.

    Shell
    npm install -g @openhands/agent-canvas
  2. 2

    Start the full local stack

    Shell
    agent-canvas
  1. 1

    Prepare a workspace

    Shell
    export PROJECTS_PATH="$HOME/projects"  # directory containing your project foldersmkdir -p "$PROJECTS_PATH"
  2. 2

    Start Agent Canvas

    Shell
    docker 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. 3

    Open http://localhost:8000/canvas

Configuration and API keys

SettingWhat it's for

First run

  1. 1

    Start Agent Canvas

    Shell
    agent-canvas
  2. 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. 1

    Create a projects folder

    Shell
    export PROJECTS_PATH="$HOME/projects"mkdir -p "$PROJECTS_PATH"
  2. 2

    Run the container

    Shell
    docker 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. 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.

Source: README.md

State disappeared

Reuse the openhands-state volume; a fresh volume has no previous data.

Source: README.md

Want to split frontend and backend

Use agent-canvas --frontend-only or --backend-only.

Source: README.md

Alternatives

Similar AI repositories