# diagrid agent create

Create an Agent

### Description

Create an Agent in a project.

```
diagrid agent create <agent> [flags]
```

### Examples

```

  # Create an identity-only Agent (no endpoint)
  diagrid agent create my-agent --project my-project

  # Create an Agent with an endpoint
  diagrid agent create my-agent --project my-project --endpoint https://myagent.myorg.com/

```

### Options

```
  -p, --project string                    Name of existing project
  -e, --endpoint string                   Endpoint used to establish outbound connectivity from the Agent to your external application
  -t, --endpoint-token string             Token used to secure calls from the Agent to your provided endpoint
      --endpoint-protocol string          Protocol used to interact with the endpoint: http (default) or grpc
  -w, --wait                              Wait for long-running resource creation to finish
      --ignore-if-exists                  Exit with success if the Agent already exists instead of returning an error
      --archive-binding-name string       Output-binding component name to write archived workflow history through. Setting this enables archiving
      --archive-binding-type string       Binding component type for the archive destination (e.g., "bindings.aws.s3")
      --enable-workflow-archive strings   Workflow statuses to archive: COMPLETED, FAILED, TERMINATED. Comma-separated or repeated. Statuses not listed are not archived
      --label stringToString              Label (key=value) applied to the Agent's workload pod and service account. Repeatable. Only supported in self-hosted regions (default [])
      --annotation stringToString         Annotation (key=value) applied to the Agent's workload pod and service account, e.g. for managed identity. Repeatable. Only supported in self-hosted regions (default [])
  -h, --help                              help for create
```

### Options inherited from parent commands

```
      --api-key string   Diagrid Cloud API key
```

### SEE ALSO

- [diagrid agent](./agent.md)	 - Manage Agents
