Melies

AI Agents

Melies integrates with AI coding agents out of the box. Agents auto-discover commands through SKILL.md and can generate media autonomously.

See the AI Agent page for a full overview of what agents can do with Melies.

SKILL.md Discovery

Melies ships with a SKILL.md file that AI agents auto-discover. When an agent like Claude Code detects the installed CLI, it reads this file to understand all available commands and workflows. No configuration needed.

The SKILL.md file contains structured documentation of every command, its parameters, and example usage patterns. Agents use this to generate correct CLI calls without hallucinating flags or syntax.

bash

OpenClaw / ClawHub

Install Melies from the ClawHub skill marketplace. This installs the CLI and makes it available to any agent using the OpenClaw framework.

ClawHub is a marketplace for AI agent skills. Installing Melies through ClawHub ensures proper SKILL.md discovery and version management.

bash

Claude Code Integration

Claude Code automatically discovers and uses Melies when installed. No setup required. Just ask Claude to generate images, videos, or posters and it will use the right commands.

 

Best Practices for Agents

Always check credits first with melies credits before generating

Use --sync for blocking calls so the agent waits for the result

Parse JSON output to extract URLs and status from responses

Handle 401 errors by re-authenticating with melies login

Use melies models -t image to discover available models before generating

bash