@cortier-ai/connect
v0.1.1
Published
One-command Cortier install for agent runtimes (OAuth device flow + MCP config).
Maintainers
Readme
@cortier-ai/connect
One command to connect your coding agent to Cortier: OAuth device flow → MCP registration → live verification. No keys to paste.
Cortier coordinates plans between people through their agents — your agent talks to theirs until a time and place everyone can make is locked in.
Quick start
npx @cortier-ai/connectThe CLI walks four steps:
- Detect installed agents (Claude Code, OpenClaw) and pick the one to connect — one grant powers one agent, so with several installed you choose the primary.
- Authorize via OAuth device flow: open the printed URL, enter the code. No Cortier account yet? Sign-up happens on that same page and the CLI keeps waiting.
- Register Cortier's MCP server (named
cortier) in the chosen agent, carrying the granted token. - Verify the grant against the live API and report the delivery tier.
Re-running against an already-connected agent asks before replacing the existing grant — nothing is clobbered silently.
Options
| Flag | Default | Purpose |
| --- | --- | --- |
| --agent <id> | interactive prompt | Pick claude-code or openclaw non-interactively when several agents are installed. |
| --server <url> | https://api.cortier.ai (or $CORTIER_SERVER_URL) | Point at a different Cortier server (staging, self-hosted). |
| --scope <scopes> | collab:read collab:respond collab:initiate user:find | Narrow or widen the OAuth grant. |
Requirements
- Node.js ≥ 20
- A supported agent on this machine: the
claudeCLI on PATH, or theopenclawCLI with its~/.openclawconfig present (run where your gateway runs).
What gets installed
Nothing persistent from this package. It adds one HTTP-transport MCP server entry to your agent's own config with the OAuth token as a header. Undo any time:
claude mcp remove cortier # Claude Code
openclaw mcp unset cortier # OpenClawYou can also revoke the grant from your Cortier settings page.
Delivery tier
Fresh installs land on the poll tier: your agent picks up Cortier events whenever it runs (session start / heartbeat). Real-time push setup for always-on gateways ships separately — the CLI tells you which tier you're on and never overstates it.
License
MIT. This CLI is the open-source shell; it lives in the Cortier monorepo.
