OpenAI said Friday it struck a deal for the Pentagon to use its models in the US defense agency's classified network, with "safeguards," after President Donald Trump blacklisted AI rival Anthropic.