automate
v0.1.10
Published
Streamlined [Auto](https://www.auto.sh) CLI. One job for now: sign in and connect your OpenAI subscription so your Auto agents can run on it — no more copy-pasting `~/.codex/auth.json` into the web app.
Readme
automate
Streamlined Auto CLI. One job for now: sign in and
connect your OpenAI subscription so your Auto agents can run on it — no more
copy-pasting ~/.codex/auth.json into the web app.
Usage
Node.js 22 or newer is required. automate supports every Node.js release that
is currently maintained by the Node.js project, with Node 22 as the minimum;
end-of-life releases are not supported.
npx automate connectOn an older runtime, the launcher reports the detected Node.js version and asks
you to upgrade before loading the main CLI. npm may instead reject installation
before the launcher runs when its engine-strict setting is enabled.
That command:
- Signs you in to auto.sh (opens your browser; use
--devicefor a terminal-only code flow). - Reads the ChatGPT credentials the Codex CLI stored at
~/.codex/auth.json(sign in first withcodex login→ "Sign in with ChatGPT"). - Submits them to your Auto account, where they are validated against OpenAI and stored encrypted. Auto keeps the tokens refreshed from then on.
Commands
| Command | What it does |
| ------------------ | -------------------------------------------------------- |
| automate connect | Sign in (if needed) and connect your OpenAI subscription |
| automate | Alias for automate connect |
| automate login | Sign in to auto.sh |
| automate status | Show sign-in and subscription status |
| automate detach | Remove the OpenAI subscription from your account |
| automate logout | Sign out and clear local credentials |
Options
--api-url <url>— Auto server (defaulthttps://www.auto.sh; also honorsAUTO_API_BASE_URL)--device— terminal-only device-code login--auth-file <path>— Codex credentials file (default~/.codex/auth.json, honorsCODEX_HOME)
Credentials for the CLI itself are stored at ~/.automate/config.json
(override with AUTOMATE_CONFIG).
License
Apache-2.0
