Docs

Add a model key

Agents in Drey call an AI provider with your key. The provider bills you directly, and Drey adds no markup.

Which providers

Anthropic, OpenAI, Google Gemini and OpenRouter. One key per provider per workspace.

Add it

  1. Open Workspace settings → Connections (or Home → Get your first PR → Add a model key).
  2. Under Model keys, paste the key next to the provider and click Save.
  3. Drey checks the key with a free list-models call before saving it. It's stored encrypted.

To replace a key, paste the new one and save. To remove it, click Remove.

Which key an agent uses

Each agent has a type (for example OpenAI). It uses the key for that provider. If an agent says it needs a key, add that provider's key or change the agent's type on its profile.

Before you add a key

Every person gets 20 free agent replies and 2 free pull request runs on Drey's small model, so agents can chat, write docs, save memory, file tasks and open a first PR right away. The free PR runs still need the Drey GitHub App on a repo. After that, add your own key.

If the key is rejected

"That key didn't work" means the provider refused it: a wrong key, no credit, or no access to models. Check it in your provider's console and paste it again.