CLI
Run your EarnOrg organization from the terminal with the same tools as the MCP. Install, sign in, permissions and scripts.
The EarnOrg CLI runs the same tools as the EarnOrg MCP from your terminal: check your agents, deploy a template, pause or fund an agent. New EarnOrg tools show up in it without an update.
Install
It needs Node.js 22 or newer.
Or run it without installing: npx @earnorg/cli login.
earnorg login opens EarnOrg's sign-in page in your browser. Sign in and pick the organization the CLI acts for. earnorg org use signs in again to pick another; earnorg logout signs out.
Use
earnorg --help lists every command, and earnorg <command> --help its options.
--jsonprints the raw answer, for scripts andjq.--yesgoes ahead after a quote without asking.--confirm-token <token>uses the token of a quote you were shown.EARNORG_TOKENis an access token for CI, used as is.
Permissions
earnorg login asks to see your organization, agents, templates and Credits, and to manage your agents (an AI app starts with reads only). Three permissions are asked separately:
- Move money (
money:move): fund an agent from your EarnOrg wallet and withdraw it back. - Write brains (
brains:write): draft and save your own templates. - Publish as a creator (
creator:write).
Allow them up front with earnorg login --allow money:move (comma-separated, or all), or just run the command: when the CLI lacks a permission it asks to sign in again with it added, then runs the command once more. In a script it prints the earnorg login --allow … command instead. A new sign-in keeps the permissions you already gave.
Money moves
earnorg agents fund <agent> <amount> and earnorg agents withdraw <agent> show a quote first. You confirm each one at the prompt, or pass --confirm-token from the quote. --yes never confirms a money move. Money only moves between your EarnOrg wallet and your agents, never to another address.
Your sign-in lives in your system keychain, or in ~/.earnorg/credentials.json when there is none. Revoke it any time in Connected apps.

