---
title: "Agent access codes"
description: "How agent access codes work: create scoped credentials for AI agents with product access, deploy or delete permissions, and soft or hard monthly budget caps."
url: "https://edge.network/docs/agent/access-codes"
section: "Agent tooling"
---

# Agent access codes

Scoped credentials that let AI agents deploy and manage your infrastructure within defined limits.

## Overview

Agent access codes are separate from API keys. They're designed specifically for AI agents, with built-in scoping for products, permissions and budgets.

```text
Format: ea_live_{random_64_hex}
Example: ea_live_7f3a9b2c4d5e6f1a8b9c0d1e2f3a4b5c...
```

> [!WARNING]
> Agent codes are shown once at creation. Store them securely. If lost, revoke the old code and create a new one.

## Creating an access code

1. Open [Account → Agent Access](/console/agent-access) from the user menu.
2. Click **Create Agent Code**.
3. Enter a descriptive name (e.g. "Cursor Agent", "CI/CD Deploy").
4. Select which products the agent can access.
5. Choose permissions (Deploy, Manage, Delete).
6. Optionally set a budget cap with soft or hard enforcement.
7. Copy the generated code immediately.

## Scoping

### Products

Control which Edge products the agent can access:

- **Compute:** VMs, scaling
- **CDN:** Deployments, domains
- **Storage:** Buckets, uploads
- **DNS:** Zones, records
- **Shield:** Bot protection
- **Assist:** AI answers

### Permissions

| Permission | Allows |
|---|---|
| Deploy | Create resources, upload files, deploy applications |
| Manage | View, update and manage existing resources, check health |
| Delete | Delete resources and tear down projects |

### Budget caps

Set a monthly spending limit for the agent:

- **Soft cap:** The agent receives a warning when approaching the limit but can continue operating. Useful for flexibility with awareness.
- **Hard cap:** The agent is blocked from creating new resources once the limit is reached. Useful for strict cost control.

## Authentication

Pass the agent access code as a Bearer token:

```http
GET https://edge.network/agent
Authorization: Bearer ea_live_7f3a9b2c4d5e6f1a...
```

## Managing codes

- **Edit:** Update the name, products, permissions and budget cap at any time.
- **Revoke:** Immediately invalidate a code. Agents using it lose access instantly.
- **Last used:** See when each code was last used to identify inactive codes.
- **Multiple codes:** Create separate codes for different agents or environments.

## Best practices

- **One code per agent:** Use separate codes for each AI tool (Cursor, CI/CD, etc.) for clear audit trails.
- **Least privilege:** Only enable the products and permissions the agent actually needs.
- **Set a budget cap:** Even a generous soft cap gives you visibility into agent spending.
