---
id: "P:cAlgo.API.RobotAttribute.Name"
kind: "property"
type: "T:cAlgo.API.RobotAttribute"
url: "https://help.ctrader.com/ctrader-algo/references/Attributes/RobotAttribute/Name/"
---

> Documentation index for agents: https://help.ctrader.com/ctrader-algo/llms.txt · machine index: https://help.ctrader.com/ctrader-algo/api.json

# RobotAttribute.Name

Member of [RobotAttribute](https://help.ctrader.com/ctrader-algo/references/Attributes/RobotAttribute/index.md).

## Name

The name of a robot. Sets from constructor.

Environments: Desktop supported · CLI supported · Cloud supported.

C#:

```csharp
public string Name {get;}
```

Python:

```python
robotAttribute.Name: str
```

### Returns

`string` — 

### Examples

C#:

```csharp
public partial class NameSample : Robot
{
    protected override void OnStart()
    {
        var attribute = (RobotAttribute)Attribute.GetCustomAttribute(GetType(), typeof(RobotAttribute));
        Print("cBot name: {0}", attribute.Name ?? GetType().Name);
    }
}
```

Python:

```python
def on_start(self):
    api.Print("cBot started")
```

config.json:

```json
{
  "AccessRights": "None"
}
```

