Agent skills
Install MartLLM's skills once, then ask your coding agent in plain words: "make a picture of a red apple", "turn hero.png into a 5 second video", "what is the cheapest video model right now?". The agent finds a model on the live list, tells you the price, makes it with your key and saves the file in your project.
Install
You need Node.js 22.20 or later (the skills installer asks for it) and a MartLLM
key with some credit
(Dashboard → Keys).
export MARTLLM_API_KEY="ull_..." # put this line in ~/.zshrc or ~/.bashrc to keep it
npx skills add https://martllm.com
The second command asks which agents to install for and copies the skills into the current project. Useful options:
| Option | What it does |
|---|---|
-g |
Install for every project on this computer instead of this one |
-a claude-code |
Install for one agent without being asked (codex, cursor, grok; repeat -a for several) |
-s martllm-generate-video |
Install one skill only |
--list |
Show the skills without installing |
-y |
Do not ask anything |
npx skills update fetches newer versions later, and
npx skills remove martllm-generate-image removes one. skills is the open
installer from npm; the same command
installs for the other agents it supports too.
If you set MartLLM up with npx martllm init or the Claude Code installer, your
key is already saved on this computer: export MARTLLM_API_KEY="$(cat ~/.uberllm/key)".
The skills
| Skill | Ask for |
|---|---|
martllm-generate-image |
A new image from a prompt |
martllm-edit-image |
A change to a picture you already have (a file or a link) |
martllm-generate-video |
A video from a prompt, or from a first-frame picture |
martllm-generate-music |
Music or a sound effect |
martllm-generate-speech |
A text read aloud (voice-over, narration) |
martllm-generate-3d |
A 3D model from a prompt, a picture or several views, or a change to a 3D file you have |
martllm-text-tools |
Text from a picture, a video, a recording, a 3D model or text: a caption, a document's text (OCR), an answer about a picture or video, a video's subtitles, a moderation check, lyrics, a song's genre or name, a 3D print check, a prompt, a story; and training your own LoRA |
martllm-pick-model |
The cheapest or fastest model for a job, and what a request will cost. Spends nothing |
martllm-chat |
A call to any text model, or code that makes one, through the OpenAI-compatible API |
Each one is a plain text file you can read before you install it:
https://martllm.com/.well-known/agent-skills/<skill name>/SKILL.md.
What a skill does with your money and your key
- It spends only when you asked for something to be made. Listing models and pricing a request are free.
- Before a paid request, the agent tells you the model and the price. The price
comes from the API itself (
"validate": true), not from memory. - Every paid request carries
max_cost, so it is refused at no charge if it could cost more than the price you were shown. - A request or job that fails costs nothing.
- The key is read from
MARTLLM_API_KEY. The skills never print it and never write it to a file. - Models are never hard-coded: the agent reads
GET /v1/modelseach time, so a skill does not go out of date when models change.
Every request is listed with its cost in Dashboard → Activity. To limit what an agent can spend in total, give it its own key with a spending limit (Dashboard → Keys).
Claude Code
npx skills add https://martllm.com -a claude-code
Skills go to .claude/skills/ in the project (~/.claude/skills/ with -g).
Start a new session and ask for what you want, or run a skill by name, for
example /martllm-generate-image a red apple on a white table.
To add the MartLLM tools as an MCP server too:
claude mcp add --transport http martllm https://api.martllm.com/mcp \
--header "Authorization: Bearer $MARTLLM_API_KEY"
Put --scope user before the address to have it in every project. To share it
with your team, commit this as .mcp.json in the project root; each person's own
key is read from their environment:
{
"mcpServers": {
"martllm": {
"type": "http",
"url": "https://api.martllm.com/mcp",
"headers": { "Authorization": "Bearer ${MARTLLM_API_KEY}" }
}
}
}
To run Claude Code itself on MartLLM models, see Claude Code.
Codex CLI
npx skills add https://martllm.com -a codex
Skills go to .agents/skills/ in the project (~/.agents/skills/ with -g).
MCP server: add this to ~/.codex/config.toml (or .codex/config.toml in a
trusted project). Codex reads the key from the environment variable you name:
[mcp_servers.martllm]
url = "https://api.martllm.com/mcp"
bearer_token_env_var = "MARTLLM_API_KEY"
To run Codex itself on MartLLM models, see Codex CLI.
Cursor
npx skills add https://martllm.com -a cursor
Skills go to .agents/skills/ in the project (~/.cursor/skills/ with -g).
MCP server: create .cursor/mcp.json in the project, or ~/.cursor/mcp.json for
every project:
{
"mcpServers": {
"martllm": {
"url": "https://api.martllm.com/mcp",
"headers": { "Authorization": "Bearer ${env:MARTLLM_API_KEY}" }
}
}
}
Cursor reads MARTLLM_API_KEY from the environment it was started in. To use
MartLLM models in Cursor's chat, see Cursor.
Grok Build
npx skills add https://martllm.com -a grok
Skills go to .grok/skills/ in the project (~/.grok/skills/ with -g).
MCP server:
grok mcp add --transport http martllm https://api.martllm.com/mcp \
--header "Authorization: Bearer ${MARTLLM_API_KEY}"
It is saved in ~/.grok/config.toml (with --scope project, in
.grok/config.toml in the current folder). You can also write it there yourself:
[mcp_servers.martllm]
url = "https://api.martllm.com/mcp"
headers = { "Authorization" = "Bearer ${MARTLLM_API_KEY}" }
Skills or MCP?
Both reach the same API with the same key, prices and limits. Use either, or both.
- Skills need nothing running: the agent calls the API with
curland saves the file itself. They work in any agent that reads skills. - The MCP server gives the agent ready-made tools (
list_models,quote,generate_image,start_video,wait_joband more), which suits agents that cannot run shell commands.
One file instead
An agent with no skills support can read the whole setup as one page. Tell it: "Read https://martllm.com/SKILL.md and set me up with MartLLM."
Troubleshooting
| What you see | What to do |
|---|---|
| The agent says the key is missing | MARTLLM_API_KEY is not set in the shell the agent runs in. Export it there and start the agent again. |
401 invalid_api_key |
The key is wrong or was revoked. Create a new one in Dashboard → Keys. |
402 insufficient_credits |
Add credit in Dashboard → Credits. |
Integrity check failed during install |
The download did not match the published file. Run the install again; if it repeats, write to [email protected]. |
| The agent does not use the skill | Start a new session after installing, and name the skill: "use martllm-generate-image". |
Other error codes are explained in Errors.