chainabit bits automate
Bind an Agent to a Bit and schedule its unattended execution
Synopsis
chainabit bits automate <bit-id> --agent <id> --cron <expression> [options]Arguments
| Argument | Description | Default |
|---|---|---|
<bit-id> | Required. | — |
Options
| Option | Description | Default |
|---|---|---|
--agent <id> | Agent instance ID. Required. | — |
--cron <expression> | Five-field UTC cron expression. Required. | — |
--title <title> | Human-readable schedule label | — |
--description <description> | Schedule notes | — |
Options shared by every command are described in Global options and shared behavior.
Alias of: chainabit bit automate.
Behavior
Creates or updates the Bit's Agent binding and then configures its UTC schedule. The binding and schedule are separate requests; a schedule failure can leave the binding updated. Inspect the automation before retrying.
Refused by the API. Letting an Agent run a Bit on its own is billed work, and it starts only after a person has seen the billed notice and confirmed it in the Chainabit web app. The CLI cannot show that notice, so the API refuses the request before it changes anything: the command exits with code 4 and the message Show the billed unattended notice and confirm it before continuing., and no binding or schedule is created. Set up the automation in the web app, or ask Chao to do it.
Validation
--agent identifies an existing authorised Agent instance. --cron is a five-field UTC expression; there is no --timezone flag. A workspace context is required from workspace use or CHAINABIT_WORKSPACE_ID.
Safety and billing
Unattended Agent execution through a schedule is billed work: its runs can consume wallet credits and execute granted external tools, so it needs a person's confirmation in the Chainabit web app, which this command cannot give. The API refuses it (see Behavior) and nothing is billed. Binding and schedule updates are separate requests, so inspect the profile after an uncertain or partial result before retrying.
Examples
chainabit bits automate 00000000-0000-4000-8000-000000000001 --agent 00000000-0000-4000-8000-000000000002 --cron "0 9 * * 1"