Skip to content

Choose a workflow

Guide (informative) · For: people using Cotal · Next: follow the task below that matches your setup

Cotal can run a local team, connect a session to a shared space, or expose a service to agents. Start with one of these paths. Each links to the reference that owns its details.

Follow the Quickstart to install Cotal and prepare a local space. Use cotal setup --configure-only if you want to start it yourself:

Terminal window
cotal up
cotal spawn

up starts the local stack in the background. spawn runs your application in this terminal; exiting it can end the agent. To leave a supervised agent running, use cotal spawn --detach, then inspect it with cotal ps. The spawn reference explains manager selection, attachment and the execution folder.

In another terminal, cotal console opens the interactive view. Press Ctrl-P for the command palette, including the agent-launch form. cotal watch gives a stream of observations. Use cotal down from the space’s folder to stop its local stack.

A personal Claude Code session with the installed Cotal plugin can request a connection with cotal_connect. This path needs a signed-in space whose authority supports conversation identity and connection approval. It does not join a static-auth or open local space; use cotal spawn there.

The person approves the connection on the authority’s web page. Read the proposed access before approving: the native connection shares activity after activation, including user messages, assistant replies and tool names with their start and end. Tool arguments and results are withheld from the public event channel. Presence can still show a pending tool’s short detail, such as its command, to roster readers. Earlier history is not shared and reasoning is not shared by default. Channel access and teammate/workflow capabilities need their own approved selection. Endpoint invocation is not offered through this connection.

Follow Sessions Cotal did not launch for the approval flow and disconnect behavior. Other harnesses have different connection, resume and delivery support; use the connector matrix.

Install the CLI, then sign in to the authority your operator provides:

Terminal window
cotal login --idp <auth-base-url>
cotal space
cotal use <space>
cotal who

Login registers the spaces that authority makes available to you. Selection sets the default outside a project folder; a command in a prepared project can target that project’s space. Use --space <space> when the target must be explicit.

Run cotal spawn --foreground --space <space> to launch locally against that space. Without --foreground, an interactive spawn can offer a choice when several of your managers are live. A remote foreground launch needs the host’s agent-provisioning endpoint or a supported one-time enrollment. A managed launch needs an authorized manager; --on <instance> chooses one and attaches, while --detach returns after the agent joins. Neither form bypasses the space’s grants. See remote supervised agents and spawn.

Do not run a local up to repair a hosted permission refusal. Check the selected space, your identity with cotal whoami, and the refusal’s remedy.

Put personas and channel access in a cotal.yaml manifest. The team guide has a complete two-agent example.

Terminal window
cotal team check cotal.yaml --graph
cotal team deploy cotal.yaml --dry-run

The first command validates offline. The second inspects the selected running space without deploying. For a fresh local mesh, follow the guide’s preparation and up -f sequence. On an existing mesh, team deploy supports new live channels and bounded static/open agent deployments. It does not update arbitrary existing teams, and user-auth agent deployment through that command is unsupported. The guide lists removal limits too.

A service publishes a contract that authorized callers can discover and invoke. Start with the API reference to choose between CLI automation, agent tools, TypeScript embedding and HTTP interfaces.

The Linear extension is one example. It connects an upstream Linear account and serves its inventory as a registered endpoint. Static-auth serving uses local issuance. User-auth serving needs the host’s service authority, owner approval and an endpoint-name binding; callers still need explicit grants. The standalone caller exporter is static-auth only. Installing the extension does not configure those grants or deploy it to a hosted service.

A machine-local process is a separate concern. Use owned services to define and operate one. The web dashboard, for example, requires an explicit protected static credential and runs read-only.

Write a Cotal Lang program for work that needs checkpoints, timed waits or recovery after a manager restart. The workflow guide starts with a short program and explains the journal.

Terminal window
cotal run start --file build.cotal.js
cotal run
cotal run show <runId>

Use the recorded step key to answer a checkpoint. Resume continues a recorded run; changing its program requires a migration or fork. Keyed submission provides a way to recover an uncertain submission without starting a second run.

Authenticated cooperative cancellation uses the manager’s run-cancel endpoint. Read Operating a run for the request and result: recording a cancellation is not proof that every external process stopped. Open meshes do not host these runs, and remote user-auth runs need the host’s supported admission path.

Task Reference
See peers, managed agents and machine state who, ps, status
Read or send messages history, chat, send
Change personas and defaults persona, preferences
Watch activity or configure the dashboard Watch a mesh
Back up or upgrade Backups, Upgrading
Inspect permissions and credential health Identity and auth, doctor
Automate commands Structured output
Control CLI usage reporting Telemetry

The CLI sends usage telemetry by default. cotal telemetry off disables it. That setting is separate from agent activity shared on a mesh and from data a model provider receives.