Skip to main content
phronel is a Node CLI (Node 18.17 or newer) with no runtime dependencies. It is the fastest way to give a coding agent access to Phronel: one login, then plain commands that print JSON whenever stdout is not a terminal.
Install it once with npm install -g phronel if you prefer phronel to npx phronel.

Commands

Conventions

  • Output is a table on a terminal and JSON when piped. --json forces JSON.
  • Errors go to stderr as {"error": {…}, "fix": "…"}; the fix line says what to do next.
  • Exit codes: 0 ok, 1 API error or a failed run, 2 usage, 3 authentication, 4 network.
  • PHRONEL_API_KEY and PHRONEL_API_URL override the stored config, which lives in ~/.config/phronel (or PHRONEL_CONFIG_DIR).
  • Test keys route to the sandbox host automatically; live keys to production.

For agents

phronel skill --install writes a skill file that teaches Claude Code (or any agent that reads .claude/skills/) when and how to call the CLI. The typical loop is run … --wait, then report … --html --out report.html for a human, or the JSON for the agent’s own reasoning.