# Use your agent

Give Claude Code, Codex, Cursor or any agent your key and it can find a model, price a job and run it.

## The quick way

Paste this into your agent. It reads the skill file, checks your key and is ready.

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.
```

## Two ways to connect

|  | Skill file | MCP server |
|---|---|---|
| What it is | A Markdown file that teaches the agent to call the REST API. | The API as tools the agent calls directly. |
| Works in | Any agent that can run shell commands. | Hosts that accept an MCP server with an `Authorization` header. |
| Set up | Paste the prompt above, or save [SKILL.md](https://opengrid.one/SKILL.md). | One command. See [MCP server](https://opengrid.one/docs/mcp). |

They do the same thing and you can use both. Details: [Skill file](https://opengrid.one/docs/skill) and [MCP server](https://opengrid.one/docs/mcp).

## Before you hand over a key

- Create a separate key for the agent on the API keys page and give it a spend limit. That limit is the most the agent can use.
- Set the key in your own terminal as `OPENGRID_API_KEY`. Do not type it into the chat.
- The skill and the MCP server both tell the agent to show you the price and wait for your yes before it spends.
- A failed generation costs nothing, whoever started it.

## Try it

Prompt:

```text
Use OpenGrid to make a 5 second video of a paper boat in a rain gutter for under $1.50.
```

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