Sandbox
@meshy-dev/meshy-3d-agent

Meshy 3D skills for Claude Code, Cursor, and Codex

This repo packages Meshy workflows as agent skills instead of an MCP server. The assistant reads the skill files, then uses the bundled Python scripts to call the Meshy API for text-to-3D, image-to-3D, retexturing, rigging, animation, conversion, and 3D printing prep.

89 stars19 forksPythonUpdated 1mo ago
Who it's for

Builders who want their coding agent to create and prepare Meshy 3D assets from prompts and images.

What it delivers

You can turn prompts and images into 3D models, printable files, and rigged assets from inside your agent.

What it does

Core 3D generation skill

Handles API key setup, task creation, polling, downloads, and multi-step generation pipelines.

3D printing skill

Adds slicer detection, printability analysis and repair, OBJ workflows, and multicolor printing support.

OpenClaw skill

Combines generation and printing into one packaged skill with OpenClaw-compatible metadata.

Direct API workflow

Uses local markdown instructions plus bundled Python CLI scripts to call the Meshy API directly, with no MCP process.

Packaging and validation

Includes build and validation scripts that regenerate skill outputs and check that generated files stay in sync.

How to get it

  1. 1One command to install all skills
    npx skills add meshy-dev/meshy-3d-agent
  2. 2Option A: Global (recommended) — add to your shell profile so it persists across sessions
    nano ~/.zshrc
  3. 3Add this line at the end, save and exit (Ctrl+O, Enter, Ctrl+X)
    export MESHY_API_KEY="msy_YOUR_API_KEY"
  4. 4Then reload
    source ~/.zshrc
  5. 5Option B: Project-local — create a .env file in your project root
    echo 'MESHY_API_KEY=msy_YOUR_API_KEY' > .env
  6. 6Option B: Current session only
    $env:MESHY_API_KEY = "msy_YOUR_API_KEY"

README

Meshy 3D Agent

AI agent skills for the Meshy AI 3D generation platform. Enables AI coding assistants (Cursor, Claude Code, OpenClaw) to generate 3D models, textures, images, rig characters, animate them, and prepare models for 3D printing — no MCP server required.

New Updates: For new web agent experience, come to try out our new Meshy Workspace Agent! It supports:

  • :brain: Brainstorm with you, pitching directions first
  • :art: Generate visuals in batches, refined through chat
  • :ice_cube: Turn your favorite into 3D — print, download, anywhere
  • :books: Answer your 3D questions in-line

How It Works

These are agent skills — no server, no MCP process. Each skill bundles a small Python CLI (scripts/) plus on-demand markdown references (references/), and your AI assistant reads the skill files and drives the Meshy API directly through the bundled scripts.

Skills

meshy-3d-generation (core)

Full 3D generation lifecycle: API key setup, task creation, polling, downloading, and multi-step pipelines.

CapabilityDescriptionCredits
Text to 3DGenerate 3D models from text descriptions20-30
Image to 3DConvert single or multiple images to 3D20-30
RetextureApply new textures to existing models10
RemeshChange topology, polycount, or export format5
ConvertConvert a model to other formats (glb/fbx/obj/usdz/blend/stl/3mf) without remeshing1
ResizeRescale to a real-world size (height / longest-side / auto)1
UV UnwrapGenerate a clean UV layout for external texturing (GLB, ≤40k faces)5
Auto-RiggingAdd skeleton to textured humanoid characters, ≤300k faces (includes walking + running)5
AnimationApply custom animations to rigged characters (action_id from the public Animation Library)3
Text to ImageGenerate 2D images from text (recommended pre-step before image-to-3d)3-9
Image to ImageOptimize/edit reference images (recommended pre-step before image-to-3d)3-12

meshy-3d-printing (optional)

3D printing workflow: slicer detection, automated printability analysis & repair, white model printing, multicolor printing via API.

