Setup
Create an org-os instance: clone the framework once, generate your instance from a config file, check it, publish its identity.
org-os is a generator. You keep a checkout of the framework (this repository) and run one command that writes a new, separate instance into a sibling directory, with your identity, a git history of its own and a lineage stamp. You do not fork the framework and edit it in place.
An AI agent can run all of this for you: see Adopt org-os with an AI agent. Everything below is non-interactive.
The supported route is the clone. The walkup path — fork the repository, run
npm run setup, answer a guided interview in place — is not a working path for a newcomer. A clean-room test on 2026-08-21 found it broken in seven blocker-level ways (among them: it cannot complete outside an interactive terminal, and in a fork it leaves the maintainer’s own identity and data in place while both validation commands report a pass). It has not been re-tested since. See Setup paths.Honest scope. Every instance that exists today is run by the framework’s maintainer. The path below is tested on every change (
tests/clone-framework-health.test.mjsclones an instance and asks the doctor to judge it), but it has not yet been walked by an operator outside the project. If something here does not work, that is a bug in the framework: open an issue.
Prerequisites
- Node.js 22.13 or later and npm 10.9.2 or later (the
enginesfield ofpackage.json; the Hub’s private store needs Node 22.13) - Git
Step 1: Get the framework
git clone https://github.com/regen-coordination/org-os-template.git
cd org-os-template
npm ci
npm ci --prefix packages/admin
Use npm ci, which installs exactly what the lockfiles say and changes no file. (In 0.7.5 npm install also rewrote the header of the root package-lock.json, whose name and engines were out of date; the lockfile is corrected after 0.7.5.) The second install is for packages/admin, which has its own dependencies. The doctor (Step 5) runs validate:data and validate:governance from this checkout, and both load the admin’s schemas and modules; without that install each is reported as validator-did-not-run. It is also what the Admin app needs.
The clone reads only committed files of the framework checkout (it lists HEAD), so an uncommitted local change in your checkout never ends up in a new instance.
Step 2: Write a config file
Create my-org.yaml (anywhere; the example puts it in the framework directory). org.name and org.type are required; the rest is optional.
org:
name: "harbor-bakery-os"
tagline: "Operations for a worker-owned bakery"
type: "Cooperative" # free text, e.g. Cooperative, DAO, LocalNode, Hub, Project; "Hub" sets is_hub
short_description: "The shared operating system of Harbor Bakery Co-op."
emoji: "🥖"
license: "MIT"
# base_url: "harbor.example.org" # where .well-known/ will be served; defaults to <slug>.example.org
# language: "pt-BR" # see "Other languages" below
operator:
name: "Your Name"
email: "you@example.org"
network:
name: "regen-coordination" # omit if standalone
upstream_url: "https://github.com/regen-coordination/org-os-template.git"
packages:
operations: true # start with this one
skills: # omit to keep every skill
- bootstrap-interviewer
- org-os-init
- heartbeat-monitor
- knowledge-curator
A complete example is tests/fixtures/instance-config.yaml. Notes:
network.upstream_urlis honoured only when it is the canonical framework repository; anything else is replaced and the substitution is logged.packages:andskills:decide whichpackages/<id>/andskills/<id>/directories the new instance carries. Packages are described in Packages.- A
kms:block turns the instance into a knowledge system; see Setup paths.
Step 3: Generate the instance
npm run clone:framework -- --target ../harbor-bakery-os --config my-org.yaml
| Flag | Effect |
|---|---|
--target <dir> | where the instance is written (required; must be empty) |
--config <file.yaml> | the config above (required; there is no interactive mode) |
--dry | inspect the stages without writing (see the header of scripts/clone-framework.mjs) |
--force | allow a target that is not empty |
--no-git | skip git init and the initial commit |
--commit-unverified | commit even when the framework checkout is not a git repository |
The stages it prints: copy the committed framework files, strip the framework-only registries and generated .well-known/ files, reset the placeholder identity files from templates/scaffold/, materialise the packages and skills you chose, copy the standards generator (the pure core of packages/admin/lib/standards/, without its two ajv modules) into the instance’s scripts/lib/, write federation.yaml with your identity and the lineage stamp, render .well-known/dao.json from your config, render README.md, GETTING-STARTED.md, CLAUDE.md and AGENTS.md, then git init and one initial commit.
Step 4: Install and validate
cd ../harbor-bakery-os
npm ci
npm run validate:schemas
npm run validate:structure
Again npm ci, not npm install: the clone renames the instance’s package.json but copies the framework’s package-lock.json as it is, so npm install rewrites the lockfile’s header to the new name, and the doctor (Step 5) then reports working-tree-dirty. On a fresh instance validate:schemas passes with six warnings, one for each EIP-4824 file not yet generated (members.json, projects.json, finances.json, activities.json, proposals.json, contracts.json); its hint says to run generate:schemas, which writes nothing until you set a daoURI (below). validate:structure passes with seven warnings about optional files.
The clone ships .well-known/ as *.json.template files plus the dao.json it rendered from your config, so it cannot publish the framework’s identity as yours. A new instance publishes nothing more until you decide to:
federation.yamlhas noidentity.daoURI, andnpm run generate:schemasbuilds nothing without one, because every id it writes is built from it. On a fresh instance it saysnothing generated: identity.daoURI is not setand warns that the rendereddao.jsonis not refreshed; that is expected.validate:structurerequires.well-known/dao.json,members.jsonandprojects.jsononly once adaoURIis set (scripts/validate-structure.mjs).- To publish, set
identity.daoURIto thehttpsURL wheredao.jsonwill be served (see the EIP-4824 guide), and say what is public indata/visibility.yaml: a collection it does not list ismembers, so its records are not written (see Data model). Then runnpm run generate:schemasand commit what it wrote (the doctor otherwise reportsworking-tree-dirty). Re-run it after you changedata/*.yamlorfederation.yaml.
In an instance, generate:schemas runs the copy of the generator in scripts/lib/standards/, which has no schema check (no ajv). To check the published files against their schemas, run the framework’s validator against the instance: node scripts/validate-identity.mjs ../harbor-bakery-os from the framework checkout.
Step 5: Check it with the doctor
From the framework directory:
npm run doctor -- --dir ../harbor-bakery-os
A fresh instance should report no blockers except git-remote-absent, which is expected until you give it a repository; because of it the doctor exits with code 1. The warnings a fresh instance shows are normal on day one: never-synced, migrations-dir-missing (the first doctor sync creates the folder), structure-warnings and schemas-warnings (the ones from Step 4), memory-absent and no-sync-receipts. A working-tree-dirty warning means something changed the instance after the clone’s commit; git status in the instance names it. The doctor runs four validators from the framework checkout against the instance: validate:structure, validate:schemas, validate:data and validate:governance (packages/instance-doctor/src/snapshot.mjs); the last two report validator-did-not-run if you skipped the admin install in Step 1. Any other blocker is a framework bug.
Create a repository for the instance and connect it:
cd ../harbor-bakery-os
git remote add origin <your-instance-repo-url>
git remote add upstream https://github.com/regen-coordination/org-os-template.git
git push -u origin HEAD
Step 6: Fill in what the clone could not
The clone writes structure, not substance. Edit:
IDENTITY.md,SOUL.md,MASTERPLAN.mdandUSER.md: who the organisation is and what it is forfederation.yaml:peers, and anything the config did not coverdata/members.yaml: it is seeded with the operator; add the team (id,name,role,joined)
Then open an agent session in the instance and run the bootstrap-interviewer skill, which walks members, projects, channels and data sources and writes the files as you answer. That pass is Phase 1 of the instance’s BOOTSTRAP.md. After any change to data/*.yaml, run npm run generate:schemas again.
Step 7: Open it in the Hub
The Hub (packages/admin) is a web app for the instance: its records, rules, proposals and boards, and the workspace (pages, collections, tasks, comments). It runs from the framework checkout, which is why Step 1 installs packages/admin; the instance itself does not carry it.
npm run open # the launcher: http://localhost:4679/launch
npm run admin -- --repo ../harbor-bakery-os # or the instance's Hub directly: http://localhost:4680
The launcher builds the Hub, then serves one page where you open an instance by its folder or a git address, create a new one (it runs clone:framework for you, so it can stand in for Steps 2 and 3), adopt a repository that is not org-os, or start joining a network. Each instance you open gets its own Hub on the next free port from 4680, and the launcher stops them when you stop it. It never pushes. What it writes, and where, is in Opening an instance.
On your own machine you act as the member whose handles.git (or email) in data/members.yaml matches git config user.email. An address no member holds can read but not write. Both commands bind 127.0.0.1 only. See Admin app.
Host a Hub
To give members a Hub they reach in a browser, run the image in deploy/hub/. This section is a summary; the runbook is deploy/hub/RAILWAY.md, and every setting is in deploy/hub/env.example.
- Build.
docker build -f deploy/hub/Dockerfile --build-arg NODE_BASE_DIGEST=<digest> -t org-os-hub .from the framework root. The digest of anode:22-bookworm-slimat Node 22.13 or later is required; there is no default. - One volume, at
/srv. The instance’s clone (/srv/instance), the private store (ORG_OS_PRIVATE_DIR,/srv/private), sealed backups (ORG_OS_BACKUP_DIR,/srv/backups) and the Hub’s state (ORG_OS_ADMIN_HOME,/srv/state). The image runs as uid 10001, not root; give it those folders once. - Start.
hub init <the instance's git address>once (with a read-only deploy key thatGIT_SSH_COMMANDnames), thenhub serve, which runs every start check (hub check) first.GET /api/healthanswers{ "ok": true }. - Settings that matter.
ORG_OS_PUBLIC_ORIGIN: the Hub’s ownhttps://address. Required; the Hub answers no other host.ORG_OS_TRUST_PROXY=onbehind a proxy that setsX-Real-IP. Check on staging that it does.HOUSE_INSTANCE_WRITES:offby default when hosted. The Hub then writes nothing to its instance and follows its remote, fast-forward only, everyORG_OS_REFRESH_EVERY(15m). In 0.7.5 a hosted Hub refuses to start withon, because known write defects are still listed (BEFORE_PILOT_OPENinpackages/admin/server/hosted/instance-writes.ts). KeepORG_OS_PUSH=offwith a read-only key.ORG_OS_REMOTE_PRIVATE=confirmedwhen the Hub cannot ask the forge whether the instance’s remote is private. A hosted Hub refuses to start while the remote is public and holds what only members may read.ORG_OS_BACKUP_PUBLIC_KEY_FILE: a maintainer’s public key. The Hub seals a backup to it every 6 hours and never holds what opens it (npm --prefix packages/admin run house:backup:keypair -- <private key file> <public key file>makes the pair, on a maintainer’s machine).
- Sign-in. By emailed link: set all of
HOUSE_EMAIL_PEPPER,HOUSE_SESSION_PRIVATE_JWK(npm --prefix packages/admin run -s house:session-key -- new),SESSION_COOKIE_NAME,RESEND_API_KEYandMAIL_FROM(SESSION_COOKIE_DOMAINis optional). With none set the Hub starts without it; with some set it refuses and names what is missing. With a Bluesky or Certified account (0.7.5, identity only, nothing is written to anyone’s account): setHOUSE_ATPROTO_PRIVATE_JWKon the address the Hub keeps; without it that sign-in is not offered. People read beyond the public only once they hold a Role, loaded withnpm --prefix packages/admin run -s house:roles -- load(a JSON document on stdin). - Upgrading to 0.7.5. Back up the private store before 0.7.5 first starts: it moves the store to schema 4, and an older org-os refuses a schema-4 store, so going back past 0.7.5 means restoring that backup. The earlier step to 0.7 (schema 3) carries the same warning. See
CHANGELOG.md, sections [0.7.5] and [0.7.0]. - What a hosted Hub does not do. The launcher refuses to run in hosted mode. The knowledge commons’ pages need
packages/org-os-kms, which the image does not carry. The federation write routes (asking to join, publishing link records) answer 403 when hosted.
Publishing
The clone carries two things that publish: .github/workflows/generate-schemas.yml, which regenerates .well-known/ on a push that touches data/**, content/meetings/**, content/projects/** or federation.yaml, daily, and on manual dispatch, and commits the result back, and scripts/deploy-pages.mjs, which builds the instance’s webapps from packages/ into a static _site/ directory. It does not carry a workflow that deploys a site, and no Quartz site. Serving .well-known/ at the base_url you configured is yours to arrange (any static host works); the daoURI in .well-known/dao.json should resolve once you do.
Other languages
Set org.language to a BCP-47 tag and everything the clone writes comes out in that language. pt-BR ships today. The kms: block and the language rules are described in Setup paths.
Troubleshooting
- Node version.
node --versionshould be 22.13 or later. Target not empty. The target directory must be empty; use a new directory (or--force, knowing what it overwrites).validate:structurefails after you set adaoURI. It now requires.well-known/dao.json,members.jsonandprojects.json; runnpm run generate:schemas.- Schema errors. Check the YAML in
data/is valid, thennpm run validate:schemas. - Doctor reports a blocker other than
git-remote-absent. Runnpm run doctor -- --dir <instance> --jsonand report it with the check code.
Next steps
- Operator guide: the daily and weekly rhythm
- Packages: what each package adds
- EIP-4824 guide: the published identity files
- Federation: connecting instances
- Admin app and Opening an instance: the Hub
- Keeping an instance current: from the framework checkout,
npm run doctor -- sync --dir ../harbor-bakery-os --dry-runprints the plan; without--dry-runit snapshots the instance’s tracked and untracked files, copies in the sync machinery and the standards generator, overlays framework-owned files, runs the framework’s migrations against the instance, regenerates schemas and writes a receipt undermemory/reports/. When the instance has nodata/visibility.yamland its.well-known/holds files an earlier generator wrote, it also writes one declaring public what those files already publish, as a commit of its own for the organisation to confirm, edit or revert (declare-visibilityinpackages/instance-doctor/src/run-sync.mjs).
Issues and questions: https://github.com/regen-coordination/org-os-template/issues