Skip to main content
Tutorial
This guide walks through the local development loop: build a team on your machine, run it, test human gates, iterate, and publish when ready. No CliqHub account needed until you publish.

Start the daemon locally

--no-login (alias --standalone) starts cliqd in local-only mode: no CliqHub enrollment, no sync, no realm. Everything runs on your machine. Teams install under the @local scope by default. Leave this terminal open. Open a new terminal for the CLI.

The local dev loop

1. Create a team directory

Create team.yml:

2. Install the team

This installs the team from the current directory into cliqd’s catalog. cliqd validates the manifest, checks that the referenced agents exist, and stores it.

3. Set up a workspace

cliq init registers the directory as a workspace. cliq assemble binds the installed team to it.

4. Run

cliq streams progress as phases execute. Exit code 0 = success, 1 = failure, 3 = missing inputs.

5. Iterate

Edit team.yml, then reinstall and run:
--force overwrites the existing installation. The workspace assembly stays bound — no need to re-assemble.

Testing human gates (HUG) locally

When cliqd runs in local mode, HUG gates use a local review flow instead of CliqHub. The daemon creates a local review and polls for a verdict.

Add a gate to your team

Run with inputs

The run pauses at the review gate. In local mode, use the daemon’s HUG API to submit a verdict:
The run resumes after the verdict. This lets you test the full gate flow without CliqHub.

Validate before publishing

Check your team for errors without installing:
This runs the same validation pipeline as cliq team publish --dry-run: schema checks, DAG validation, input scanning, and agent requirement checks. Exit code 1 means something is wrong.

Bump the version


Viewing logs

Per-run logs are stored at ~/.cliqrc/logs/runs/<daemon_id>/<run_id>.log.

Going from local to CliqHub

When your team is ready for production:

1. Start cliqd with CliqHub

Stop the --no-login daemon and start a normal one:
The first login enrolls cliqd in a realm. See Realms for what happens during enrollment.

2. Publish

The team is now in the CliqHub catalog. Other daemons in your realm can install and run it.

3. Add to realm

A realm admin adds the team to the realm’s team list in CliqHub. Once added, runs from any daemon in the realm appear in the CliqHub dashboard.

Tips

  • Agent credentials: Set them with cliq settings set agents.<name>.<key> <value> (e.g. agents.cursor.api_key). They persist across restarts.
  • Multiple teams: A workspace can hold several teams. Use cliq run -t @local/my-team to pick one.
  • Reset state: cliqd --reset-db --yes wipes workspaces, runs, and teams but keeps your identity and login.
  • Export a team: cliq team export @local/my-team -d ./export writes the installed manifest to disk for editing.
  • No daemon needed: cliq team validate and cliq team version work on local files without cliqd running.