Getting Started
OrgLoop has three levels. You can stop at any one and have a working system.
| Tier | Time | What you need | What you get |
|---|---|---|---|
| 1. See It Work | ~2 min | Nothing | Event routing with a webhook |
| 2. Connect to GitHub | ~10 min | GitHub token | Real PR/CI events flowing through OrgLoop |
| 3. Full Engineering Org | ~30 min | 4 services | Autonomous AI org with supervision loop |
Start at Tier 1. Every tier builds on the one before it.
Tier 1: See It Work
Section titled “Tier 1: See It Work”A webhook source, a console logger, one route connecting them.
Install
Section titled “Install”npm install -g @orgloop/cliVerify:
orgloop versionRequires Node.js >= 22.
Scaffold a project
Section titled “Scaffold a project”orgloop initThe wizard prompts for a project name and which connectors to include. Select webhook only — that’s all you need for this tier.
cd my-orgInstall dependencies and run
Section titled “Install dependencies and run”npm installorgloop validateorgloop startOrgLoop is now running. The webhook source is listening on http://localhost:4800/webhook/webhook.
Send a test event
Section titled “Send a test event”In another terminal:
curl -X POST http://localhost:4800/webhook/webhook \ -H "Content-Type: application/json" \ -d '{"type": "test", "message": "hello from orgloop"}'You should see the event logged to the console:
▶ [source:webhook] resource.changed — {"type":"test","message":"hello from orgloop"}✓ [route:webhook-to-log] matched → console-logYou just routed your first event through OrgLoop. The webhook received an HTTP POST, the router matched it to a route, and the logger printed it. That’s the core loop.
Ready to connect it to real systems? Keep going.
Tier 2: Connect to GitHub
Section titled “Tier 2: Connect to GitHub”Add a real GitHub source so OrgLoop reacts to PR reviews, comments, and CI failures.
What you need
Section titled “What you need”One thing: a GitHub personal access token with repo scope.
Create one here: github.com/settings/tokens/new?scopes=repo
Set environment variables
Section titled “Set environment variables”export GITHUB_REPO="your-org/your-repo"export GITHUB_TOKEN="ghp_..."Add the GitHub connector
Section titled “Add the GitHub connector”Start fresh with a new project that includes both connectors:
orgloop initThis time, select github and webhook in the connector picker. The wizard detects your GITHUB_TOKEN and shows its status.
Verify your environment
Section titled “Verify your environment”orgloop envEnvironment Variables:
✓ GITHUB_REPO connectors/github.yaml ✓ GITHUB_TOKEN connectors/github.yaml → GitHub personal access token (repo scope) → https://github.com/settings/tokens/new?scopes=repo
2 of 2 variables set. 0 missing.Run it
Section titled “Run it”orgloop validateorgloop startOrgLoop now polls your GitHub repo every 5 minutes. When a PR review comes in or CI fails, you’ll see it in the console. Events from GitHub flow through the same routing system as the webhook — sources are interchangeable.
You now have a real integration. GitHub events are being polled, routed, and logged. Ready for the full autonomous engineering org? One more tier.
Tier 3: Full Autonomous Engineering Org
Section titled “Tier 3: Full Autonomous Engineering Org”This is the complete setup: GitHub, Linear, Claude Code, and OpenClaw working together as an autonomous engineering organization. Events from code reviews, tickets, and dev sessions flow to an AI agent that does the actual work.
What you need
Section titled “What you need”Four external services. Here’s what each one is and why OrgLoop uses it:
| Service | What it is | Why OrgLoop needs it | Get it |
|---|---|---|---|
| GitHub | Code hosting | OrgLoop polls for PR reviews, comments, and CI failures | You already have this from Tier 2 |
| Linear | Project management tool | OrgLoop polls for ticket state changes and comments | Create API key |
| Claude Code | Anthropic’s AI coding tool (CLI) | OrgLoop receives session completion hooks — it knows when a dev agent finishes work | Install Claude Code |
| OpenClaw | AI agent orchestrator | The “actor” — receives events and does the actual work (code review, triage, etc.) | OpenClaw setup guide |
Set environment variables
Section titled “Set environment variables”# GitHub (from Tier 2)export GITHUB_REPO="your-org/your-repo"export GITHUB_TOKEN="ghp_..."
# Linearexport LINEAR_TEAM_KEY="ENG"export LINEAR_API_KEY="lin_api_..."
# OpenClawexport OPENCLAW_WEBHOOK_TOKEN="your-token-here"Claude Code doesn’t need an env var — OrgLoop receives hooks directly from the Claude Code CLI via its post-exit hook mechanism.
Scaffold the full project
Section titled “Scaffold the full project”orgloop initSelect github, linear, openclaw, and claude-code in the connector picker. The wizard will also offer to install the Claude Code post-exit hook.
Tip: For new projects, you can use
@orgloop/connector-coding-agentinstead of@orgloop/connector-claude-code. The coding-agent connector is harness-agnostic — it works with Claude Code, Codex, OpenCode, Pi, and Pi-rust. Theclaude-codeconnector is a backward-compatible alias that delegates tocoding-agent.
cd my-orgnpm installThe scaffolded project includes pre-built routes for PR review, PR comment response, CI failure triage, Linear ticket routing, and Claude Code supervision. You can customize routes, transforms, and SOPs in the project files as needed.
Check your environment
Section titled “Check your environment”orgloop envThis shows every required variable, whether it’s set, and where to get it if it’s missing. Every missing variable includes a description and a direct link.
Run diagnostics
Section titled “Run diagnostics”orgloop doctorDoctor checks deeper than env — it verifies that services are reachable, credentials are valid, and connectors can connect.
Preview the plan
Section titled “Preview the plan”orgloop planOrgLoop Plan — my-org
Sources: + github (new — poll every 5m) + linear (new — poll every 5m) + claude-code (new — hook)
Actors: + openclaw-engineering-agent (new)
Routes: + github-pr-review (new) + github-ci-failure (new) + linear-to-engineering (new) + claude-code-to-supervisor (new)
Plan: 8 to add, 0 to change, 0 to remove.orgloop startEvents are now flowing. Sources poll on their configured intervals, routes match incoming events, transforms filter noise, and actors receive focused work with situational launch prompts.
For production, run as a supervised daemon:
orgloop start --daemon --supervisedThis runs in the background with automatic restart on crash.
Check status
Section titled “Check status”orgloop statusOrgLoop Runtime Status: running (PID 42831) Uptime: 2m 14s Control API: http://127.0.0.1:4800
Sources: 3 | Actors: 1 | Routes: 4
SOURCE TYPE HEALTH github poll healthy linear poll healthy claude-code hook —Use orgloop status for a detailed view with per-source health. The runtime also exposes a REST API at http://127.0.0.1:4800/api/ for programmatic monitoring — see Architecture for endpoints.
Next steps
Section titled “Next steps”- User Guide — day-to-day operations: logs, testing, customization
- What is OrgLoop? — deeper introduction to Organization as Code
- Five Primitives — understand Sources, Actors, Routes, Transforms, Loggers
- Projects — project structure and configuration
- Engineering Org example — full production setup walkthrough
- CLI Command Reference — all available commands