If you have an API key from Anthropic, you can connect it on any plan. Gary then uses your key for Claude models, and Anthropic bills that usage to you.
What changes when you connect a key
- Anthropic bills the usage. What Gary uses through the key is charged to your Anthropic account, not your Gary plan.
- Your plan's limits don't apply to it. Work on your key doesn't count toward your 5-hour limit, your weekly limit, or your monthly credit.
- Anthropic's limits and terms apply. The key's own rate limits and spending limit decide how much Gary can do with it.
- You choose when it's used. Gary uses your key whenever you pick a Claude model. To have a Gary use it for everything, set a Claude model as that Gary's usual model. See Choose a model.
Connect your key
- Make an API key at console.anthropic.com. It starts with
sk-ant-api03-. - In Gary, choose your initials at the top of the sidebar, then choose Settings.
- Choose Your AI, then choose Add beside Claude.
- Paste the key under API key, then choose Connect.
Gary checks the key with Anthropic before keeping it. When it's connected, Settings shows "API key" and the key's last 4 characters.
On iPhone, the steps are the same: Settings, then Your AI.
If the key isn't accepted
| Message | What to do |
|---|---|
| That isn't an Anthropic API key. Make one at console.anthropic.com (it starts with sk-ant-api03-). | Paste an API key. A Claude subscription doesn't work here. |
| Anthropic didn't accept that API key. Check that you copied all of it. | Copy the whole key again, or make a new one. |
| Anthropic says that API key can't be used for this. Check its workspace and limits. | In Anthropic's console, check the key's workspace and its spending limit. |
| Anthropic is limiting that API key right now. Try again in a minute. | Wait a minute, then choose Connect again. |
| Gary couldn't reach Anthropic to check the key. Try again in a minute. | Wait a minute, then try again. |
Claude subscriptions
Gary takes API keys only. It doesn't take the sign-in or token of a Claude subscription, such as Claude Pro or Claude Max. Anthropic allows signing in to a Claude account only through Anthropic's own sign-in.
See what the key used
Open Settings, then Your AI, and choose the key. Gary shows this month's use through the key, by Gary and by routine, at Anthropic's API rates. Your bill is in Anthropic's console.
To cap the spending, set a limit on the key in Anthropic's console. When the key reaches it, Gary tells you and stops using the key.
How the key is kept
- The key goes to a secrets store attached to your Gary's computer. It isn't kept in QUANTIS's database or written to logs.
- The AI model never sees the key. Gary adds it to requests going to Anthropic and nowhere else.
- Gary's settings keep only the last 4 characters, to show you which key is connected.
- Nobody can read the key back from Gary, including you and QUANTIS staff.
See Security.
Remove or replace your key
- Open Settings, then Your AI.
- Choose Replace to paste a new key, or Remove, then confirm.
After you remove a key, Gary goes back to the AI your plan includes. Removing the key from Gary doesn't delete it at Anthropic. To stop the key working everywhere, delete it in Anthropic's console.
If the key stops working
When Anthropic refuses the key during a job, Gary doesn't quietly switch to your plan. It asks which you want: wait, or finish the job on your plan's credit. Settings shows Needs you beside the key, and you get a notification.
| Settings shows | What to do |
|---|---|
| Anthropic no longer accepts it. Connect it again. | The key was deleted or disabled. Connect a new one. |
| It's at its spending limit or out of credit with Anthropic. | Add credit or raise the limit in Anthropic's console. |
| Anthropic refused it for this use. | Check the key's workspace and permissions. |
| Anthropic's limit for it was reached. | Wait for Anthropic's rate limit to reset. |
Other providers and your own models
To use a model you run yourself, or any provider with an OpenAI-compatible endpoint, see Bring your own model.