Policy implications are derived for an inflation-targeting central bank, whose credibility is endogenous and depends on its past ability to achieve its targets. This is done in a New Keynesian framework with heterogeneous and boundedly rational expectations.