Keycard

Agent deployment patterns

Agents, wherever they run.

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.

Where an agent runs decides where its key hides.

Each place an agent runs has its own shortcut for access. Each shortcut leaves a long-lived key somewhere.

  • On devices: a personal token in .env or an MCP config on the laptop.
  • In a vendor's managed cloud: a token pasted into the vendor, or a broad OAuth grant that never expires.
  • In your own cloud: a service account key in env vars, CI or a secrets store.

Laptop

A key in a file on the device.

GITHUB_TOKEN=ghp_••••••••
SALESFORCE_KEY=sk_••••••

Vendor cloud

A token pasted into the vendor.

"oauth": {
  "refresh_token": "rt_••••"
}

Your cloud

A service account key in env or CI.

AWS_SECRET_ACCESS_KEY=
  AKIA••••••••

How an agent works decides who it acts for.

The same question, whose access is this, has a different answer in each mode.

  • In chat: whoever asked in that message, or the agent itself in a shared channel.
  • In-band: the person it is working beside, in the moment.
  • Background: the person who handed off the work, carried through the run.
  • Proactive: the agent itself, started by an event or a schedule.

Chat

Person present: yes

acts for the asker

In-band

Person present: yes

acts for the person beside it

Background

Person present: no

acts for whoever handed off

Proactive

Person present: no

acts as itself

Seven patterns, one access model.

What changes for access in each pattern, and what Keycard does about it.

Pattern
Who it acts for
Person present
Today's shortcut
With Keycard
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
Managed cloud (vendor-hosted)
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
Your own cloud
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
Chat (Slack and other tools)
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
In-band
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
Background
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
Proactive
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

On devices

Who it acts for

The developer at the keyboard

Person present

Usually

Today's shortcut

Personal token in .env or an MCP config on the laptop

With Keycard

Add to Claude Code, Cursor or Copilot, or keycard run. Access per task from Keycard; device-attested identity is early accessto confirm

Managed cloud (vendor-hosted)

Who it acts for

A person or a team

Person present

Sometimes

Today's shortcut

A token pasted into the vendor, or a broad OAuth grant

With Keycard

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

Your own cloud

Who it acts for

A person, another agent or itself

Person present

Often not

Today's shortcut

Service account key in env vars, CI or a secrets store

With Keycard

Workload identity federation: the agent proves who it is from its runtime, with no secrets on disk. SDKs or the sidecar egress proxy

Chat (Slack and other tools)

Who it acts for

Whoever asked, or itself in a shared channel

Person present

Yes, in the thread

Today's shortcut

One static bot token shared by every requester

With Keycard

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

In-band

Who it acts for

The person it's working beside

Person present

Yes

Today's shortcut

The person's own token, pasted in

With Keycard

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

Background

Who it acts for

The person who handed off, through the chain

Person present

No

Today's shortcut

A long-lived key so the job doesn't fail overnight; keys passed down the chain

With Keycard

Access tied to the session that started the work, narrowing at each hop and ending when the session closes. Maximum run lengthto confirm

Proactive

Who it acts for

Itself (or a team)

Person present

No

Today's shortcut

A service account with broad access; every key, all the time

With Keycard

Acts as itself with its own identity, modeled as an application. Policy checked before every tool call; short-lived scoped tokens. Event triggersto confirm

One agent can be all of these.

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.

  • In Slack, a request runs with the access of the person who asked.
  • Overnight, it finishes the work with access tied to the session that started it.
  • On a schedule, it acts as itself, with its own access.

ci-fixer

one identity

Laptop

task: fix CI

Your cloud

task: deploy

Slack

for the asker

In-band

for the person beside it

Background

session-tied

Proactive

acts as itself

What stays the same in every mode.

The rules don't change when the deployment does.

  • Every agent has its own identity and 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 narrow at each hop.
  • Real-time audit trail. Cut off one agent mid-task, without touching the person it works for.

Own identity

The agent acts as itself, for a person, another agent or itself.

Per task

Access is short-lived, tied to the task, and delegated from Keycard.

Narrows at each hop

When agents call agents, access can only get smaller.

On the record

Cut off one agent mid-task, without touching the person it works for.

Questions

We only run coding agents today.
Start there. The identity your agent gets on a laptop carries to your cloud, to Slack and to scheduled work later.
Vendor-hosted agents aren't ours to change.
Keycard governs what they reach through Keycard, or gives them access to your custom tools. Which vendor runtimes, and how identity is establishedto confirm.
Background jobs can't stop for a login.
They don't have to. Access is tied to the session that started the work and ends when it closes. Proactive agents act as themselves.

Free to start.