skillfed

openhands-workspace

OpenHands Workspace - Docker and container-based workspace implementations

openhands-workspace v1.42.1 739.5K downloads/30d#5,185 on PyPI987
License unclear Active released

What it is and what it does

OpenHands Workspace is a Python SDK for building autonomous software agents that can read, write, and execute code. It wraps an LLM with a set of tools—file editor, terminal, task tracker—and manages a workspace where the agent can operate. Agents can run locally on your machine or inside ephemeral containers (Docker, Kubernetes) via the Agent Server, making it suitable for one-off tasks like README generation, routine maintenance like dependency updates, or larger refactors involving multiple coordinated agents.

The SDK is the foundation for the OpenHands CLI and OpenHands Cloud. It depends on openhands-sdk (core agent logic), openhands-agent-server (remote execution), and pydantic (data validation). The package is actively maintained, has low install friction, and supports modern Python versions (3.12+). No known security vulnerabilities are recorded.

Use it for:

  • Generate or update documentation automatically by having an agent read your codebase and write a README.
  • Automate routine maintenance tasks like updating dependencies or running linters across a repository.
  • Orchestrate multi-agent refactoring or rewriting tasks that require coordinated code changes.
  • Build custom developer tools or CI/CD workflows that delegate code tasks to autonomous agents.
  • Integrate LLM-powered code assistance into your own applications via the REST API.

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

Provides Python and REST APIs for building software agents that can work with code, execute tasks locally or in ephemeral containers, and integrate with LLMs.

Yes, if you need to build LLM-powered agents that can work with code. The package is actively maintained, has low install friction, and a clear use case. However, verify the license terms first—the metadata does not specify one—and ensure your LLM API and Python 3.12+ environment are in place before starting.

Install

openhands-workspace on PyPI

pip

pip install openhands-workspace

uv

uv add openhands-workspace

poetry

poetry add openhands-workspace

Installing openhands-workspace

Before you install

Active maintenance with a release 2 days old and 987 repository stars. Low install friction with a pure-Python wheel and only 3 runtime dependencies. Requires Python 3.12 or later.

License in practice

License treatment is unclear—no SPDX identifier or raw license text is available in the package metadata. Verify the actual license terms before using in commercial or proprietary projects.

Quickstart

pip install openhands-workspace

from openhands.sdk import LLM, Agent, Conversation, Tool
from openhands.tools.terminal import TerminalTool

llm = LLM(model="gpt-5.5", api_key="your-key")
agent = Agent(llm=llm, tools=[Tool(name=TerminalTool.name)])
conversation = Conversation(agent=agent, workspace=".")
conversation.send_message("List files in current directory")
conversation.run()

Requires Python 3.12 or later; an LLM API key and model configuration are needed to instantiate agents.

Verify before relying

  • Whether the unclear license permits commercial use or requires attribution.
  • Whether openhands-agent-server must be separately installed or deployed for remote workspace execution.
  • Performance characteristics and latency when running agents in ephemeral containers.

Package facts

License not declared (unclear)
Python support supports the current Python release (>=3.12)
Install friction low — pure-Python wheel
Runtime dependencies 3 — openhands-sdk, openhands-agent-server, pydantic
Maintenance actively maintained — 2 days since the last release
Last repo commit
First released
Downloads 739,540/month — #5,185 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: openhands_workspace-1.42.1-py3-none-any.whl

Tags

ai agent sdk for codellm-powered software agentsagent framework with toolsdocker-based agent workspaceautonomous code execution agentsagent server apiai agent development kit
ai-agentscode-automationllm-integration

More Application Frameworks packages

Further reading