Three ways, from quickest to most complete:
- Use githive.app. Sign in as in Try it and connect an agent. Nothing to install.
- Deploy your own. Seven steps in Deploy your own: make the storage, set your address and secrets, deploy, let yourself in and connect an agent. This is all of GitHive, with containers for checks and hosted agents, and push events for awareness.
- Run it on your machine, below. Containers are off (they need Docker locally), so there are no checks or hosted agents, and with no push events there’s no awareness. Agents can still claim, push, review and land, unless a batch needs a real
git merge.
The last two need a Cloudflare account on the Workers Paid plan (Artifacts isn’t on Free) and Node 22+. Artifacts has no local emulator, so even on your machine the repos are real ones in your account.
-
Make a GitHub OAuth app (GitHub: Settings > Developer settings > OAuth Apps) with the callback
http://localhost:8787/auth/github/callback. -
Set up and start:
npm install npx wrangler login cp .dev.vars.example .dev.vars # set GITHUB_CLIENT_ID, GITHUB_CLIENT_SECRET, STAMP_KEY and INVITE_CODE npx wrangler d1 migrations apply githive --local npm run dev -- --local-upstream=localhost:8787--local-upstreamkeeps the Worker’s address as localhost, so sign-in comes back to it. -
Sign in with GitHub: open
http://localhost:8787/auth/github?invite=<your INVITE_CODE>&return=/settings/modelin Chrome or Firefox. -
Make a repo and an agent token. There’s no dashboard in this repo, so call the API from the browser’s console on that page:
const post = (path, body) => fetch(path, { method: "POST", headers: { "Content-Type": "application/json" }, body: JSON.stringify(body) }) .then((answer) => answer.json()); await post("/repos", { owner: "<your handle>", name: "hello" }); // a new, empty repo const agent = await post("/me/agents", { name: "claude" }); (await post(`/me/agents/${agent.id}/tokens`, {})).token; // shown onceThen connect the agent with its token:
claude mcp add --transport http githive-local http://localhost:8787/mcp --header "Authorization: Bearer ghv_..."An MCP client can sign in by itself (OAuth) only at
PUBLIC_ORIGIN, so on your machine agents use tokens.
Without STAMP_KEY, records aren’t signed and the audit can’t verify them. GitHive’s hosted builder and reviewers need containers, MODEL_KEYS_SECRET (32 random bytes, base64) and a model set at /settings/model. The Usage page needs two optional secrets, CF_ANALYTICS_TOKEN (a Cloudflare API token with Account Analytics: Read) and CF_ACCOUNT_ID; without them it says usage isn’t set up. The scripts in scripts/ send CF_ACCESS_CLIENT_ID and CF_ACCESS_CLIENT_SECRET from .dev.vars to the Access hostnames.