Use inside an Agent
Wire the dlazy CLI into Claude Code, OpenClaw and other agents — one command handles install and login.
The dlazy CLI lets coding agents like Claude Code and OpenClaw drive the dLazy platform directly. This page isn't a CLI tutorial — it shows you how to hand the CLI to an Agent and let the Agent figure the rest out.
1. Quick-start command
Copy the prompt below into your Agent. In most cases it can install on its own.
Install the dlazy CLI with this command, read all features with
-h, and complete login:curl -fsSL https://files.dlazy.com/cdn/cli | bash
The Agent will, in order:
- Download the
dlazybinary and add it to$PATH - Run
dlazy -hto read every available command - Prompt you to finish
dlazy auth login
No extra teaching required — dlazy <command> --help is always the authoritative spec.
2. Authenticating
CLI auth shares the same account as the browser. Two options:
- Interactive login (recommended): the Agent runs
dlazy auth login, a browser tab opens, you approve, and the token is stored locally. - API key: store an API key in
DLAZY_API_KEY— ideal for CI or headless environments.
3. Troubleshooting
command not found: dlazy— the install dir isn't on the Agent's$PATH. Add it, or reopen the shell.401 Unauthorized— no token in this environment. Have the Agent rundlazy auth login, or setDLAZY_API_KEY.- Output parsing fails — JSON is on
stdout, logs onstderr. Don't mix them.