Skip to content

Getting Started

OrgLoop has three levels. You can stop at any one and have a working system.

TierTimeWhat you needWhat you get
1. See It Work~2 minNothingEvent routing with a webhook
2. Connect to GitHub~10 minGitHub tokenReal PR/CI events flowing through OrgLoop
3. Full Engineering Org~30 min4 servicesAutonomous AI org with supervision loop

Start at Tier 1. Every tier builds on the one before it.


A webhook source, a console logger, one route connecting them.

Terminal window
npm install -g @orgloop/cli

Verify:

Terminal window
orgloop version

Requires Node.js >= 22.

Terminal window
orgloop init

The wizard prompts for a project name and which connectors to include. Select webhook only — that’s all you need for this tier.

Terminal window
cd my-org
Terminal window
orgloop add module minimal

This adds a webhook source, a console logger, and a single route.

Terminal window
orgloop validate
orgloop start

OrgLoop is now running. The webhook source is listening on http://localhost:3000/webhook.

In another terminal:

Terminal window
curl -X POST http://localhost:3000/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-log

You 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.


Add a real GitHub source so OrgLoop reacts to PR reviews, comments, and CI failures.

One thing: a GitHub personal access token with repo scope.

Create one here: github.com/settings/tokens/new?scopes=repo

Terminal window
export GITHUB_REPO="your-org/your-repo"
export GITHUB_TOKEN="ghp_..."

Start fresh with a new project that includes both connectors:

Terminal window
orgloop init

This time, select github and webhook in the connector picker. The wizard detects your GITHUB_TOKEN and shows its status.

Terminal window
orgloop env
Environment 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.
Terminal window
orgloop validate
orgloop start

OrgLoop 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.

Check what’s running:

Terminal window
orgloop module list

You now have a real integration. GitHub events are being polled, routed, and logged. Ready for the full autonomous engineering org? One more tier.


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.

Four external services. Here’s what each one is and why OrgLoop uses it:

ServiceWhat it isWhy OrgLoop needs itGet it
GitHubCode hostingOrgLoop polls for PR reviews, comments, and CI failuresYou already have this from Tier 2
LinearProject management toolOrgLoop polls for ticket state changes and commentsCreate API key
Claude CodeAnthropic’s AI coding tool (CLI)OrgLoop receives session completion hooks — it knows when a dev agent finishes workInstall Claude Code
OpenClawAI agent orchestratorThe “actor” — receives events and does the actual work (code review, triage, etc.)OpenClaw setup guide
Terminal window
# GitHub (from Tier 2)
export GITHUB_REPO="your-org/your-repo"
export GITHUB_TOKEN="ghp_..."
# Linear
export LINEAR_TEAM_KEY="ENG"
export LINEAR_API_KEY="lin_api_..."
# OpenClaw
export 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.

Terminal window
orgloop init

Select github, linear, openclaw, and claude-code in the connector picker. The wizard will also offer to install the Claude Code post-exit hook.

Terminal window
cd my-org
Terminal window
orgloop add module engineering

This adds 5 pre-built routes: PR review, CI failure triage, Linear ticket routing, Claude Code supervision, and a feedback loop.

Terminal window
orgloop env

This 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.

Terminal window
orgloop doctor

Doctor checks deeper than env — it verifies that services are reachable, credentials are valid, and connectors can connect.

Terminal window
orgloop plan
OrgLoop 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.
Terminal window
orgloop start

Events 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.

Terminal window
orgloop status
OrgLoop Runtime
Status: running (PID 42831)
Uptime: 2m 14s
Control API: http://127.0.0.1:9801
Modules: 1
Module: my-org
State: running | Uptime: 2m 14s
Sources: 3 | Actors: 1 | Routes: 4
SOURCE TYPE HEALTH
github poll healthy
linear poll healthy
claude-code hook —

Use orgloop module list to see all loaded modules, or orgloop module status my-org for a detailed view with per-source health.