Frontend API client
Use the repo-owned client when you are consuming CortexPilot from a clone or vendored workspace and want convenience helpers for command-tower overview, runs, Workflow Cases, approvals, and role-config preview reads.
CortexPilot is not a full SDK platform today, but it does already expose a useful builder surface across three layers: a thin frontend API client, contract-facing route/type bindings, and a shared presentation substrate.
If your team already understands the workflow and protocol boundary and now wants the shortest repo-owned package path, this page is the right next click.
Current package boundary: the package names referenced here are still private workspace packages. External teams should treat the current adoption path as clone/workspace reuse or vendor copy until a real publish path exists.
| Need | Open first | Why |
|---|---|---|
| Convenience client | @cortexpilot/frontend-api-client |
Use it when you are working inside a clone or shared workspace copy and want overview, runs, Workflow Cases, approvals, and bootstrap reads through one thin helper layer. |
| Route/type boundary | @cortexpilot/frontend-api-contract |
Use it when your real need is generated contract-facing types without backend imports inside the same repo or a vendored package copy. |
| Shared presentation | @cortexpilot/frontend-shared |
Use it when you need repo-owned copy, locale, and status-presentation substrate for dashboard, desktop, and future web consumers inside the same workspace story. |
| Protocol before packages | Read-only MCP quickstart | Use MCP first when your team still needs the truth boundary before it decides which package layer to import. |
Use the repo-owned client when you are consuming CortexPilot from a clone or vendored workspace and want convenience helpers for command-tower overview, runs, Workflow Cases, approvals, and role-config preview reads.
Use the contract package when you are already inside the same repo or a vendored workspace copy and want route/query/type boundaries without importing backend modules into your frontend surface.
Use the shared package when you are reusing CortexPilot from a clone or vendored workspace and want brand copy, locale, and status presentation to stay aligned across dashboard, desktop, and future web consumers.
These are real builder entrypoints, but they do not turn CortexPilot into a hosted SDK platform, marketplace artifact, or write-capable MCP product.
The current package names are still private workspace packages. Until a real publish happens, the truthful external path is clone/workspace reuse or vendor copy.
If you want the shortest runnable builder path inside this repo, start with the repo-owned control-plane starter example instead of rebuilding the bootstrap story from scratch.
node packages/frontend-api-client/examples/control_plane_starter.local.mjs \
--base-url http://127.0.0.1:10000 \
--role WORKER \
--mutation-role TECH_LEAD \
--preview-provider cliproxyapi \
--preview-model gpt-5.4
This starter remains preview-first by default. It demonstrates overview + agents + contracts + role-config preview without claiming hosted operator accounts, write-capable MCP, or a full SDK platform.
--apply on the starter stays a trusted repo-operator flow for role-default changes.