Auth Setup
Use environment variables for direct Runway API actions. The API key must never appear in the chat.
Default setup
- Open the API keys page:
https://dev.runwayml.com/settings/api-keys - Create or copy an API key
- Set it in the environment that launches your editor
Current shell before launching the editor:
export RUNWAY_SKILLS_API_SECRET=YOUR_KEY_HERE
cursor .Or add it to your shell profile, then restart the editor:
echo 'export RUNWAY_SKILLS_API_SECRET=YOUR_KEY_HERE' >> ~/.zshrc
source ~/.zshrcReplace YOUR_KEY_HERE locally in the terminal. Never paste the key into the chat.
Verify
node <skill-dir>/scripts/runway-api.mjs auth status<skill-dir> is the absolute directory of the SKILL.md you are reading — see the Runtime Location section in SKILL.md for how to resolve it.
If authenticated is still false, restart the editor or launch it from a shell that already has RUNWAY_SKILLS_API_SECRET set.
Non-production environments
Set a stage-specific key (preferred) and/or override the base URL:
export RUNWAY_SKILLS_API_SECRET_STAGE=YOUR_STAGE_KEY
export RUNWAY_SKILLS_BASE_URL=https://api.dev-stage.runwayml.comWith --stage on any command, the CLI prefers RUNWAY_SKILLS_API_SECRET_STAGE and falls back to RUNWAY_SKILLS_API_SECRET.
Notes
- API keys require prepaid credits to work.
RUNWAY_SKILLS_BASE_URLdefaults tohttps://api.dev.runwayml.com(production) orhttps://api.dev-stage.runwayml.comwhen--stageis passed.auth statusverifies that the current environment can reach the API successfully.