---
title: "OpenRouter Setup Guide for RewriteBar"
description: "Connect OpenRouter to RewriteBar with an API key, choose from supported models, and use AI writing actions in any macOS app."
url: "https://rewritebar.com/docs/ai-providers/openrouter"
---

# OpenRouter

Use OpenRouter with RewriteBar by connecting your OpenRouter API key.

## Quick Setup

1. Sign in to [openrouter.ai](https://openrouter.ai/).
2. Create an API key.
3. Open RewriteBar and go to **Preferences** → **AI Provider** → **OpenRouter**.
4. Paste your API key.
5. Select a model and click **Verify and Enable**.

## Troubleshooting

- **Unauthorized**: key is invalid, revoked, or pasted incorrectly.
- **Model not available**: verify the model ID and your OpenRouter routing/access.
