Before you start
- Finish Creating an account and confirm activation as described in First API call.
- Create an API key under API Keys with the models, budget and expiry you want.
- Put the key in your project’s
.env(or your shell) yourself asOMNIRELAY_API_KEY. Do not paste the key into the agent’s chat: chat transcripts may be stored or logged.
The prompt
Prompt
What to expect
- The agent proposes a plan first, then edits your code. Review the diff as you would any other change.
- Listing models is free; the smoke test makes one small paid call, and the agent should ask before running it.
- If the smoke test fails, look up the
error.codein Errors and keep theX-Request-IDfor support.
Agents follow the prompt but can still make mistakes. Check that the key is read only from the environment, that automatic retries are off, and that the chosen model appears in your own
GET /v1/models list.Tips
- Other tools: the prompt is plain text, so it works with any agent that can read web pages and edit files. If your agent cannot fetch URLs, use the Copy page menu on the linked pages and paste them in as context.
- More features: for images, video or the Management API, add the relevant page to the list, for example Image generation, Video generation or Management API.
- Existing OpenAI code: usually only the base URL, key and model change. Ask the agent to keep the change that small.