This document presents a fractional order PID controller (FOPID)-Toolbox to design robust fractional PID controllers. The toolbox uses nonsmooth optimization techniques to optimize the parameters of fractional PIαDβ and (PID)n controllers to achieve a desired crossover frequency and phase margin. The goal is to develop a systematic method to optimize the parameters of these fractional order controllers based on expressing the control problem and requirements in terms of a desired open-loop response and using a loop shaping configuration. An algorithm is proposed that initializes the fractional orders, computes the gradient with respect to the orders, and iteratively updates the orders using steepest descent until convergence.