Command Line Interface
A lightweight command-line client for the AI Portal MCP generation tools. Compatibility with Claude Code, Cursor, and Codex has not been verified.
Installation
Package name will be configured before publishing. From the repository root, install with the local path above or run node lib/ai-portal-cli/src/cli.js.
Requires Node.js 18 or later.
Authentication
Login opens a secure browser window to authenticate your CLI.
Login setup is disabled until the portal endpoint is configured.
Credentials use the OS keychain when available, with a protected 0600-permission file fallback.
Check Status
Supported Models
These are the models currently mapped and supported by your AI Portal CLI.
Sign in to view models available on your account.
Sign InCommands
ai-portal models list
List all available image and video models you have access to.
ai-portal image generate
First run ai-portal models list and choose an image model ID. Submission returns a generation record immediately.
--prompt(required): Description of the image.--model(required): ID chosen from the signed-in model inventory.--aspect-ratio: A ratio advertised by that model.--reference-image: An owned gallery reference; repeat for multiple references.--idempotency-key: Optional explicit retry key; the CLI generates one when omitted.
ai-portal video generate
Choose a video model from models list, then submit a generation.
Options: required --model and --prompt; optional --duration, --aspect-ratio, repeated --reference-image, --idempotency-key, and --json. Use only capabilities advertised by the selected model.
ai-portal auth logout
Logout remotely and clear local credentials.
ai-portal generation get <id>
Check the status of a generation job.