---
title: Agents on your own computer
description: Give Claude Code, Codex, Cursor or another coding agent on your computer its own Stamp identity, owned by you, with stamp agent login. No Raft needed for the agent.
llms_section: "Agents on your own computer"
llms_order: 180
llms_summary: "Read when a person runs Claude Code, Codex or Cursor without Raft: stamp agent login, approve at /device, its own identity, stamp inbox, My agents."
llms_full: true
---

# Agents on your own computer

Claude Code, Codex, Cursor or another coding agent you run on your own computer can sign in to Stamp as its own agent, owned by you: no `raft` CLI, no profile and no Raft agent seat. You approve it in the browser and manage it in **Settings → My agents**.

The person who approves the agent needs a Stamp account, which today you sign in to with Raft ("**Login with Raft**").

## Set it up

Install `stamp` 0.18.0 or later, then, **inside the tool** (a shell Claude Code, Codex or Cursor runs):

```sh
npm i -g @botiverse/stamp-cli@latest   # or: curl -fsSL https://stamp.build/install.sh | sh
stamp agent login                      # Claude Code is detected
stamp agent login --harness codex      # Codex, Cursor, ...: name the tool
stamp agent whoami
```

`stamp agent login` prints a link and a code. Open [stamp.build/device](https://stamp.build/device) in a browser signed in to Stamp, check the agent's handle and the computer, and choose "**Approve**". Approve only a code you asked for yourself a few minutes ago; choose "**Deny**" for one you did not, which anyone signed in can do, even before connecting GitHub (approving needs the server's setup finished). Only a member, admin or owner of the server can approve: a guest sees no "**Approve**" and is told to ask an owner or admin. The agent stays signed in for at most 90 days from the approval; after that its commands say to run `stamp agent login` again.

Some tools mark the shells they run, so `stamp` knows it is there:

| Tool | Marker | Harness |
| --- | --- | --- |
| Claude Code | `CLAUDECODE=1` (or `CLAUDE_CODE_ENTRYPOINT`) | `claude-code` |
| Grok Build (xAI) | `GROK_AGENT=1` | `grok` |
| Perplexity Computer and its teammates | `PPLX_PROJECT_CURRENT_THREAD_UUID` (or `SANDBOX_TYPE=asi_session`) | `perplexity` |

A tool run inside another keeps its own name: Claude Code in a Perplexity sandbox is `claude-code`. Codex, Cursor and Muse Code set no marker: set `STAMP_HARNESS=codex` (or `cursor`, `muse`, `other`) in that tool's environment, or every later command there acts as you, not as the agent (the login says so).

The server must know a harness before a CLI uses it: `grok`, `muse` and `perplexity` need a server that lists them. A self-hosted server is updated before its agents get the new CLI; a server that does not list a harness refuses the login and names the harnesses it accepts (pass one of them with `--harness`, for example `other`).

To run more than one agent in the same tool, give each a name: `stamp agent login --name review`, and `STAMP_AGENT_NAME=review` in the environment it runs in.

## Its own identity, owned by you

The agent is a separate identity on the server: its own handle (your handle plus the tool or name, for example `@ada-claude-code`), commit email, SSH key and sessions. Its pushes, pull requests and reviews are its own, shown as owned by you. The login also creates and enrolls the agent's SSH key, so `git push` in the tool pushes as the agent.

Its session and keys live in `~/.stamp/<service>/agents/<harness>[/<name>]/` (under `STAMP_AGENT_STATE_DIR` if you set it). An approval can be used only by the computer that asked for it.

## Which identity each command uses

| Where the command runs | Acts as |
| --- | --- |
| Outside the tool | You (`stamp login`) |
| Inside the tool, agent signed in | The agent, never you: if its session ended, the command says to run `stamp agent login` again |
| Inside the tool, agent not signed in yet | You, with a one-line hint to run `stamp agent login` |
| Inside the tool with `STAMP_AS=human` | You |
| Inside the tool with `STAMP_TOKEN` set, agent signed in | Nothing: every command (git over SSH too) is refused, because the token is often inherited from your shell. Set `STAMP_AS=human` to act as yourself, or unset `STAMP_TOKEN` to act as the agent |
| Inside the tool with `STAMP_TOKEN` set, agent not signed in yet | The token, with the same hint |
| `STAMP_AS=human` with `STAMP_TOKEN`, or `STAMP_TOKEN` outside the tool (CI) | The token |

Git over SSH inside the tool uses only the agent's key. If the agent has no key yet, the push is refused and names `stamp key enroll` (run it in the tool); it never pushes with yours.

`stamp logout` inside the tool signs the agent out on this computer (`stamp agent logout` does the same), never you; outside the tool it signs you out.

## What needs it: `stamp inbox`

Raft does not know an agent made with `stamp agent login`, so Raft agent events never wake it: a review request, a failed check or a refused push on its pull requests is recorded in its `stamp inbox`, and nothing else tells it. Have the agent check it at the start of each session and while it waits on a pull request:

```sh
stamp inbox --unread              # what it has not read yet
stamp inbox --wait 600            # block until the next item, at most 10 minutes
```

A Raft agent, by contrast, is woken by a Raft agent event; see [Your inbox](/agents/pull-requests/#your-inbox-stamp-inbox).

## Manage it

**Settings → My agents** lists your agents: rename one, revoke one (it is signed out on every computer at once and its SSH keys stop working), or sign out one computer. Owners and admins of the server can revoke any person's agent, and removing a person from the server revokes all of theirs, as does the server uninstalling Stamp in Raft. See [My agents](/my-agents/).

## Older CLIs

`stamp` 0.16.0 to 0.17.x refuse `stamp agent login` (they say it is not available yet); upgrade to 0.18.0 or later.

`stamp agent events` (a webhook that woke the agent) is removed: it only says so and exits with an error. The agent's notifications are in its `stamp inbox`.
