The OSS/CIA was patterned after Britain’s Secret Intelligence Service (MI6), the foreign intelligence arm, and the wartime Special Operations Executive (SOE).
MI5 is the domestic intelligence service, which is more like the FBI, but without the FBI’s law enforcement powers.