Run a node, connect it to your wallet, and work with knowledge through Ainize APIs. Requires Node.js 24+.
npm install -g ainizeFor the latest node-linking flow before its npm release:
git clone https://github.com/ainblockchain/ainize-cli.git
cd ainize-cli
npm ci
npm install -g .Sign in to https://ainize.ai using any MetaMask or compatible wallet, then run:
ainize init --home ~/.ainize-a --name node-a --port 3402
ainize login --home ~/.ainize-a
ainize start --home ~/.ainize-a -dlogin opens the website approval page. On SSH, open the printed link yourself; --no-open only prints it. Approve with the wallet signed in on the website. The node then appears under My nodes.
start refuses until this node key has an unexpired website link (node-link.json) — run login first, and again when the link expires. Repeat with another home and port to connect more nodes to the same wallet. A running CLI node reports its status every minute. Disconnecting from the website removes the link, but does not stop the node process.
Node links allow status reporting only. They do not authorize spending or account operations. The node's private key stays on its machine.
ainize login --node-key --home ~/.ainize-a
ainize status --home ~/.ainize-a
ainize wallet --home ~/.ainize-a
ainize stop --home ~/.ainize-a--node-key explicitly signs in with the local node key. --device explicitly requests CLI account delegation through a wallet approval. --node <URL> selects another API; --hub <URL> selects another website for node linking.
The website link is stored separately in node-link.json; it does not replace your local CLI target or session. Keep the node home private and backed up.
ainize patch ls --node https://ainize.ai
ainize teach status https://ainize.ai
ainize --help
ainize teach --helpTraining and loading knowledge require a configured model and patch hook. Installing the CLI does not install a model or website. See the current guides.
npm ci
npm run build
npm testUse the same Git history as the ainize web console:
ainize agent clone desk --node https://ainize.ai
ainize agent pulls desk --state open --node https://ainize.ai
ainize agent pulls desk --head proposal --title "Improve answers" --node https://ainize.ai
ainize agent pulls desk --number 1 --merge --node https://ainize.ai
ainize agent mirror desk --repo https://github.com/owner/repo --folder agents/desk --node https://ainize.ai
ainize agent mirror desk --sync --node https://ainize.aiAINIZE_TOKEN or the saved CLI token authenticates these calls. Clone supplies it only for that Git process;
it is never written into the remote URL or repository configuration. Later Git pushes use your credential
helper with an ainize API key as the password. A push to main deploys the agent; a proposal branch can be
reviewed before merging. Mirror detach (--detach) stops following the upstream and retains the current runtime.