Skip to content

Manage agents, connected apps and payment keys

An agent is the identity Assay uses to group calls and apply rules. A connected app is an AI app signed in to use that agent. A payment key is the separate key your local app uses to sign payments within permission you approve in your wallet. Disconnecting an app and stopping a payment key are different actions.

An API key lets your own program work as an agent. It is a secret you copy into that program. You choose what it can do when you create it, and it expires. It is not the payment key: to pay, the program also needs a payment key that you approve in your wallet.

Open Controls → Agents. The page is titled Agents & keys. Find the agent by name and read its status. Under Keys, each Signed in from row identifies a connected app; API keys appear here too. Each row says what the key can do and when it expires, such as Calls tools · pays · reads activity · Expires Jan 20, 2027. Read the last-used information and the payment-key state beside the relevant row.

Each account has one agent, created when you first sign in (see Create your account). A new API key adds a key to that agent; it does not create another agent.

Keys list with a Signed in from row for a connected app and an API-key row reading Calls tools · pays · reads activity · Expires Jan 20, 2027, both marked
Read where each key comes from, what it can do and when it expires.

Choose Rename beside the agent’s name. Edit the name and choose Save. This changes its label; it does not create a new identity or change its connections or limits.

Agent rename form with its name field and Save marked
Use a name you can recognise in spending and connection views.

Under Keys, find the app’s Signed in from row and choose Revoke. Review the named app before confirming. Revoking stops that app’s access; it must sign in again to reconnect. Other app connections are separate.

If it has an active payment key, keep Also stop its payment key on chain selected when offered. Follow Revoke and sign, or Revoke, then stop its key, and complete the wallet step. Revoking app access alone can leave payment permission active on chain.

If signing fails or you leave payment permission active, the row keeps Stop it. Use it and complete the signature. A failed chain check means the payment key may still be active; it does not prove that payments are off.

To stop payments while keeping free calls working, find that key’s Stop it paying action. Review any payments still settling, then choose Sign to stop paying (free) and complete the wallet signature. Wait for the result and any delay shown.

The payment key loses permission to sign new payments from your balance. The app can still make free calls. Calls already made still need settling and payment; this does not refund earlier calls or withdraw funds.

For a key with expired permission, choose Let it pay again; when permission is absent, choose Let it pay. Check the key fingerprint against your app, review the spending limits and expiry, and complete the wallet signature. If the account ceiling needs raising too, review both requests.

If the app itself was revoked, reconnect it through Connect your AI app first. For an app with no payment key yet, use its setup link in Turn on paid calls. Hosted connectors remain free-only.

The agent shows its saved name. A revoked app no longer has a live connection. A stopped payment key is no longer active on chain; a renewed one shows its permission and expiry. Treat may still be active on chain as unresolved until the chain can be checked.

You see Do this
Payment key still active on chain Use Stop it on the row and complete the wallet step if you intend to stop it.
The payment key could not be checked Retry later; do not assume it is off.
Payments still being settled Read the pending-call warning and wait as offered before stopping or lowering permission.
No payment key, or Let it pay is disabled Use the local app’s paid-call setup link. An API key alone cannot sign payments.
A revoked app needs to connect again Sign it in again through Connect your AI app.
A key row says create a new key soon, or Expired The key ends within a week, or has ended. Create a new key, put it in your program, then revoke the old one.
Your program says This key cannot pay or that it is missing a permission The key was made with fewer permissions. Create a key with Agent and use it instead.
Optional: API keys for My own code

For a program you build, use Use an API key instead under the agent’s Keys, or New key if it already has an API key. Enter Key name. Open Advanced to see what the key can do and when it expires.

Under What it can do, choose one:

Choice What the key can do
Agent (default) Calls tools, pays for paid calls within your limits, and reads its own activity.
Free calls only Calls tools, but can never pay.
Read only Reads its own activity. It cannot call tools or pay.

Select Can report bad results if the program should be able to flag a tool result that was wrong. It is off unless you need it, and not offered for Read only.

The choices add up from four permissions:

Permission What it allows
Call tools Find, read and call tools.
Pay Take part in paid calls, with a payment key you approved. A key can pay only if it can also call tools.
Read activity Read its own balance, calls and receipts.
Report bad results Report a tool result that was wrong.

No key can change your limits, your keys or where your alerts go. Only you can, signed in to Assay.

Under Expires after, choose 30 days, 90 days (default) or 1 year. The key stops working then; you can revoke it sooner. There is no key that never expires. Choose Create key.

New key drawer with Key name, Advanced open showing Agent and 90 days selected, and Create key marked
Name the key for the program or machine that will use it, then check what it can do and when it expires.

Copy the full key immediately and store it securely. It is shown only once; Assay cannot show it again. If you lose it, create a replacement and revoke the old key. The page also says when the key expires: create a new key before then. Use the connection details for My own code described in Connect your AI app. Your program also needs to sign payments to use paid tools.

Created key, blurred, with Copy it now and the line Expires Jan 20, 2027. Create a new key before then. marked
Copy the key now and note when it expires.

To revoke it, find its API-key row under Keys, choose Revoke and review the confirmation. If it has active payment permission, complete the separate on-chain stop too. A new API key does not cancel an older key.

Revoke Reporting script confirmation with Revoke marked
Check the key name before revoking. This example was cancelled.
Optional: a new payment key is waiting for your approval

A program that uses an API key can ask to replace its payment key, for example when it moves to a new server. The new key does not take over by itself. Its row shows New payment key with its fingerprint and is waiting for your approval, and says it replaces the current key, which keeps paying until you approve.

Key row with the yellow box New payment key F159 14D4 is waiting for your approval and Discard marked
The current key keeps paying while the new one waits.
  • To approve it, open the link your program showed. The page is titled Replace the payment key for the app and shows both fingerprints: the new one under Payment key and the old one under Current payment key:. Check the new one against your program, then approve as in Turn on paid calls. Afterwards, choose Stop the old key and sign, so the old key can never pay again.
  • If you did not ask for it, choose Discard, then Discard key. The current key keeps paying. Your program must ask again to replace it. Choose Keep it to leave the request waiting.
Discard this new payment key? confirmation with Discard key marked and Keep it beside it
Discarding needs a second click. This example was kept.