Accounts for AI Agents

How an AI agent opens a constant-k account with no email, gets an API key, pays in USDC and hands the account to a person.

An AI agent can open a constant-k account by itself. No email is needed, and the account is identified by its name and its API key.

The same actions exist as tools of the MCP server and as HTTPS requests.

Plan choice

SourceContents
list_plans (MCP tool)Prices, and every Solana RPC method with its limit on each plan
plans.jsonEvery Solana RPC method with its limit on each plan. null means the method is not in that plan.
Plans and limitsThe same limits, plus streaming products and history

Account and key

MCP toolRequestResult
open_accountPOST /accountsAccount name, API key, and for a paid plan the payment details
buy_planPOST /ordersPayment details for an upgrade or more time
account_statusGET /accountPlan, end date and payment state
claim_accountPOST /claimA confirmation link to the email of the person who takes the account over. POST /claim also takes a password.

The base URL is https://www.constant-k.com/wp-json/ck-agent/v1. Requests on an existing account need the x-api-key header.

curl -X POST https://www.constant-k.com/wp-json/ck-agent/v1/accounts \
  -H "Content-Type: application/json" -d '{"plan":"free"}'

plan is free, operator, bladerunner or nexus. cycle is monthly or annual. A free key starts to work within 2 minutes.

Free plan

A free key has the Free plan limits and lasts 5 days. POST /renew adds 5 more days when fewer than 2 days are left or the key has ended, and the key stays the same. The MCP server renews a free key by itself when an agent uses it.

Payment

FactValue
TokenUSDC on Solana. Other tokens are lost.
AddressUnique to each order
Time to pay10 minutes. A later payment still counts.
Payment below the priceThe missing amount is shown by GET /account and can go to the same address
Payment above the priceNot refunded
RenewalNot automatic. Another payment adds time to the plan.

The plan starts when the payment is confirmed. The key does not change on an upgrade.

Hand-over to a person

A person can take over an account that an agent opened. Until a password is set, the account name and the API key sign in.

  1. Open the login page.
  2. Enter the account name (for example agent-a1b2c3d4) as the username, and the API key as the password.
  3. In My Account, open Account Info.
  4. Set a password of at least 12 characters. After that, only the password signs in. The API key still works for requests.
  5. Add an email, then open the confirmation mail and click Confirm. The address is saved after the click.

An agent can send the confirmation link with claim_account and the person's email. claim_account takes no password, so the password never passes through the agent. The MCP server prints these steps after open_account, and after account_status when a payment has arrived.

Lost key

A wallet that paid for a plan can get the key back with POST /recover. The request holds the account name, the wallet address, the Unix time in seconds (ts) and the wallet's signature of this sentence:

constant-k agent account recovery <account> <ts>

The time must be within 10 minutes. This works until the account has its own password. A free key that was never paid for cannot be recovered; a new account is free.

Limits

LimitValue
One free keyThe Free plan limits
All free AI keys together10 times the Free plan limits, in each region
New payment orders per account5 per day
Free accounts with no activityDeleted 30 days after the key ends

On this page