CoCalc feature

CLI and API

The CLI your agents use, and your scripts can too.

Inside every CoCalc.ai project, agents use the CoCalc CLI to work with notebooks, terminals, the shared browser and other agents. On your own computer, install the CLI to move files, run notebooks and start a Codex turn in a project.

Install the CLI on your own computer

On Linux (x64 or ARM64, with glibc) or macOS (Apple silicon or Intel), run this in a terminal:

curl -fsSL https://cocalc.ai/cli/install.sh | sh

On Windows, install it inside WSL2.

cocalc project browser connect opens a Chrome browser on your computer that agents in a project can drive. Anything in the project then fully controls that browser, including opening files on your computer and addresses on your local network, so connect only projects you trust.

cocalc project build <path> builds a saved LaTeX, Knitr, R Markdown or Quarto document in a project.

Use cases

Use the HTTP API for targeted integrations with external services. Run computations against an authorized project and save the results as project files your team can reopen and review. Check the reference exposed by your deployment for available routes and permissions.

  • Call documented endpoints available on your deployment
  • Use scoped credentials and the permissions required by each operation
  • Save result artifacts independently of returned command output

Start automating

Agents use the CLI in their projects. Use it, or the HTTP API, from your own scripts. If your integration depends on provisioning, scheduling, or deployment support, talk with us.

Terms

Your use of CoCalc.ai through the CLI is covered by the CoCalc.ai Terms of Service, including their API Terms.

Start using CoCalc