Get started5 steps4 min readUpdated
How to use your own Anthropic, OpenAI or OpenRouter key
Save a key once, then put the agents you choose on it. They spend your key instead of Agently credits.
Agents in Agently’s cloud run on Agently credits unless you give them your own API key. With a key from Anthropic, OpenAI or OpenRouter, the agents you choose spend that key instead, and your provider bills you.
This guide saves an Anthropic key, starts every new agent on it, and moves one agent you already have onto it. Saving a key doesn’t move anyone by itself: each agent pays the way its own setting says.
Before you start
- Agently on your Mac, signed in. An agent’s place is changed there; the web shows it without changing it. Download it if you haven’t yet.
- An API key. From Anthropic, OpenAI or OpenRouter. Anthropic keys start with sk-ant-, OpenAI keys with sk- and OpenRouter keys with sk-or-.
- Owner or admin, on a plan that includes your own keys. Members see the keys but can’t change them. The Free plan doesn’t include them.
1Open Your API keys
Open Settings at the foot of the rail and choose Plans and keys. Your API keys has a row for Anthropic, OpenAI and OpenRouter, each saying whether a key is added.
2Add your key
Beside Anthropic, choose Add key, paste your key and choose Save key. Agently checks it with Anthropic, stores it encrypted and shows only its last four characters.
The row then says Working, with the key’s ending. Test checks it again, Replace swaps it and Remove takes it away.
TipEach provider takes only its own keys, and there’s no custom address for a relay or proxy. For DeepSeek, Gemini, Grok, Qwen, Kimi, Mistral and other models, add an OpenRouter key.
3Start new agents on it
Choose How agents run and, under Every new agent, set Works to In Agently’s cloud · your API key. Every agent you hire from now on starts there. You can still pick another place while hiring, and agents you already have keep theirs.
4Move an agent you already have
Open the agent’s chat, then its Agent settings in the panel beside it. Under Runs on, pick Agently cloud, and under Paid with, pick Your API key. It applies from the agent’s next run.
Do this for each agent you want on your key. The rest stay on credits, or on your own plan on your Mac.
5Check it’s working
In the agent’s chat, open the model button. The Agently group is headed Your API key, billed by your provider, and its models are marked Your key instead of Uses credits.
An agent on your key spends it, and no credits, on Smart and every Agently model. If the key is missing or the provider rejects it, the agent stops and says so rather than falling back to credits. Its Usage shows what it spent each day and who paid.
What each key pays for
| Key | What runs on it |
|---|---|
| Anthropic | Smart and Agently’s Claude models, for agents set to pay by key |
| OpenAI | Live voice with Linus and the images agents make, as soon as it’s saved, whatever the agents are set to |
| OpenRouter | OpenRouter’s models that can use tools, at the end of the model menu in a chat where you pick one. Never Smart |
With both an Anthropic and an OpenAI key saved, Smart uses picks whose key Smart spends.
If something goes wrong
- My key was refused.
- Check it’s the right provider’s key: sk-ant- for Anthropic, sk- for OpenAI, sk-or- for OpenRouter. A DeepSeek key, or one from a relay or proxy service, isn’t accepted; use an OpenRouter key instead.
- The agent still spends credits.
- Saving a key doesn’t move agents. Set that agent’s Runs on to Agently cloud paid with Your API key.
- It says Not in your plan.
- Your plan doesn’t include your own keys. The workspace owner can choose Upgrade.
Questions
Who can add a key?
Owners and admins. Everyone in the workspace can see which keys are saved.
Is my key kept safe?
Agently checks it with the provider, stores it encrypted and only ever shows its last four characters.
How do I go back to credits?
Set the agent back to Agently credits in its Runs on, or remove the key. Only removing an OpenAI key takes voice and images off it.
Can I use my Claude or ChatGPT subscription instead?
Yes, for agents that work on your Mac. That’s a different setup: run your agents on your own plan.
More guides
How-to5 min readHow to set up your first agentDescribe one job in a sentence, answer three questions, and it gets to work. A walk-through with an agent that chases late invoices.
How-to5 min readHow to set up Agently on your MacPick what your agents think with, add your website and apps, allow three permissions, and meet your first agents.
How-to4 min readHow to run your agents on your Claude and ChatGPT subscriptionsConnect Claude Code or Codex once, and agents that work on your Mac think with the plan you already pay for, not Agently credits.
