vectr: command not found (Windows: 'vectr' is not recognized)
npm link has not run, or npm's global bin folder is not on PATH. Run npm link inside vectr-cli, check that the folder npm prefix -g prints (its bin on macOS/Linux) is on PATH, and open a new terminal.
ERR_REQUIRE_ESM or a syntax error on startup
Node is older than 22.12, which the CLI's commander dependency requires. Upgrade Node, then run pnpm build again.
pnpm: command not found
Install it with npm install -g pnpm, or run npm install in place of pnpm install; both build the same binary.
EACCES: permission denied during npm link
The global npm folder belongs to root. Do not use sudo: point npm at a folder you own (npm config set prefix ~/.npm-global, then add its bin to PATH) or use a Node version manager.
Not logged in. Run: vectr login --key <your-api-key>
No key in the config. Create one on your profile, then run vectr login. Only agent needs it; price and tokens do not.
Invalid key format — keys start with vectr_
The key was mistyped or truncated. Copy it again from the API keys tab; it is only shown once, so create a fresh one if it is lost.
401: {"statusCode":401,"message":"Invalid or revoked API key",…}
The key was revoked, or it belongs to a different backend than the one in the config. Keys are per environment.
403: {…"message":"IP <address> is not in this key's allowlist"…}
The key has an IP allowlist that does not include this machine. Allowlists are set when a key is created, so create a new key for this machine.
fetch failed
The config points at a backend that is down or wrong, usually a dev --url left over. vectr login without --url keeps the old URL, and the config file wins over VECTR_API_URL, so reset it: vectr login --key vectr_xxxx --url https://api.vectr.bot
Error: <message> after Thinking
The agent job failed and the message says why: out of credits, the model busy, or a request already running for this wallet.
vectr agent never returns
The CLI polls with no timeout. Press Ctrl+C; the job keeps running and GET /agent/job/:id returns it later.
Assertion failed: !(handle->flags & UV_HANDLE_CLOSING) (Windows)
An old build exiting through libuv. Pull the latest source and run pnpm build again.