Use Meshy CLI 0.4.3 to turn the user's request into a delivered asset: the requested files in the requested location, an inspected preview when one exists, and — for prints — the intended size, analysis/repair results and a slicer handoff when asked. Login or task submission alone is not completion. Choose the shortest suitable pipeline and reuse existing assets for follow-ups.
Executables: only the Meshy CLI — meshy, or the pinned temporary package
npm exec --yes --package=meshy-cli@0.4.3 -- meshy. No Python, no curl, no bundled scripts.
Credentials: the CLI's own browser sign-in (OAuth device flow) stores and refreshes a
session in ~/.config/meshy/credentials.json (mode 0600). An existing MESHY_API_KEY, or an
explicit --api-key-file, is honoured and takes precedence. The skill never reads, prints or
copies a token, device code or key, and never asks for one in chat. MESHY_API_KEY is optional.
Network: the Meshy API ( api.meshy.ai) and its sign-in page ( www.meshy.ai); the media
hosts of assets being downloaded or input URLs being checked, without the credential; the npm
registry when the CLI is installed or run as a temporary package.
Files: writes only inside one workspace per job — the directory the user named, or
./meshy_output — and the CLI refuses paths that escape it, including through symlinks.
Existing files are not overwritten unless the user asked for it. Reads only input files the
user pointed at. Slicer handoff launches an already-installed slicer application.
Data leaving this machine: prompts, input images/models and task requests sent to Meshy.
NeedReferenceCLI runner, sign-in, or output locationSetupDigital assets: generation, texturing, rigging, animation, conversion, imagesPipelinesPhysical prints: local preparation, print generation, Creative Lab, slicersPrinting recipesCost, waiting, preview, delivery, or finding a previous modelDeliveryFailed or uncertain operationTroubleshooting
Read the relevant section when needed; recipes are examples to adapt, not stages to run in
full. An untextured model skips texturing; an existing GLB needs no conversion. Use command
--help when parameters are uncertain.
Anything meant to be printed — a print, slicer, 3MF, STL, Bambu/Orca/Prusa/Cura, multicolor, a desk toy or a physical figure — follows Printing recipes from the first command, so generation parameters fit the print. Everything else follows Pipelines.
Print requestRouteScale, orient or ground an existing OBJLocal mesh prepare-print; no sign-in or balanceOpen an existing STL or 3MFLocal slicer detect and slicer open; no sign-in or balanceWhite model from text or photoGeometry without textures; analyze/repair as needed; prepare the fileMulticolor modelGenerate/reuse geometry; analyze/repair as needed; texture; multi-color-printPrint in separate parts (build plate, colours per part, fewer supports)Generate/reuse geometry; auto-split; slice the partsCreative Lab figure, vinyl figure, brick figure, lamp, keychain, fridge magnet, keycap or pixel fidget boardPrototype → review → build → select product artifactsCreative Lab collapsible fidgetOne create from the photo → STL
A figurine alone does not imply Creative Lab. Ask about size, color or style only when the missing choice materially changes the result.
Resolve the runner as Setup describes: a compatible meshy, otherwise the pinned temporary
package. Local-only print work stops there. Everything else reuses a verified auth status
session; only when there is none, sign in:
meshy auth login --device --format json --no-update-check with exec and a short
yieldMs (about 3000) and timeoutSeconds: 900, so it keeps running in the background and
returns a sessionId.Enter code … at https://www.meshy.ai/device on stderr within seconds. If the
first output holds only npm notices, process poll that same sessionId. Send the user the
URL as a link and the code verbatim, plus what to do: open it, sign in to Meshy if asked,
type the code, approve. Nothing needs to be sent back in chat.process poll
(a subagent, which gets no wake, polls before yielding). Then verify auth status and
continue the original request with the inputs, path and budget already given.A background session must not be detached with & or nohup. An expired or denied code means
running the same login again; it never justifies re-running a paid task. Long wait commands
behave the same way: let exec background them and resume from the completion wake, rather
than re-submitting or looping on sleep.
--output-schema v1 --format json --no-update-check; auth has its own
JSON shape. Resolve WORKSPACE from the user's output path and pass it to every write.create --async, keep the owning resource and task ID, then wait on that
task. Timeouts and unknown submissions follow Troubleshooting; they never authorize another
paid create.Download only the needed assets. Send the user an available rendered preview as an image; a
missing preview is stated, never implied, and a rendered PNG is not a 3D viewer. Report file
paths, task IDs for follow-ups, and the actual charge. For prints also report dimensions and
analysis/repair status; launch a detected slicer only when requested, and note that
launch_requested does not prove the model was imported. Mention relevant remaining checks,
such as supports and wall thickness, without calling an untested model guaranteed printable.