CapabilityDescriptionCredits
White Model PrintGenerate → OBJ download → coordinate fix → slicer launch20
Multicolor PrintGenerate → texture → multi-color API → 3MF → slicer launch40
Creative LabOne tool: photo or text → finished printable product (figure / lamp / keychain / fridge-magnet); prototype→build end-to-end36
Slicer DetectionAuto-detect 7 slicers: OrcaSlicer, Bambu Studio, Creality Print, Elegoo Slicer, Anycubic Slicer Next, PrusaSlicer, UltiMaker Cura0
Analyze PrintabilityAutomated FDM check via /openapi/v1/print/analyze (watertight / volume / non-manifold / degenerate / holes)0 (free)
Repair PrintabilityFix non-manifold edges, degenerate faces, holes via /openapi/v1/print/repair (output format mirrors input)10

The printing skill bundles the same task-runner CLI as the generation skill and shares its environment setup.

meshy-openclaw (OpenClaw / ClawHub)

A single unified skill for the OpenClaw ecosystem. Combines generation + printing into one self-contained skill, with OpenClaw-compatible metadata.clawdbot frontmatter and a full SECURITY MANIFEST.

CapabilityDescriptionCredits
All generationText/Image to 3D, Creative Lab, Retexture, Remesh, Convert, Resize, UV Unwrap, Rig, Animate, Text/Image to Image1–36
3D printingWhite model (OBJ) + multicolor (3MF via API) + slicer detection0–35

Designed for ClawHub publishing. API key is stored only in .env in the current working directory — no shell profile access.

Quick Install

One command to install all skills:

npx skills add meshy-dev/meshy-3d-agent

Then set your API key (pick any method below):

Or simply start using the skill — when the agent loads it, it will detect that no API key is configured, ask you for it, and set it up for the current session (it never writes your key anywhere except .env on your request).

macOS / Linux

Option A: Global (recommended) — add to your shell profile so it persists across sessions:

nano ~/.zshrc

Add this line at the end, save and exit (Ctrl+O, Enter, Ctrl+X):

export MESHY_API_KEY="msy_YOUR_API_KEY"

Then reload:

source ~/.zshrc

Option B: Project-local — create a .env file in your project root:

echo 'MESHY_API_KEY=msy_YOUR_API_KEY' > .env

Remember to add .env to your .gitignore to avoid committing your key.

Windows

Option A: Permanent (recommended) — set via System Environment Variables:

  1. Open Settings → search for "Edit environment variables for your account"
  2. Add a new user variable named MESHY_API_KEY with your key as the value
  3. Restart your terminal for it to take effect

Option B: Current session only:

$env:MESHY_API_KEY = "msy_YOUR_API_KEY"

Option C: Project-local — create a .env file in your project root:

MESHY_API_KEY=msy_YOUR_API_KEY

Prerequisites

  • A Meshy API key (get one here — requires Pro plan or above)
  • Python 3 with requests package (pip install requests)

Manual Installation

OpenClaw

Option A: Via ClawHub

npx clawhub install meshy-dev/meshy-3d-agent

Option B: Manual — copy the skills/meshy-openclaw/ folder to your OpenClaw skills directory.

Cursor
mkdir -p .cursor/skills

# Core (required)
cp -R skills/meshy-3d-generation .cursor/skills/

# 3D Printing (optional)
cp -R skills/meshy-3d-printing .cursor/skills/
Claude Code
mkdir -p .claude/skills

# Core (required)
cp -R skills/meshy-3d-generation .claude/skills/

# 3D Printing (optional)
cp -R skills/meshy-3d-printing .claude/skills/
Codex

Codex reads skills from .agents/skills — per repository, or from ~/.agents/skills to make them available everywhere.

mkdir -p .agents/skills

# Core (required)
cp -R skills/meshy-3d-generation .agents/skills/

# 3D Printing (optional)
cp -R skills/meshy-3d-printing .agents/skills/

.agents/skills is the cross-editor convention, so Cursor picks these up as well.

Skill vs MCP Server

