Skip to main content
Back to StyTrix
///
StyTrix

StyTrix CLI

Drive StyTrix from any terminal with npx stytrix.

The stytrix CLI signs in with the same OAuth and works in any terminal — no MCP connection required. Get started with:

npx stytrix login
npx stytrix projects
npx stytrix credits
npx stytrix generate --project <id> --prompt "an oversized camel wool coat, studio shot"

Commands

  • login — one-time browser sign-in (OAuth — no API key).
  • whoami — show the signed-in StyTrix account.
  • credits — check your credit balance.
  • projects — list your canvas projects (id, title, canvas URL).
  • tools — list the available StyTrix tools.
  • generate — generate a concept. Flags: --project --prompt --mode photorealistic|true_to_sketch --ref --aspect.
  • call <tool> '<json>' — call any StyTrix tool with raw JSON arguments.
  • logout — clear the stored token.

How it works

The CLI is a thin OAuth MCP client — the same OAuth 2.1 sign-in as the MCP connector, with no API key. The token is stored in ~/.stytrix. Pair it with the StyTrix skill so terminal agents without MCP can still design with StyTrix.

Install

On npm as stytrix (source).

Read-only commands (whoami, projects, credits) are free. Generation commands use your StyTrix credits.
StyTrix CLI — StyTrix Docs | StyTrix