Model access
Use an API key
Enduragent ships without a model. An API key is how you bring your own: a token you create in a provider's console, billed by what you use rather than by the month. Nine providers work.
What an API key is
A long secret string that identifies your account to a model provider. Anything sent with it is charged to you, which is why it is handled like a password: created in a console, pasted once, revocable at any time.
Billing is per token, roughly three-quarters of a word, counted going in and coming out. There is no monthly minimum and nothing to cancel. A month you do not use Enduragent is a month you do not pay for.
The nine providers
| Provider | Console | Notes |
|---|---|---|
| Anthropic | console.anthropic.com | Claude models. |
| OpenAI | platform.openai.com | GPT models. Separate from a ChatGPT subscription — a plan does not give you a key. |
| aistudio.google.com | Gemini models. | |
| OpenRouter | openrouter.ai | One key, many models, including every vendor in this table. |
| DeepSeek | platform.deepseek.com | DeepSeek models. |
| Qwen | Alibaba Cloud Model Studio | Qwen models. |
| MiniMax | platform.minimaxi.com | MiniMax models. |
| Kimi | platform.moonshot.ai | Moonshot AI. Long-context models. |
| Z.AI | z.ai | GLM models. |
Four steps
- Create an account with the provider Use the console link above. This is a developer account, separate from any consumer chat product the same company sells.
- Add billing before you create the key Most providers need a card or prepaid credit before a key will work. Doing it first avoids the common failure: a key that looks valid and then fails on the first message with a quota or billing error.
-
Create the key
Look for API keys in the console. Create one, name it something you
will recognise later —
enduragent— and copy it straight away. Most providers show the full key once. If you lose it, delete it and make another. -
Paste it into Enduragent
In the Mac app, choose the API key lane in setup, pick the provider, and paste. For the
command-line version, set
LLM_PROVIDERandLLM_API_KEYin your environment or config file.
What it costs
You pay the provider directly, at their published rate. Enduragent is free and MIT licensed, adds nothing to the bill and takes no cut. Cheap models cost very little per conversation. Frontier models cost more and reason better over a long, messy training history.
Enduragent keeps a local spend meter and lets you set a daily cap. Treat both as an estimate rather than a billing control — the meter is Enduragent's own arithmetic, not your provider's invoice. Set a hard spending limit in the provider console as well. It is worth doing on day one.
Keeping the key safe
- Treat it like a password. Anyone holding it can spend your balance.
- Never paste it into a chat window. Not Enduragent's, not anyone's. It belongs in the settings field.
- Revoke rather than worry. If a key is ever exposed, delete it in the provider console. It stops working immediately. Create a fresh one and paste that.
- It stays with you. The Mac app encrypts keys in macOS secure storage, the Keychain. There is no Enduragent account and no server holding your training history. The key goes to the provider and nowhere else.