Docs menu
Get an Anthropic API key
Create an Anthropic API key for Claude in the Claude Console, add credit, and paste it into Settings → AI provider. Which Claude models to pick and what it costs.
Nearlysent uses your own API key to call Claude. You pay Anthropic directly for what you use. Nearlysent never adds a fee and never sees your bill.
1. Create an account and add credit
- Sign up or log in at the Claude Console (platform.claude.com).
- Add a payment method and buy some prepaid credit under Billing. A small amount goes a long way: with the recommended models a reply costs around one cent (see Pricing).
- Optional but wise: set a monthly spend limit in the Console as well.
The API is separate from a Claude.ai chat subscription. A Pro or Max plan does not include API credit. Have a Claude plan but no API key? Use Nearlysent with Claude instead: Claude drafts replies on your plan when you ask it.
2. Create the key
- Open the API keys page of the Claude Console. This is the same link as How do I get an API key from Anthropic (Claude)? in the app.
- Click Create Key, give it a name you will recognise later (for example the name of this app) and create it.
- Copy the key. It starts with
sk-ant-and is shown only once.
Use a separate key for Nearlysent, so you can revoke it without affecting anything else.
3. Add it to your workspace
- In your workspace, go to Settings → General → AI provider. You need the Admin or Owner role.
- Provider: choose Anthropic (Claude).
- API key: paste the key and click Validate & save.
- You see “Key validated and saved.” and the status Valid.
The Models card is then filled in with the recommended models:
| Setting | Recommended | Why |
|---|---|---|
| Triage model | Claude Haiku 5.5 | Sorts incoming mail. Fast and very cheap. |
| Draft model | Claude Sonnet 5.5 | Writes the replies. Good quality for the price. |
Claude Opus 5.5 is also listed for the drafts. It is stronger and costs about twice as much per reply. You can switch at any time; the next draft uses the new model.
Errors when saving
| Message | What to do |
|---|---|
| The provider rejected this API key. Check it and try again. | The key was copied incompletely or has been revoked. Create a new one. |
| Your account at the provider has no credit left. Top it up and try again. | Buy credit under Billing in the Claude Console. |
| The provider did not answer in time. Try again. | A temporary problem at the provider. Try again in a minute. |
If Anthropic later rejects the key (for example after you revoked it), the app shows “Your AI key was rejected by the provider. Add a new key to keep drafting.” Click Replace key and paste a new one.
Keep costs under control
- Set a Monthly token cap under Settings → General (the card below the AI provider). AI calls stop for the rest of the month once it is used up.
- Follow the Usage card (this month) and the Dashboard (per day).
- A spend limit in the Claude Console is a second safety net.
How your key is stored
The key is encrypted (AES-256-GCM) before it is stored, is never written to logs and is never sent back to your browser. The app only shows its last four characters. Remove key deletes it. See Security & privacy.
Something unclear or missing in the docs?Tell us.