{"id":50270347,"url":"https://github.com/openhands/automation","last_synced_at":"2026-05-27T17:01:20.289Z","repository":{"id":356377796,"uuid":"1180861692","full_name":"OpenHands/automation","owner":"OpenHands","description":"OpenHands automation service","archived":false,"fork":false,"pushed_at":"2026-05-22T18:39:11.000Z","size":2770,"stargazers_count":1,"open_issues_count":44,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-05-22T21:56:43.024Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/OpenHands.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":"AGENTS.md","dco":null,"cla":null}},"created_at":"2026-03-13T13:46:10.000Z","updated_at":"2026-05-22T18:39:16.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/OpenHands/automation","commit_stats":null,"previous_names":["openhands/automation"],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/OpenHands/automation","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpenHands%2Fautomation","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpenHands%2Fautomation/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpenHands%2Fautomation/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpenHands%2Fautomation/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/OpenHands","download_url":"https://codeload.github.com/OpenHands/automation/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpenHands%2Fautomation/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33575520,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-05-27T02:00:06.184Z","response_time":53,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-05-27T17:01:19.072Z","updated_at":"2026-05-27T17:01:20.284Z","avatar_url":"https://github.com/OpenHands.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# OpenHands Automation Service\n\n\u003e ⚠️ **Beta**: This project is currently in beta. APIs and features may change without notice.\n\nScheduled and event-driven automation execution for OpenHands Cloud. This service allows users to create automations that run on a schedule (cron) or in response to events (webhooks).\n\n## Features\n\n- **Scheduled Automations**: Run OpenHands conversations on a cron schedule\n- **Event-Driven**: Trigger automations via webhooks (e.g., GitHub events)\n- **API Key Management**: Per-user API keys for secure automation access\n- **Run History**: Track automation runs with status and results\n\n## Development\n\n### Prerequisites\n\n- Python 3.12+\n- [uv](https://github.com/astral-sh/uv) for dependency management\n- PostgreSQL (or use testcontainers for testing)\n\n### Setup\n\n```bash\n# Install dependencies\nuv sync --group dev\n\n# Run the service locally (requires PostgreSQL)\nuv run uvicorn openhands.automation.app:app --host 0.0.0.0 --port 8000 --reload\n```\n\n### Testing\n\n```bash\n# Run all tests\nuv run pytest\n\n# Run with coverage\nuv run pytest --cov=openhands/automation --cov-report=term-missing\n```\n\n### Code Quality\n\n```bash\n# Run pre-commit hooks\nuv run pre-commit run --all-files\n\n# Format code\nuv run ruff format\n\n# Lint code\nuv run ruff check --fix\n\n# Type check\nuv run pyright\n```\n\n### Database Migrations\n\n```bash\n# Create a new migration\nuv run alembic revision --autogenerate -m \"description\"\n\n# Apply migrations\nuv run alembic upgrade head\n```\n\n## Docker\n\n```bash\n# Build the image\ndocker build -t automation -f containers/Dockerfile .\n\n# Run the container\ndocker run -p 8000:8000 automation\n```\n\n## Project Structure\n\n```\nopenhands/\n└── automation/      # Main application package (openhands.automation namespace)\n    ├── app.py           # FastAPI application entry point\n    ├── router.py        # API routes for CRUD operations\n    ├── scheduler.py     # Background scheduler for cron jobs\n    ├── dispatcher.py    # Dispatches pending runs to OpenHands\n    ├── models.py        # SQLAlchemy models\n    ├── schemas.py       # Pydantic schemas for API\n    └── utils/           # Utility functions\nmigrations/          # Alembic database migrations\ntests/               # Unit tests\ncontainers/          # Docker configuration\n```\n\n## Deployment\n\nThis service is deployed via the [deploy repository](https://github.com/All-Hands-AI/deploy). Docker images are automatically built and pushed to `ghcr.io/openhands/automation` on every push to main and on tags.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopenhands%2Fautomation","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fopenhands%2Fautomation","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopenhands%2Fautomation/lists"}