Amazon has agreed to invest up to $4 billion in the AI startup Anthropic, the two firms said, as the e-commerce group steps up its rivalry against In Amazon, Anthropic finds a deeply-pocketed strategic investor that can also provide compute power and help sell the offerings to cloud customers.