Your master key
Your key looks likeak_ followed by a long random string, for example ak_abc123.... You create and manage keys from the console. Each key is scoped to your account, so a single compromised key can affect your entire balance and all services.
How to set up your key
Create a key in the console
Sign in to the console and generate a new master key. Copy the value — it is shown only once in full. Store it somewhere secure immediately, such as a password manager.
Add credits to your balance
Your key is linked to a pay-as-you-go credit balance. Top up your balance from the console before making your first call. See Pay-as-you-go for how costs work across different tools and providers.
Provide the key during install
After you install AgentKey, the setup flow prompts you for your key and stores it in the correct location for your agent and operating system. Follow those prompts exactly — do not hard-code the key into a project file or an environment variable you commit to version control.
Storing keys safely
Keeping your key secure is straightforward if you follow a few simple practices:- Let the setup flow store the key. The installer places your key in the right location for your environment. Do not copy it into
.envfiles, config files, or scripts that live in a repository. - Use a separate key per environment. Create distinct keys for development, staging, and production. That way you can rotate or revoke one key without disrupting the others.
- Rotate immediately if a key is exposed. If you accidentally commit a key, paste it in a chat, or suspect it has been leaked, go straight to the console, revoke the old key, and generate a new one. Update any running installations promptly.
The exact steps for provisioning and rotating keys — including per-environment setup — are confirmed during installation and available in the console. This page describes the general authentication model; refer to the console for the authoritative workflow.