Secret card for API-key checks
The Secret card lets a chat request a one-time check of an Anthropic API key. Enter the key in the card’s dedicated field. Compass makes the check, and the agent receives the result without seeing the key.
For a key you want to use in future chats, go to Agents and models and configure the provider on your computer.
Availability
Section titled “Availability”The card requires a compatible Compass Server and client. Use the following steps if your build offers credential requests.
- Clients. The browser client and the Compass Code app for iPhone can answer the card.
- Device access. Only a device paired with Everything access can answer. Other devices show the card as read-only.
- Connection. The client must be connected live over HTTPS or a loopback address on the host. A saved or offline copy of the chat can’t answer.
- Chat. Only a top-level chat in Ask, Auto, or Full access mode can ask. Plan-mode chats, delegated tasks, and Navigator runs can’t ask for or use credentials.
What the check does
Section titled “What the check does”| Item | Scope |
|---|---|
| Accepted key | One Anthropic API key. A single token of up to 512 visible characters with no spaces |
| Operation | One request to list models at api.anthropic.com |
| Sends | The key authenticates the request. The check sends no conversation content and calls no model |
| Spending | None approved |
| Result to the agent | Only accepted, rejected, or unavailable |
The card shows the exact operation, destination, and spending limit before you decide.
Answer the card
Section titled “Answer the card”- Ask in an eligible chat, for example, “Use the Secret card to verify an Anthropic API key.” In Ask or Auto, review the normal network approval if it appears.
- Open the credential request in the chat. Read the agent’s reason, operation, recipient, spending limit, and expiry. The request should name Anthropic’s Models API and show No spending approved.
- Enter the key in Paste key in the iPhone app or Credential in the browser, then choose Provide securely. Choose Decline if the request doesn’t match your task.
- Review any separate approval to run the check in Ask or Auto. Declining that action discards the key unused.
Answer before Expires. If the request closes, ask for a fresh one in a new turn.
Card statuses
Section titled “Card statuses”| Status | Meaning |
|---|---|
| Waiting for you | The card is open |
| Provided | Compass received the key |
| Used | Compass claimed the one-time grant. Check the tool result to see whether the key was accepted |
| Declined | You declined. The agent is told you won’t give the key |
| Expired | Nobody answered in time |
| Canceled | The turn or request ended before the check completed |
How long Compass keeps the key
Section titled “How long Compass keeps the key”- Compass keeps the key in the server’s memory only. It doesn’t write the key to chat history, files, logs, or exports.
- The agent gets a one-use reference instead of the key. The reference works only in the same turn and only for this check.
- Compass discards the key after one use, after about two minutes unused, or when you decline, tap Stop, the turn ends, or the server restarts.
- Chat history keeps the card’s request and status, but not the key.
- Each turn can ask once. To check another key, start a new turn.
The check relies on the computer running Compass Server, its user account, and your paired client. Anyone who controls that account or a paired device with Everything access can affect this protection. See Privacy and access.
Use provider settings instead
Section titled “Use provider settings instead”The card only checks a key once. To let an agent work with an API key or account, set it up in provider settings on the computer.
| You want to… | Use |
|---|---|
| Confirm an Anthropic API key is valid, when the agent asks | The in-chat card |
| Run chats on a provider with your API key | Provider settings |
| Sign an agent in or out | Provider settings |
| Give a project, script, or tool its own secret | Your own secret-management setup on the host. Compass doesn’t provide a general secret store |
In the Compass Code app, go to Settings, choose the computer, then choose Providers. Available sign-in and key options depend on the agent:
- pi can add providers with an API key using Add provider.
- Antigravity can sign in with a Google account or use a Gemini API key.
- Claude and Codex use their own account sign-in on the host.
Provider credentials are managed by the configured agent or provider on the host. See Agents and models for setup.
