### Start Minions with npx minionsai Source: https://github.com/agent37-platform/minions/blob/main/README.md Starts the Minions server locally. Requires Node.js 18+ and Hermes Agent. After running, open http://localhost:6969. A local SQLite database is created on first run, with state stored in ~/.minions/. ```bash npx minionsai ``` -------------------------------- ### Development and production commands Source: https://github.com/agent37-platform/minions/blob/main/AGENTS.md Commands for running the dev server, building, starting, and testing the Minions platform. No linter is configured. ```bash npm run dev # dev mode: tsx watch + Vite dev server on :6969 npm run build # production build: server (tsc) + client (vite) + copy .sql/.py assets npm run start # run compiled production build npm run prod # build + run production in one command npm test # Python worker checks + TypeScript component tests ``` -------------------------------- ### Check Minions version with minions --version and npm view minionsai version Source: https://github.com/agent37-platform/minions/blob/main/README.md Checks the installed Minions version. The first command shows the version of the locally installed CLI; the second queries the npm registry for the latest published version. The Settings page also displays the running server version. ```bash minions --version ``` ```bash npm view minionsai version ``` -------------------------------- ### Set npm registry auth token Source: https://github.com/agent37-platform/minions/blob/main/Development.md One-time setup to register an npm authentication token locally. Writes to ~/.npmrc and persists across sessions. ```bash npm config set //registry.npmjs.org/:_authToken=YOUR_TOKEN ``` -------------------------------- ### Publish a new release Source: https://github.com/agent37-platform/minions/blob/main/Development.md Commands to run for each release. Bump the version with npm version, publish to npm (prepublishOnly runs the build automatically), and push tags to the remote. ```bash npm version patch # bump version: patch | minor | major ``` ```bash npm publish # prepublishOnly runs the build automatically ``` ```bash git push --follow-tags ``` -------------------------------- ### Environment Variables Configuration Source: https://github.com/agent37-platform/minions/blob/main/AGENTS.md List of optional environment variables with defaults for local development. Set these to override defaults for port, Python path, agent directory, concurrency limits, state directory, database path, and model list cache TTL. ```bash PORT=6969 # Web server port HERMES_PYTHON= # Path to Python with Hermes deps (auto-detected if unset) HERMES_AGENT_DIR= # Path to Hermes agent dir (default: ~/.hermes/hermes-agent) HERMES_AGENT_RUN_LIMIT=10 # Max concurrent AIAgent.run_conversation calls MINIONS_HOME=~/.minions # State directory (DB, logs, backups, workspace) DB_PATH=~/.minions/data/minions.db # SQLite database path MINIONS_MODEL_LIST_CACHE_TTL_SECONDS=60 # Cache TTL for model list in Python worker ``` -------------------------------- ### Architecture diagram Source: https://github.com/agent37-platform/minions/blob/main/AGENTS.md Shows the layered architecture: Browser communicates with Express API via HTTP/SSE, which talks to the Python worker over JSONL, which imports Hermes AIAgent directly. ```text Browser (React/Vite :6969) ↕ HTTP + SSE Express API + Vite middleware (:6969) ↕ JSONL over stdin/stdout Python worker (hermes_worker.py) ↕ direct Python import Hermes AIAgent ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.