# Build from source

> Learn how to build the OpenTelemetry Collector from source

---

LLMS index: [llms.txt](/llms.txt)

---

You can build the latest version of the Collector based on the local operating
system using the following commands:

```sh
git clone https://github.com/open-telemetry/opentelemetry-collector.git
cd opentelemetry-collector
make install-tools
make otelcorecol
```
