# Skill file

One Markdown file that teaches any agent to use OpenGrid.

[SKILL.md](https://opengrid.one/SKILL.md) holds the setup steps, the rules for spending, the request flow with working commands, and what to do on each error. An agent that has read it needs no other page.

## Install it

The fastest way is to let the agent do it. Paste this:

Paste this into your agent:

```text
Set yourself up to use OpenGrid for any image, video, voice-over or music I ask for. Read https://opengrid.one/SKILL.md and follow its setup steps. My API key is in the OPENGRID_API_KEY environment variable; if it is not set, ask me for it and never print it. Tell me the price and wait for my yes before anything that spends credits.
```

Or save the file yourself:

Claude Code, every project:

```sh
mkdir -p ~/.claude/skills/opengrid
curl -fsSL https://opengrid.one/SKILL.md -o ~/.claude/skills/opengrid/SKILL.md
```

Claude Code, this project:

```sh
mkdir -p .claude/skills/opengrid
curl -fsSL https://opengrid.one/SKILL.md -o .claude/skills/opengrid/SKILL.md
```

Any agent, AGENTS.md:

```sh
curl -fsSL https://opengrid.one/SKILL.md >> AGENTS.md
```

Other agents: save the file wherever yours reads skills, or add its contents to the instructions file it loads.

## Set your key

Terminal:

```sh
export OPENGRID_API_KEY=og_live_...
```

The skill reads the key from that variable and is told never to print it.

### What the agent will do

1. Check the key with `GET /v1/balance`.
2. Find a model and read its input fields.
3. Estimate the price and ask you.
4. Start the generation, wait for it and download the file.

Source: https://opengrid.one/docs/skill
