Getting Started
This page is the path from an empty machine to a task an agent has worked on, using the hosted product, Vagaris Cloud. Every command on it is one the binary registers. You need a Vagaris account: Vagaris is pre-GA, so request access at vagaris.org if you do not have one yet.
1. Install
npm install -g @vagarylabs/vagaris
vagaris --version
Other install routes are on Install. Installing the CLI starts no server and enrols no machine; it is only a client.
2. Sign in
vagaris auth login
With nothing configured, the CLI talks to Vagaris Cloud. It reads https://vagaris.org/.well-known/vagary to find the API and the sign-in service, then prints a sign-in URL (add --open to open it in your browser). After you sign in, the session is saved in ~/.vagaris/auth.json. On a machine without a browser, use vagaris auth login --device and enter the code it prints on another device. Details are on Login.
vagaris auth whoami
3. Pick your organization
vagaris org list
Save the organization you work in as your default profile so you stop repeating it:
vagaris context set --company-id <organization-id> --use
vagaris context show
The context file is ~/.vagaris/context.json. A script or CI job should not rely on a saved default: pass --company-id or set VAGARIS_COMPANY_ID on every run (see CI usage).
4. Create the task
vagaris agent list
vagaris issue create --title "Summarise the README" --description "Write a three-line summary of the repository README" --assignee-agent-id <agent-id>
issue create prints the issue with its identifier: the organization's issue prefix and a number, for example ACM-1. Check it:
vagaris issue get ACM-1
5. Run the agent on it
Trigger one heartbeat for the agent and watch the run's events stream until it finishes:
vagaris heartbeat run --agent-id <agent-id>
The command asks the server to invoke the agent once (--source on_demand, --trigger manual by default), then polls the run and prints its log events until the run reaches succeeded, failed, cancelled or timed_out. --timeout-ms defaults to 0, which waits indefinitely; --debug also prints the adapter's raw stdout/stderr chunks.
6. See what happened
vagaris runctl history
vagaris issue get ACM-1
vagaris activity list
runctl history lists the organization's last 20 runs. issue get shows the issue's status and the comments the agent left. activity list is the organization's activity log.
A dedicated Vagaris service
If your organization was given its own Vagaris service address instead of Vagaris Cloud, save it as a profile. The CLI finds that service's API the same way, through its /.well-known/vagary document:
vagaris context set --profile acme --service-root https://vagaris.acme.example --use
vagaris auth login --profile acme
vagaris context show names the service a profile uses; add --verbose to see the endpoints behind it.
Where next
- Run an agent on your own machine under a server-issued lease: Developer Mode.
- Give a local Claude Code or Codex session an agent API key and skills: Coding-Agent Integration.
- Understand what limits an agent's tools and scope: Permissions.
- Everything the binary registers: CLI Reference.