# Run with CLI

## Running the Agent

To start the agent, run:

```bash
stoobly-agent run
```

The above command will expose the proxy on port 8080 and the UI on port 4200

{% hint style="info" %}

* If the proxy port conflicts, configure it with the `--proxy-port INTEGER` flag
* If the UI port conflicts, configure it with `--ui-port INTEGER` flag
  {% endhint %}

Then you should see output similar to this to indicate that the agent started up successfully:

```
[INFO] UI starting and listening at 0.0.0.0:4200
[INFO] Proxy starting with mode regular and listening at 0.0.0.0:8080
[INFO] Proxy not yet configured to record
```

For macOS users, because `stoobly-agent` is a proxy server, you might be prompted to accept incoming network connections . Click "Allow".
