6. CLI and Skills
Install and sign in to the Higgsfield CLI for Claude Code, Codex, and Cursor, use its generate and cost commands, and set up the nine official skills.
Written and reviewed by Eric Han · Co-founder & CTO, reopt
Key takeaways
- Install the CLI with npm, the curl install script, or Homebrew, then sign in through the browser with higgsfield auth login. No API key is used.
- Adding --wait to generate create waits until the job finishes and prints the result link, and --json returns a record that scripts and agents can read.
- generate cost takes the same arguments and shows only the credit price, so before a large job, run cost first instead of create.
- As of 2026-11-21, the official skills are at v0.14.0 with 9 skills, installed with npx skills, gh skill, the Claude Code marketplace, or the setup script.
- The official generate skill is written so it does not estimate cost unless the user asks. To check costs, instruct the agent separately.
Coding agents such as Claude Code, Codex, OpenClaw, and Hermes use Higgsfield through the Higgsfield CLI and the Skills layered on top of it, instead of the MCP connector. The CLI is a command-line tool for generating, checking costs, training Soul characters, and checking your account from the terminal. Skills are task instructions that tell the agent when and how to call the CLI. Higgsfield publishes both in the higgsfield-ai organization on GitHub. Commands and versions in this chapter are as of 2026-11-21.
When the CLI Fits
The official help center explains that MCP is a complete connection exposing every tool to conversational agents, while the CLI and Skills are tailored to coding agents, giving each skill a set structure that cuts token overhead and keeps output consistent. Both paths use the same account, the same credits, and the same Assets. Neither gets the web's Unlimited or free generations. The path comparison was covered in Chapter 3.
The diagram below shows how a coding agent calls Higgsfield. The agent simply reads the skill document and runs the specified CLI commands. The CLI handles sign-in and credit deduction with your Higgsfield account, which is where it differs from MCP.
The CLI is especially useful for repetition and automation. Every command produces machine-readable output with --json, local file paths are uploaded automatically, and the cost command takes the same arguments as the generate command. A script that reads a file of prompts and submits dozens of jobs at once takes only a few lines.
Installation
The official blog (2026-10-19) describes three install methods. You will update the same way you installed, so pick just one. You need a paid Higgsfield subscription, a macOS, Linux, or Windows terminal, and, depending on the method, Node.js or Homebrew.
Works on every platform, including Windows. Requires Node.js. As of 2026-11-21, npm latest is 1.2.2.
npm install -g @higgsfield/cli
higgsfield versionThe command is higgsfield, with a short alias higgs. In a post-install step, the npm package downloads the binary for your platform from GitHub releases and aborts the install if it doesn't match the SHA-256 checksum bundled in the package. Supported platforms are x64 and arm64 on macOS, Linux, and Windows. The install script may ask for your system password because it writes to /usr/local/bin. If you can't use sudo, install into your home directory with sh -s -- --prefix=$HOME/.local.
Versions can differ by install path. As of 2026-11-21, the latest GitHub release is v1.2.3 from 2026-10-22, but the npm latest tag is 1.2.2. The official blog describes a case where higgsfield version printed 1.0.1, from an older Homebrew install, after a curl install. It advises checking for two copies with which -a higgsfield and aligning them with brew upgrade higgsfield.
Sign-In and Account
You sign in through the browser. There is no key to copy.
higgsfield auth login # "Successfully authenticated" after browser approval
higgsfield account status # Prints email, plan, and remaining credits on one lineWhen you run auth login, the terminal prints "Opening browser for authentication" and waits. If the browser doesn't open, it also shows the path to a local sign-in file you can open manually. The Higgsfield consent screen lists what the CLI will access: email, basic profile, organization membership, and permission to stay signed in. Click Allow and the browser shows "Device authorized." This flow matches the device code grant listed among supported methods in the Higgsfield MCP server's OAuth metadata.
An account that belongs to several workspaces must choose which workspace to bill for generation. higgsfield workspace list shows the account's billing workspaces with plan and balance, and higgsfield workspace select changes the billing target. In the blog's test with a personal account, only one workspace, named Private, appeared. Team operations are covered in Chapter 17.
Generating and Waiting
To generate, add the model ID and parameters after generate create. Parameters use the --name value form and pass straight through to the model schema.
# Generate one image, wait until done, get the result as JSON
higgsfield generate create gpt_image_2_6 --prompt "neon city at dusk" \
--aspect_ratio 16:9 --resolution 2k --wait --json
# Generate a video using the previous image as the start frame
higgsfield generate create seedance_2_5 --mode omni_reference \
--start-image <image_job_id> --prompt "slow push-in, rain begins to fall" \
--duration 5 --resolution 1080p --wait --wait-timeout 20m --json--wait holds the terminal until the job finishes and prints the result link. The default wait limit is 10 minutes, and you can extend it, for example with --wait-timeout 20m. Change the polling interval with --wait-interval (default 3 seconds). If the wait limit is exceeded, the command ends with "timed out waiting for job," but the job keeps running on the server. In the blog's test, a text-only video ran past 10 minutes and timed out; generate get showed it in_progress, and the link came a few minutes later.
Without --wait, the command returns only the job ID right away. To collect the result later, use the following commands.
| Command | What it does | Credits |
|---|---|---|
generate list | Date, model, status, and link of recent jobs | None |
generate get <job_id> | Status and link of one job | None |
generate wait <job_id> | Waits until the job finishes | None |
account transactions --size 5 | Recent credit movements | None |
Media flags (--image, --start-image, --end-image, --video, --audio) accept a local file path, an upload ID, or a previous job ID. Local files upload automatically, so there's no separate upload step. If you use the same file several times, though, you can upload it once with higgsfield upload create and reuse the ID. Passing a start frame or reference image to Seedance 2.5 requires --mode omni_reference. The default text-only mode does not accept media.
Check the Cost First
generate cost returns only the credit price without creating a job. It takes the same arguments as generate create, so you change only one word.
higgsfield generate cost seedance_2_5 --mode omni_reference \
--start-image <image_job_id> --prompt "..." --duration 5 --resolution 1080p
# Check draft-quality price
higgsfield generate cost seedance_2_5 --prompt "..." --duration 5 \
--resolution 1080p --draft trueWhen the blog checked with one account on 2026-10-16, a 5-second 1080p Seedance 2.5 video cost 80 credits for a full render and 15 credits as a --draft true draft. In the same test, one image cost 2 credits. Prices change with model, length, resolution, and timing, so rather than memorizing numbers, check with cost each time. To check a workflow's cost, run a query such as generate cost workflow reframe --duration 7.1 --resolution 1080p. The voice-change and dubbing workflows, however, do not support cost estimates.
When you delegate to an agent, one point matters most. The official generate skill instructs the agent not to estimate cost in advance or switch to a cheaper model unless the user asks, and to use quality defaults first. If you want a cost check, say so explicitly, for example: "Before generating, tell me the credits with generate cost and wait for my confirmation." Cost management overall is covered in Chapter 14.
Finding Models and Workflows
The CLI reads the same catalog as the web. higgsfield model list prints every job type with its display name and category, and higgsfield model get <model_id> shows a model's parameters, allowed values, defaults, required fields, and reference count limits. In the blog's 2026-10-16 test, model list returned 107 entries. Modes and variants each count as separate entries, which is why this differs from the "35+ models" in promotional copy.
Model IDs often differ from display names. According to the official skill documentation, nano_banana_2 is an alias for Nano Banana Pro, and the ID for Nano Banana 2 is nano_banana_flash. IDs can change between releases, so if you get an "Unknown model" error, recheck the current ID with model list. Model selection criteria are covered in Chapter 9.
Jobs such as reframing, dubbing, voice conversion, and sketch-based video editing are classified as workflows, not models. Check the list with higgsfield workflow list and the parameters with higgsfield workflow get <workflow_name>, then run one with higgsfield generate workflow <workflow_name> ... --wait. Beyond these, Soul characters (soul-id), Marketing Studio assets (marketing-studio), product shoots (product-photoshoot), and website and game deployment (website, game) are also command groups in the same CLI. Soul training steps are covered in Chapter 11.
The table below groups the commands covered so far. The last column shows that only generation commands spend credits; lookups, waits, and cost checks are free.
| Group | Representative commands | Purpose | Credits |
|---|---|---|---|
| Auth | auth login, auth token, auth logout | Browser sign-in, view or delete token | None |
| Account | account status, account transactions --size 5 | Plan and balance, recent credit movements | None |
| Workspace | workspace list, workspace select | View or change billing workspace | None |
| Discovery | model list, model get <model_id>, workflow list, workflow get <name> | Check models, workflows, and parameters | None |
| Cost | generate cost <model_id> ..., generate cost workflow <name> ... | Check price without submitting | None |
| Generate | generate create <model_id> ... --wait, generate workflow <name> ... --wait | Submit jobs and wait for results | Deducted |
| Job management | generate list, generate get <job_id>, generate wait <job_id> | Check status, collect results | None |
| Upload | upload create <file> | Reuse an ID when using the same file several times | None |
| Characters | soul-id create, soul-id wait, soul-id list | Soul training and lookup | Deducted for training |
| Product lines | marketing-studio ..., product-photoshoot ..., website ..., game ... | Ad assets, product shoots, site and game deployment | Deducted for generation |
Whether Soul training and product-line commands deduct credits is this book's classification based on what the commands do. Confirm exact prices with each command's cost lookup or the values shown on the web.
Using It in Scripts
Without --wait, generation returns a job ID immediately, so you can read a prompt file line by line and submit jobs one after another. The official blog's example is below (requires Bash and jq).
while IFS= read -r prompt; do
higgsfield generate create seedance_2_5 --prompt "$prompt" --duration 5 --json \
| jq -r '.[]' >> job_ids.txt
done < prompts.txtThen collect the results for those IDs with generate wait or generate get. Passing the prompt through standard input, as in echo "..." | higgsfield generate create z_image --wait, is also supported. Bulk submission spends credits fast. So this book considers it safer to check one job with generate cost first, actually make one and look at the result, then run the rest. Concurrency and queue limits are documented for the API, but we could not find a separate concurrent job limit for the CLI in the official docs. The only confirmed fact is that concurrent generation limits vary by plan.
The Nine Official Skills
Skills are bundles of Markdown instructions that agents read. As of 2026-11-21, the official repository higgsfield-ai/skills is at v0.14.0 and contains 9 skills. Here they are with the names you call them by in Claude Code.
| Skill | Claude Code invocation | What it does |
|---|---|---|
| higgsfield-generate | /higgsfield:higgsfield-generate | Image, video, 3D, and audio generation with 30+ models, Marketing Studio ads, Virality Predictor analysis |
| higgsfield-soul-id | /higgsfield:higgsfield-soul-id | Trains a Soul character from 5–20 face photos and returns a reusable ID |
| higgsfield-product-photoshoot | /higgsfield:higgsfield-product-photoshoot | Product images in 10 modes, including studio, lifestyle, Pinterest, and hero banner |
| higgsfield-brandkit | /higgsfield:higgsfield-brandkit | Visual identity, from palette, logo, and typography to mockups and a brand book |
| higgsfield-marketplace-cards | /higgsfield:higgsfield-marketplace-cards | Marketplace main images, secondary images, and A+ style modules |
| higgsfield-websites | /higgsfield:higgsfield-websites | Generates and deploys websites, apps, and browser games |
| higgsfield-faceless-video | /higgsfield:higgsfield-faceless-video | Faceless explainer, story, and documentary videos |
| higgsfield-video-explainer | /higgsfield:higgsfield-video-explainer | Compatibility entry point for explainer videos |
| higgsfield-youtube-thumbnail | /higgsfield:higgsfield-youtube-thumbnail | YouTube thumbnails and vertical video covers |
Official documents disagree on the number of skills. The creator help center says npx skills add higgsfield-ai/skills installs three skills, generate, soul, and product-photoshoot, and gives /higgsfield:generate as an invocation example. The repository's INSTALL.md says it installs "eight skills," while the README and plugin definition list nine. This book uses the repository's README and marketplace.json as the reference. The help center appears to update later than the repository. The one-click skills on the MCP side are a different list from these 9 and are covered in Chapter 12.
The skills connect to each other. The diagram below draws the connections the official README describes. Face identity is built once in soul-id and passed to generate; brandkit handles brand work, and websites takes generate's results to finish sites and games.
Spelled out: the ID returned by soul-id is passed to generate's Soul models and Marketing Studio jobs, and websites puts the hero images, video loops, and OG images made with generate into the site. The websites skill requires git and bun locally. Exporting everything with the brandkit skill requires tools such as Playwright Chromium, ImageMagick, and LibreOffice, but brandkit asks before installing anything.
Four Ways to Install Skills
The repository's README and INSTALL.md describe four methods. Each handles CLI installation and sign-in as part of skill setup.
The recommended method. It works across agents and requires Node.js. It detects the host agent automatically and writes skills to the right location.
npx skills add higgsfield-ai/skillsTake care when putting skills into Claude Code directly. The install document for agents warns against cloning the whole repository into .claude/skills/higgsfield in your home directory. Claude Code looks for skills one folder level down, so if you do that it finds no skills at all. If you can't use the marketplace, clone the repository elsewhere and run ./setup --host claude to create per-skill links.
The setup script detects Claude Code, Cursor, and Codex automatically, and you can also specify one with --host. Running it multiple times gives the same result. The default install location for Codex is .agents/skills in your home directory, changeable with --target-dir. The install document for agents also describes cloning the repository into .cursor/plugins/higgsfield in your home directory for Cursor and into .codex/plugins/higgsfield for Codex.
Verifying and Updating
After installing, ask the agent: "Generate a minimal test image with Higgsfield." You can ask in another language as well; the skills are written to answer in the language of the user's first message. If the agent picks the higgsfield-generate skill, runs higgsfield generate create z_image --prompt "test" --wait, and passes along the printed link, everything works. If it fails, a 401 or "Session expired" means you need to sign in again, and another 4xx error means you should check the error message and the skill's troubleshooting document.
Update the same way you installed.
| Install method | Update |
|---|---|
| npx skills | Run npx skills add higgsfield-ai/skills again |
| gh skill install | gh skill update higgsfield-ai/skills |
| Claude Code Marketplace | /plugin update higgsfield@higgsfield |
| setup script | cd skills && git pull && ./setup |
| CLI (Homebrew) | brew update && brew upgrade higgsfield |
Managing Tokens and Execution Permissions
The CLI's sign-in is a short-lived token stored in a local credentials file. higgsfield auth token prints the current token, and higgsfield auth logout deletes it. The official blog urges treating this token as a secret and never pasting it into prompts, logs, screenshots, or source control. "Session expired" means sign in again, and the message "Stored credentials are for ... but current environment ..." means you need to sign in again for the current API address.
Coding agents can run terminal commands, so there is more to watch out for. The official skills are written to allow the Bash tool, and the install guide recommends reviewing commands the agent proposes before they run. In this book's judgment, three rules are worth keeping. Approve sign-in in the browser yourself, and don't paste the token into the agent conversation. Don't put tokens or credential paths in scripts in shared repositories. Run bulk generation scripts only after a person has checked the cost. Like MCP, CLI access falls under the developer section of the Terms of Use, and the account owner is responsible for what a coding agent generates with the account. Authentication structure and security continue in Chapter 7.
Advanced Use
The CLI is more useful when bundled into scripts than when a person makes requests one at a time. Patterns such as a gate that checks cost first and stops when over budget, a collection step that gathers results from a job ID file, and rechecking after a timeout are covered in Chapter 26, CLI Automation Pipeline. Designs for multiplying the same material by hook, aspect ratio, and language are in Chapter 23, Variants and Experiments.
Official Sources
5. ChatGPT, Cursor, and Other Agents
How to connect the ChatGPT plugin, Cursor Marketplace, Manus, and generic MCP clients, and which features each client supports.
7. Auth and Security
How the OAuth login works, the January 2027 switch to CIMD, token handling, verifying official URLs, impersonation, and who is responsible for agent spending.