Install OpenRouter API key

Unified API gateway to hundreds of AI models. Many models available for free — no credit card required.

Windows PowerShell. Paste & run.


      
      
Open Windows Terminal or PowerShell, paste the line above, hit Enter. The script handles Python check, install, and model download.

macOS Linux Terminal. Paste & run.


      
      
Open Terminal, paste, hit Enter.

Paste this into Claude Code (works in Cursor / Codex / Cline too)

Open Claude (the desktop app or web), click + New session, switch to the Code tab, then paste the prompt below as your first message. Claude does the install, downloads, and verification for you. No terminal commands you have to type yourself.

Get Claude (free) Claude Code quickstart
Help me get an OpenRouter API key for Phantomline.

1. Open https://openrouter.ai/keys in my browser.
2. Sign up or sign in (Google, GitHub, or email).
3. Click 'Create Key' and give it a name like 'Phantomline'.
4. Copy the generated key (starts with sk-or-).
5. In Phantomline, go to Settings → AI engine → Cloud, choose 'OpenRouter' as the provider, and paste the key.
6. The key is saved to my browser's localStorage — it never touches Phantomline's server.
7. Test by generating a script. Many models are free; paid models are billed through your OpenRouter account.
What Claude will do for you:
  1. Detect your OS
  2. Check whether prerequisites are installed (Python, Git, etc.)
  3. Install anything missing
  4. Install OpenRouter API key and download model weights
  5. Verify the install worked
  6. Tell you when it's done
You'll see Claude ask for permission before running each install command. You can approve all or step through.

1Create an OpenRouter account

Go to openrouter.ai/keys and sign up with Google, GitHub, or email. No credit card is required for free models.

2Create an API key

Click Create Key, name it anything (e.g. 'Phantomline'), and copy the key. It starts with sk-or-.

3Paste the key into Phantomline

Open the studio, go to Settings → AI engine → Cloud. Select OpenRouter as the provider and paste your key. It's saved to your browser's localStorage and never sent to Phantomline's server.

4Generate a test script

Pick any topic and hit Generate. OpenRouter routes the request to your chosen model. Many models (including Llama, Gemma, and Mistral variants) are available for free. Paid models are billed through your OpenRouter account at provider rates.

Verify it worked

Generate a script in the studio. If it completes successfully, your OpenRouter key is working.

Then: Reload /app — the readiness checklist will flip OpenRouter API key to READY.
Stuck? Email support@phantomline.xyz with your OS and the error and we'll send you exact steps.