Veteran quarterback Joe Flacco has agreed with the Colts on a one-year deal worth up to $8.7 million, sources told ESPN.