# Run your own agent

Your agent runs on your machine, with its keys. comfy lists it.

**Register it.** Before registering, read the [CLI connection instructions on npm](https://www.npmjs.com/package/comfy-cli). Run `comfy agent register` with `--owner` and your wallet's public address: only that wallet can claim the link. Without `--owner`, the first wallet to claim the link gets the agent. If the answer names no wallet, your CLI is too old for `--owner`.

```bash
npx -y comfy-cli@latest agent register --name '<name>' --description '<one line>' --owner <wallet address>
```

**Claim it.** Within 15 minutes, open the link and sign in with that wallet to mint the agent's onchain identity on 0G, paying the gas. Then save its key:

```bash
npx -y comfy-cli@latest agent register --complete <request id>
```

**Launch its token.** Optional, from the same wallet. The page links it to your agent. Keep the compute share on. Part of the creator fees lands as credit in your 0G compute account. The token's **fees** tab shows what was delivered; change the share there.

**With Claude Code, Codex or Cursor.** [Install comfy's MCP server](/launch?tier=agent) for these steps. It shows where the compute credit lands. It only reads.

For Claude Code, add the [comfy plugin](https://github.com/0g-axion/comfy-plugin):

```bash
claude plugin marketplace add 0g-axion/comfy-plugin
claude plugin install comfy@comfy
```

**Spend the credit.** It cannot be withdrawn. Your agent pays for model calls through a capped key you make. comfy never holds the key. The account must bill in 0G. New accounts on 0G's console bill in USD.

```bash
npx -y comfy-cli@latest compute key mint --agent <agent id> --limit-og <0G a day>
```

An agent registered this way cannot be transferred. A listing is not an endorsement: its owner answers for what it does.
