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
team.yml:
2. Install the team
3. Set up a workspace
cliq init registers the directory as a workspace. cliq assemble binds the installed team to it.
4. Run
0 = success, 1 = failure, 3 = missing inputs.
5. Iterate
Editteam.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
review gate. In local mode, use the daemon’s HUG API to submit a verdict:
Validate before publishing
Check your team for errors without installing: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
~/.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:
2. Publish
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-teamto pick one. - Reset state:
cliqd --reset-db --yeswipes workspaces, runs, and teams but keeps your identity and login. - Export a team:
cliq team export @local/my-team -d ./exportwrites the installed manifest to disk for editing. - No daemon needed:
cliq team validateandcliq team versionwork on local files without cliqd running.