On devices
The developer at the keyboard
Usually
Personal token in .env or an MCP config on the laptop
Add to Claude Code, Cursor or Copilot, or keycard run. Access per task from Keycard; device-attested identity is early accessto confirm
Agent deployment patterns
On a laptop, in a vendor's cloud or in yours. In a chat thread, beside a person, in the background or on a schedule. Each agent keeps one identity, and Keycard decides access for the task in front of it.
Each place an agent runs has its own shortcut for access. Each shortcut leaves a long-lived key somewhere.
A key in a file on the device.
GITHUB_TOKEN=ghp_•••••••• SALESFORCE_KEY=sk_••••••
A token pasted into the vendor.
"oauth": {
"refresh_token": "rt_••••"
}A service account key in env or CI.
AWS_SECRET_ACCESS_KEY= AKIA••••••••
The same question, whose access is this, has a different answer in each mode.
What changes for access in each pattern, and what Keycard does about it.
The developer at the keyboard
Usually
Personal token in .env or an MCP config on the laptop
Add to Claude Code, Cursor or Copilot, or keycard run. Access per task from Keycard; device-attested identity is early accessto confirm
A person or a team
Sometimes
A token pasted into the vendor, or a broad OAuth grant
Governs what it reaches through Keycard, or gives it your custom tools. Harnesses like ChatGPT and Claude Cowork can call agents built with Keycard over OAuth 2.1. Coverageto confirm
A person, another agent or itself
Often not
Service account key in env vars, CI or a secrets store
Workload identity federation: the agent proves who it is from its runtime, with no secrets on disk. SDKs or the sidecar egress proxy
Whoever asked, or itself in a shared channel
Yes, in the thread
One static bot token shared by every requester
Maps the Slack user to their identity and issues short-lived access per request, scoped to that person. Shared channel agents use their own identity. Other chat toolsto confirm
The person it's working beside
Yes
The person's own token, pasted in
Delegated access for the task. It can't reach anything that person can't. Asking the person for more mid-task is coming soonto confirm
The person who handed off, through the chain
No
A long-lived key so the job doesn't fail overnight; keys passed down the chain
Access tied to the session that started the work, narrowing at each hop and ending when the session closes. Maximum run lengthto confirm
Itself (or a team)
No
A service account with broad access; every key, all the time
Acts as itself with its own identity, modeled as an application. Policy checked before every tool call; short-lived scoped tokens. Event triggersto confirm
Build it in Cursor, deploy it to your cloud, let people ask it things in Slack, and hand it a nightly job. It keeps one identity, and Keycard picks the right access for each request.
The rules don't change when the deployment does.
The agent acts as itself, for a person, another agent or itself.
Access is short-lived, tied to the task, and delegated from Keycard.
When agents call agents, access can only get smaller.
Cut off one agent mid-task, without touching the person it works for.