Title: $L_\infty$ algebras and Donaldson-Thomas invariants. Abstract: We define the notion of cyclic differential graded Lie algebras. By transfer theorem the cohomology $H(L)$ of a cyclic differential graded Lie algebra $L$ has a cyclic $L_\infty$-algebra structure. We prove that there is a potential function $W: H^1(L)-->\C$ such that the moduli space associated to the deformation of $L$ is the critical locus of the differential $dW$. The Milnor number of $L$ is defined to be the Milnor number of the function $W$. As an application, the Donaldson-Thomas differential graded Lie algebra is a cyclic differential graded Lie algebra of dimension 3. The pointed Donaldson-Thomas invariant is the Milnor number of this cyclic differential graded Lie algebra.