{"id":50938123,"url":"https://github.com/dimagi/ocs-automation","last_synced_at":"2026-06-17T11:03:54.553Z","repository":{"id":343243739,"uuid":"1176859377","full_name":"dimagi/ocs-automation","owner":"dimagi","description":null,"archived":false,"fork":false,"pushed_at":"2026-05-28T14:37:47.000Z","size":237,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-28T16:21:22.458Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","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/dimagi.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":null,"dco":null,"cla":null}},"created_at":"2026-03-09T13:01:09.000Z","updated_at":"2026-05-28T14:39:53.000Z","dependencies_parsed_at":"2026-05-12T13:04:12.408Z","dependency_job_id":null,"html_url":"https://github.com/dimagi/ocs-automation","commit_stats":null,"previous_names":["dimagi/ocs-automation"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dimagi/ocs-automation","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dimagi%2Focs-automation","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dimagi%2Focs-automation/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dimagi%2Focs-automation/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dimagi%2Focs-automation/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dimagi","download_url":"https://codeload.github.com/dimagi/ocs-automation/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dimagi%2Focs-automation/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34445186,"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-06-17T02:00:05.408Z","response_time":127,"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-06-17T11:03:54.463Z","updated_at":"2026-06-17T11:03:54.548Z","avatar_url":"https://github.com/dimagi.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ocs-automation\n\nPulumi infrastructure for [OpenClaw](https://github.com/openclaw/openclaw) — an EC2-hosted Claude Code automation service for [open-chat-studio](https://github.com/dimagi/open-chat-studio).\n\nOpenClaw listens for Slack mentions and GitHub webhooks, then spins up ephemeral session containers that run Claude Code against the OCS codebase.\n\n## Architecture\n\n```\nPulumi (infra/)\n  └── EC2 instance (Ubuntu 24.04)\n        ├── OpenClaw          ← webhook receiver, task orchestrator (systemd)\n        ├── PostgreSQL 16     ← shared database (systemd)\n        ├── Caddy             ← reverse proxy, automatic TLS (systemd)\n        └── Docker\n              └── Session containers (session/)\n                    └── acpx → Claude Code → open-chat-studio repo\n```\n\n## Directory Structure\n\n```\ninfra/          Pulumi resource definitions (EC2, IAM, S3, secrets)\nopenclaw/       Caddyfile, skills, config (deployed to /opt/openclaw/)\n  skills/ocs/   OpenClaw skill: Slack/GitHub triggers, session-manager.sh\nscripts/        bootstrap.sh (idempotent), deploy.sh, backup/restore\nsession/        Session container Dockerfile and entrypoint\ndocs/           Plans and specs\n```\n\n## Setup\n\nSee [SETUP.md](SETUP.md) for initial setup and ongoing maintenance instructions.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdimagi%2Focs-automation","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdimagi%2Focs-automation","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdimagi%2Focs-automation/lists"}