OpenHands/automation
A FastAPI control plane for scheduling and triggering OpenHands runs
Automated SPDX check for reference only — not legal advice. Disclaimer
GitHub Star History
Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.
Evidence-Backed Technical Brief
AI Deep ReviewArchitecture & Core Mechanics
OpenHands Automation is the control plane for recurring and event-driven OpenHands conversations. openhands.automation.app:app is the FastAPI entry point; router.py exposes CRUD, scheduler.py handles cron, and webhooks provide a second trigger path. dispatcher.py submits pending runs to OpenHands. The service owns run history and sandbox lifecycle orchestration, while the Agent Server and software-agent SDK execute conversations and own tool behavior, workspaces, and agent events.
The Python 3.12+ stack uses Pydantic schemas, SQLAlchemy models, and Alembic migrations. The dependency manifest includes croniter, asyncpg, and aiosqlite. Integrations span inbound HTTP callbacks and an explicit aiohttp WebSocket transport dependency for Slack SDK's async Socket Mode client. These are integration paths into the service, not a model or agent-tool plugin interface.
Key Capabilities & Differentiators
Automations can run on a cron schedule or respond to webhook events such as those from GitHub. Per-user API keys govern automation access, and run history records execution status and results. A direct Microsoft Teams outgoing webhook example covers source admission, API setup, and acknowledgements. This layer dispatches OpenHands conversations rather than selecting or serving model families itself.
Recent releases extend what can be recorded and filtered. Version 1.36.0 added persisted outcome values for analytics and factory-validated outcome parsers. Version 1.37.0 introduced outcome periods and dedupe keys and reserved the platform. outcome-key prefix. Version 1.38.0 added automation-list filtering by factory membership. Outcome deduplication should not be read as a guarantee that webhook deliveries or agent runs execute exactly once.
Trade-offs & Limitations
The strongest reason to adopt this service is that a job is already an OpenHands conversation: definitions, triggers, dispatch, and history have one owner without duplicating execution logic. A CI scheduler is a better fit when the job lives entirely inside an existing repository pipeline. For multi-step dependencies across unrelated systems, evaluate a general workflow engine; this service's scope is OpenHands orchestration rather than general-purpose workflow execution.
Self-hosting the API leaves you responsible for database migrations, webhook reachability, API key handling, and connectivity to the execution layer. The advisory lock coordinates schema migrations, not scheduler failover or duplicate-run prevention. Because the service is in beta, pin a release and test integrations and upgrades before depending on stable behavior. Size the control plane by inbound event rate, dispatch concurrency, and retained history; model and sandbox costs belong to the execution side.
Hardware & Deployment Guide
For local development, use Python 3.12+, uv, and PostgreSQL: install with uv sync --group dev and start uv run uvicorn openhands.automation.app:app --host 0.0.0.0 --port 8000 --reload. For container deployment, build from containers/Dockerfile or use images published to ghcr.io/openhands/automation on main-branch pushes and tags. Running the API container does not replace the OpenHands execution layer.
SQLite databases migrate on startup. PostgreSQL migrations can be applied separately with uv run alembic upgrade head or enabled at startup with AUTOMATION_RUN_MIGRATIONS_ON_STARTUP=true. On startup, an advisory lock serializes migration attempts across replicas, and a migration failure prevents the affected replica from starting. Optional database creation uses AUTOMATION_CREATE_DATABASE_IF_MISSING=true and requires CREATEDB. Release 1.38.0 also updated the container's Debian snapshot for krb5 and zstd security fixes.
Teams already running OpenHands that need an API to manage recurring or webhook-triggered conversations and track their outcomes.
You need a standalone agent runtime, a general cross-system workflow engine, or an API contract that is already stable beyond beta.
Quick Start & Installation
# Install dependencies uv sync --group dev # Run the service locally (requires PostgreSQL) uv run uvicorn openhands.automation.app:app --host 0.0.0.0 --port 8000 --reload
Comparison vs. Top Agents & Frameworks Alternatives
Full comparison →| Repository | Stars | 7d Trend | Stack | License | Core Positioning |
|---|---|---|---|---|---|
| automation ★ | 51 | +1 | Python | MIT | A FastAPI control plane for scheduling and triggering OpenHands runs |
| hermes-agent | 268.1k | +1.5k | Python | MIT | Self-hosted Python agent with persistent memory and automation across chat and C |
| daily_stock_analysis | 75.9k | +870 | Python | MIT | A Python Agent workbench for multi-market watchlist research and scheduled repor |
| dify | 162.4k | +370 | Python | — | Visual workflow and RAG workspace for building and serving LLM apps |
AI Context Briefing (for Claude / Cursor / Windsurf)
Standardized architecture summary & quickstart commands ready to paste into coding agents.
curl -sL https://repoforai.com/repo/OpenHands/automation.md
Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).
Frequently Asked Questions about automation
How does a scheduled job or webhook become an OpenHands run?
What hardware should I provision, and does the service need a GPU?
Can a company self-host and redistribute the service?
When is this a better fit than CI schedules or a general workflow engine?
Upstream README & Documentation
This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.
Top 10 Breakout Open-Source AI Repos, Every Thursday
Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.
Zero spam · 1-click unsubscribe · Privacy Policy