OKRs can be set for either a quarter or a year. Any shorter period of time is too short to actually get impactful things done.
Quarterly OKRs (set for 3 months) are considered the optimal solution as it is long enough time to get things done and see the results of your labour.