Start here
Keys and providers
Cowboy works with the API accounts you already have. It never resells access, holds credit or pools keys: every call is billed to your account at your provider’s price.
OpenRouter (main key)
Almost everything in Cowboy goes through OpenRouter: chat, transcription, speech, documents, images, video, compare and evals. One OpenRouter key reaches models from OpenAI, Anthropic, Google, Mistral, Meta, xAI and many others.
- Paste a key on the Keys page and choose Save. Remove key deletes it from the keychain.
- Test connection calls OpenRouter’s
GET /key, which is free. It shows the key’s spending limit and how much of it you’ve used. If the key has no limit, Cowboy says so: set one at openrouter.ai, it’s the simplest protection against a surprise bill. - Connect with OpenRouter (sign in instead of pasting) is in the Android app and coming to desktop. It uses OpenRouter’s OAuth flow with PKCE: you approve Cowboy on openrouter.ai and the new key comes back to the app directly. The key’s label is “Cowboy”, never your computer’s name.
Cowboy works with OpenRouter. It isn’t affiliated with or endorsed by OpenRouter.
Native batch keys (Bulk)
Bulk’s batch mode sends rows straight to the model’s maker at about half price. For that, add a key for the provider you want to batch with:
| Provider | Key looks like | Used for |
|---|---|---|
| Anthropic | sk-ant-… |
Message Batches |
| OpenAI | sk-… |
Batch API |
| Google (Gemini) | AIza… |
Gemini batch |
These keys are optional and only used by Bulk. Each one goes only to its own provider. See Bulk.
How keys are protected
- Keys live in the OS keychain: Keychain on macOS, Credential Manager on Windows, the Secret Service keyring on Linux, the Android Keystore on Android. The database never holds a key, and backups never include one.
- Only Cowboy’s core reads a key, at the moment it sends a request. The interface never gets it back.
- Each key is sent only to the hosts of the provider it belongs to, in a header, never in a URL. That allowlist is compiled into the app; nothing downloaded later can change it.
- Model output can’t load remote images without asking, which closes the usual trick for leaking data out of a chat.
When a key stops working
Cowboy reads the provider’s error and tells you in plain words, for example “This key reached the limit you set” or “Your OpenRouter balance is empty”. The full list is in Troubleshooting.