[step:Reduce to coordinate form by choosing a chart at $p$]
Choose a smooth chart $(W, \psi)$ on $M$ with $p \in W$ and $\psi(p) = 0 \in \mathbb{R}^n$. Write $\widehat W := \psi(W) \subseteq \mathbb{R}^n$, which is open and contains $0$. The vector field $X$ pushes forward to a smooth vector field on $\widehat W$ whose components we denote by $a_1, \dots, a_n \in C^\infty(\widehat W, \mathbb{R})$, so that for every $y \in \widehat W$,
\begin{align*}
(\psi_* X)(y) = \sum_{i=1}^{n} a_i(y)\, \partial_{y_i}.
\end{align*}
Here $\psi_* X$ is defined pointwise by $(\psi_* X)(\psi(x)) = d\psi_x(X(x))$ for $x \in W$.
The flow problem for $X$ on $W$ is equivalent, under the chart $\psi$, to the flow problem for $\psi_* X$ on $\widehat W$. Throughout the remainder we work on $\widehat W$, write $y = (y_1, \dots, y_n)$ for coordinates in $\mathbb{R}^n$, and construct a local flow $\widehat\varphi$ for the system
\begin{align*}
\frac{d y_i}{d t} = a_i(y_1(t), \dots, y_n(t)), \qquad y_i(0) = y_{0, i}, \qquad i = 1, \dots, n,
\end{align*}
with initial condition $y_0 = (y_{0,1}, \dots, y_{0,n}) \in \widehat W$. At the end, $\varphi := \psi^{-1} \circ \widehat\varphi \circ (\mathrm{id} \times \psi)$ will be the required local flow on $M$.
[/step]