reoclo init
reoclo init sets up the current project to use Reoclo: it links the directory to an organization. Run it once per project after reoclo login.
reoclo login # if you haven't alreadyreoclo initThis will:
- Link the project to an organization by writing a
.reoclofile (see Working across organizations). Everyreoclocommand run anywhere in this directory tree then targets that org, concurrently with your other projects, with no global “active org” to switch. - Register the reoclo MCP server in
.mcp.json, when you pass--mcp. Agents connected to it read the reoclo guides from the server, so the project needs no copies of the agent skills (see Agent skills).
Choosing the organization
Section titled “Choosing the organization”With one organization, init binds it. In an interactive terminal with more than one, init shows a picker. The picker has no default: the organization you logged in under is not special. In a script or an automated session with more than one organization, init stops and asks for the organization. Pass it explicitly:
reoclo init --org acmeThe org must be one you authorized during reoclo login.
Initializing under a specific profile
Section titled “Initializing under a specific profile”If you run init under a non-active profile (reoclo --profile staging init, or with $REOCLO_PROFILE set), the org is resolved against that profile’s backend, and init pins the profile in .reoclo too:
// .reoclo written by `reoclo --profile staging init`{ "profile": "staging", "org": "platform" }This matters because an org slug is only meaningful relative to its backend: the same slug (for example, platform) can exist in both staging and production. Pinning the profile makes the binding reproduce the exact org you selected. Without it, the slug would re-resolve against your active profile (a different backend) later. A plain init on your active profile writes just { "org": "<slug>" }, so the project floats with whatever profile is active.
Options
Section titled “Options”| Flag | Effect |
|---|---|
--org <slug> | Organization to link (must be in your OAuth grant). Skips the picker. |
--mcp | Also register the reoclo MCP server in .mcp.json (merges; never clobbers existing servers). |
--force | Overwrite an existing .reoclo without asking. |
-y, --yes | Assume “yes” for prompts (for non-interactive use). |
--org is the global org flag. It works the same here as on any command.
Scripts written for CLI 0.93 and earlier may still pass --skills, --no-skills, --harness, --global or --project. CLI 0.94 accepts them and installs nothing. All of them except --no-skills print a pointer to reoclo skills install.
What it writes
Section titled “What it writes”| Path | Contents |
|---|---|
.reoclo | { "org": "<slug>" }: the project’s org binding (plus "profile": "<name>" when initialized under a non-active profile, as described above). Commit it so teammates inherit the binding. |
.mcp.json | (with --mcp only) a reoclo entry under mcpServers running reoclo mcp. |
A .reoclo written by an older init may carry a skills block. The CLI ignores it, and the next init drops it.
Agent skills
Section titled “Agent skills”init does not install the reoclo agent skills. The reoclo MCP server serves them as guides: list_guides names them, get_guide returns one guide or one section, and each guide is also an MCP prompt. An agent connected to the server always reads the guides that ship with it, so no project holds a copy to keep current. See MCP server.
For an agent that does not use the MCP server, the reoclo skills subcommands install copies, without writing .reoclo:
| Command | Effect |
|---|---|
reoclo skills install (alias reoclo skills init) | Install skills into this project, or --global for ~/.agents/skills, with harness and scope prompts. |
reoclo skills update | Refresh the skills already installed under .agents/skills/, or --global, to the latest in place. It never adds new skills, so it only touches what you already have. |
reoclo skills list | List the available skills and mark which are already installed. |
skills update reads what is on disk, so it works even without a .reoclo file. A skill that was removed upstream is reported and left untouched.
CI / scripted use
Section titled “CI / scripted use”reoclo init --org acme --yesinit requires authentication. In CI, set REOCLO_AUTOMATION_KEY or run after reoclo login.
See also
Section titled “See also”- Working across organizations: the
.reoclobinding and org precedence. reoclo mcp: the MCP server--mcpregisters.