Browse the docs

Hosting the portal

The portal on your own URL, behind Sign in with GitHub, redeploying itself.

The portal runs in two places, and it is the same code in both.

roster portal                                  # on your machine, http://localhost:4300
roster portal deploy --domain roster.acme.com  # on the web, on Cloudflare Workers

Both read the org from GitHub, so neither needs the repos checked out to show it. Both act on GitHub as the person using them. The hosted one adds a sign-in in front, and leaves out the few screens that need a checkout.

What you get, and what stays on your machine

Hosted, you get everything you use day to day: Home, the trackers, threads and replies, pull requests (approve and merge), Runs, the brains, prompts, the org files and their editors, and the docs.

These stay on your machine, and the hosted page says so where they would be:

  • Setup: standing up an org, the GitHub Apps, the agent credential
  • Hiring and retiring
  • Doctor and the Health checklist, which read the checkout and the org's secrets

They create repositories and Apps and write secrets, which is the most privileged thing roster does. That is not something to put behind a public URL.

Who can get in

Only the people listed under humans: in org.yaml, signed in with their own GitHub account. That includes anyone marked view_only, who can read everything and wake nobody; see org.yaml.

  • Sign-in is GitHub's own OAuth flow, through an OAuth App your org creates for the portal. The token it hands back is that person's, scoped repo, notifications and workflow, the same kind gh holds on their machine.
  • Everything they do is as themselves. A reply is theirs, a merge is theirs, and what they can read is what GitHub lets them read.
  • Somebody who signs in and is not one of the humans, or cannot read the ops repo, is turned away and their token revoked. Somebody removed from humans: stops getting in within a few minutes.
  • A sign-in lasts fourteen days. Signing out revokes the token on GitHub.

See security for what is held where.

Talking to your staff from Claude

The hosted portal is also an MCP server, at /mcp. Add it to Claude as a custom connector with the URL https://roster.acme.com/mcp. Claude sends you to sign in with GitHub, the same check against humans: as the portal, and then to a page that says what it will be able to do, with Allow.

Then you can ask Claude things like "what needs me today?", "what did the CTO do?" or "tell the CMO to draft this week's post". The tools:

Tool Does
brief Each staff member's report, what needs you (with each decision's default), your requests, what was closed today
read_thread One issue or pull request with every reply
reply A reply as you, optionally closing the issue
ask_staff A new issue on a staff member's tracker with their mention, which starts them
ask_for_report Asks a staff member to bring their report up to date now
list_issues Open issues and pull requests, by staff member, repo, kind or label
run Starts a staff member's session now, or one of their routines
runs Recent runs: how each went, how long, what it cost, and its log
read_brain STATE.md, CHARTER.md, memory/INDEX.md, log/decisions.md or staff.yaml
read_pr A pull request to review: checks, conflicts, review state, commits and the diff
approve An approving review, as you
merge Merges a pull request, only when you have told it to
wait Waits up to ten minutes for a staff member's reply on a thread, or for their run to finish

The Connectors screen has the line to paste for Claude Code, Codex and Claude, under Connect your own agent. From Claude Code:

claude mcp add --transport http roster-acme https://roster.acme.com/mcp

then /mcp to sign in. With more than one Roster, give each its own name (roster-acme, roster-globex): an agent keeps each server's tools apart by that name.

So with half an hour spare you can work through the brief with your agent: answer the asks, read and merge the pull requests, ask for the next thing and wait for the answer, without waiting for the daily run.

It merges only when you tell it to: the tool asks for your words, and Claude Code asks you before the call. It cannot hire, retire or change the org: those stay local. Everything it posts is posted as you.

Nothing to set up beyond the portal itself: the connector signs in through the same OAuth App, on the same callback URL (/auth/callback).

Deploying it

You need a Cloudflare account with the domain on it, and wrangler signed in to it. If your login can see more than one account, pass --account <id> with the one that has the domain, and it is pinned in the config so a later deploy cannot land anywhere else:

npx wrangler login
roster portal deploy --domain roster.acme.com           # says what it will do
roster portal deploy --domain roster.acme.com --apply   # does it

The first time, it stops for the one thing only you can do: create the OAuth App. It prints the link and the three fields:

Field Value
Application name <org> roster
Homepage URL https://roster.acme.com
Authorization callback URL https://roster.acme.com/auth/callback

Register it, generate a client secret, and paste the two values when asked. The secret is not shown as you type.

Then it deploys the Worker, stores the App's secret and a fresh session key as Worker secrets, and commits two files to the ops repo:

  • portal/wrangler.jsonc: the Worker's name, the domain, the org. Nothing secret.
  • .github/workflows/portal.yaml: redeploys it.

To show your own icon on the sign-in page and in the portal, commit a square image as portal/icon.png (or .svg, .jpg, .webp). The push redeploys the portal with it.

Keeping it up to date

The workflow redeploys the portal when its config changes, every morning, and when you run it by hand. Each deploy uses the newest roster, so updates arrive by themselves.

It needs two secrets on the ops repo:

Secret Where from
CLOUDFLARE_API_TOKEN Cloudflare dashboard → API Tokens → the Edit Cloudflare Workers template
CLOUDFLARE_ACCOUNT_ID the Workers page of the dashboard

Without them the portal still runs; it only stops updating itself.

The portal reads GitHub fresh as you use it, so there is nothing to sync. It asks whether anything has moved every few seconds, and an answer of "no" costs nothing against GitHub's hourly limit.

The cache

The portal keeps what it has read from GitHub: file contents by their hash, each commit's file dates, and finished runs' costs. All of it is immutable, so it is never stale.

On your machine it is ~/.cache/roster. On Cloudflare it is the edge cache, which needs no setup. To keep it everywhere rather than per data centre, bind a KV namespace as CACHE in portal/wrangler.jsonc.

Signed-in connectors

A connector that signs in with a browser, like Notion, keeps its sign-in on the hosted portal, which needs somewhere durable to keep it: a KV namespace bound as CONNECTORS. roster portal deploy finds one by name, or creates it, on any deploy that does not have it bound yet, the morning one included; a deploy by hand also writes it into portal/wrangler.jsonc. Without it, connectors that take a key still work, and the ones that sign in are not offered.

A run collects a fresh access token from /connectors/token, proving with GitHub's OIDC token that it is a run of this org's session.yaml.

On your machine

roster portal binds to 127.0.0.1 and acts as whoever gh is signed in as. To open an org you have never cloned:

roster portal --org acme

--host overrides the bind address and prints a warning. The local server has no sign-in, so use the hosted portal instead of exposing it.

Edit this page on GitHub