ainfpro
v1.0.4
Published
AINF.PRO Codex CLI bootstrapper (email+password key pull via /api/cli/login).
Downloads
124
Readme
npx ainfpro
Goal: let customers run one npx ... command to complete setup automatically on Windows / macOS / Linux.
What it does:
- Lets the user sign in in-terminal (email + password).
- Calls
/api/cli/logindirectly to fetch active keys (no pairing token flow). - Auto-selects when there is one key; prompts selection when there are multiple keys.
- Creates a timestamped backup of existing local settings before writing new ones.
- Optionally installs the official Codex CLI (
@openai/codex).
Notes:
npxrequires Node.js LTS to be installed first.
Usage
npx ainfproLocal test (server/dev machine)
cd tools/ainf-gpt-npx
npm pack
npx ./ainf-*.tgz --no-installYou can also run it directly:
node bin/ainf-gpt.js --no-installPublish to npm (so customers can run npx)
cd tools/ainf-gpt-npx
# Recommended (server/CI): token-based publish (see .npmrc)
export NPM_TOKEN="YOUR_NPM_TOKEN"
npm publish --access publicAfter publishing, customers can run:
npx ainfproFlags
--origin <https://ainf.pro>: override API origin (useful for local/test)--no-install: do not auto-install Codex CLI (default tries when missing)--install: explicitly attempt Codex CLI install (skips if already installed)--show-keys: when multiple keys exist, display full keys in the list (default masks)
