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.

npm install -g @earnorg/cli
earnorg login

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 start                        # your checklist and the next step
earnorg agents                       # every agent
earnorg agents get veranta-1         # one agent
earnorg listings --category yield    # templates
earnorg deploy <listing-id>          # shows a quote and asks first
earnorg agents pause veranta-1       # shows a quote and asks first
earnorg credits                      # your plan's usage, or your Credits

earnorg --help lists every command, and earnorg <command> --help its options.

  • --json prints the raw answer, for scripts and jq.
  • --yes goes ahead after a quote without asking. --confirm-token <token> uses the token of a quote you were shown.
  • EARNORG_TOKEN is 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.