I think his sole reason for running was to push the Democrats' agenda further leftward and he is getting labor endorsements, so that puts him in the position to have influence on a Clinton campaign. Clinton's problems will be with millenials and labor. Sanders has considerable support in both of those sectors of the Democrats' constituencies. I think Sanders is there to (1) motivate them and (2) convince Clinton that she can't win without the support of these constituencies.