FeatureAgent Skill (this repo)MCP Server
SetupCopy a skill directorynpx meshy-mcp-server
DependenciesPython 3 + requestsNode.js >= 18
How it worksAI reads instructions, makes API calls directlyDedicated server process with structured tools
IDE supportAmp, Cline, Codex, Cursor, Gemini CLI, Claude Code, OpenCode and 20+ moreAny MCP-compatible client
File managementVia skill instructionsBuilt-in auto-save with project folders

Both approaches provide the same Meshy API capabilities. Choose based on your preference and setup.

Security & Data

These skills run entirely on your machine and talk to a single service — the Meshy API. No telemetry, no third-party endpoints.

Your API key

  • Read from the current session environment, or from .env / .env.local in the current working directory. Home directories and shell profiles are never scanned.
  • Sent only in the HTTP Authorization: Bearer header to https://api.meshy.ai. It is never logged in full — scripts print at most a msy_1234... prefix.
  • Never persisted by the scripts. The key is written to .env in the current working directory only when you explicitly ask, and that .env is added to .gitignore automatically. It is never written to shell profiles, Windows user variables, or any path outside the working directory. Persisting it globally is offered to you as instructions to run yourself — the skill never does it silently.
  • System proxies are bypassed (requests session trust_env = False), so the key is never handed to an environment-configured proxy.

What leaves your machine

  • Only what a generation request needs: your API key, text prompts, and image URLs/data (for image-to-3D) — all to api.meshy.ai.
  • Generated assets are downloaded and saved locally under ./meshy_output/; nothing else is uploaded.

Filesystem footprint

  • Reads: .env / .env.local in the working directory, and any input files you explicitly pass (e.g. local images), at the exact path you provide.
  • Writes: ./meshy_output/ (models, thumbnails, metadata.json, history.json) and — on request — .env in the working directory.
  • The 3D-printing skill additionally launches an already-installed slicer with your model file; it never downloads or installs software.

For Maintainers

Single sources of truth — edit these, never the generated copies:

SourceGenerated outputs
reference/source.mdskills/*/reference.md (the OpenClaw build also injects the SECURITY MANIFEST extracted from skills/meshy-openclaw/SKILL.md)
scripts/src/meshy_task.pyskills/*/scripts/meshy_task.py
skills/meshy-3d-printing/scripts/slicers.py, fix_obj.pyskills/meshy-openclaw/scripts/slicers.py, fix_obj.py

After editing a source, regenerate and verify:

python3 scripts/build.py          # regenerate all targets
python3 scripts/build.py --check  # CI mode: fail if outputs are stale, a SKILL.md exceeds 300 lines, or a references/*.md is unlinked

Generated files carry a GENERATED marker comment. CI runs python3 scripts/build.py --check to reject edits that bypass the sources.

License

MIT

Files in the repo

Repository payload10 top-level entries
  • .claude-plugin
  • .cursor-plugin
  • .github
  • reference
  • scripts
  • skills
  • .gitignore
  • CHANGELOG.md
  • LICENSE
  • README.md

Discussion (0)

Ask about usage, or say what you built with it

Sign in to join the discussion.

No comments yet. Be the first to say what this is good for.

More skills

obra/
superpowers

An agentic skills framework & software development methodology that works.

285k
1 add

Turn any codebase, with its docs, SQL schemas, configs, and PDFs, into a queryable knowledge graph. A /graphify skill for Claude Code, Cursor, Codex, and Gemini CLI: local deterministic AST parsing, every edge explained, no vector store.

117k
1 add
Vincentwei1021/
anything2explainer

Topic in, narrated explainer video out. A Claude Code / Codex skill that turns any topic into a black-canvas motion-graphics explainer video with TTS voiceover, subtitles and a chapter progress bar. Chinese or English; every frame drawn in code with Remotion.

666

Open-source AI job search: scan job portals, evaluate listings into a structured A-H report with a global 1-5 score, tailor your CV, track applications — runs locally in your AI coding CLI (Claude Code, Codex, OpenCode, Antigravity…)

71k