<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2025"
  xmlns:link="http://www.xbrl.org/2003/linkbase"
  xmlns:xlink="http://www.w3.org/1999/xlink">
    <link:schemaRef xlink:href="cpwr-20260707.xsd" xlink:type="simple"/>
    <context id="From2026-07-07to2026-07-07">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000827099</identifier>
        </entity>
        <period>
            <startDate>2026-07-07</startDate>
            <endDate>2026-07-07</endDate>
        </period>
    </context>
    <dei:EntityCentralIndexKey contextRef="From2026-07-07to2026-07-07" id="ixv-239">0000827099</dei:EntityCentralIndexKey>
    <dei:AmendmentFlag contextRef="From2026-07-07to2026-07-07" id="ixv-240">false</dei:AmendmentFlag>
    <dei:CurrentFiscalYearEndDate contextRef="From2026-07-07to2026-07-07" id="ixv-241">--12-31</dei:CurrentFiscalYearEndDate>
    <dei:DocumentType contextRef="From2026-07-07to2026-07-07" id="ixv-261">8-K</dei:DocumentType>
    <dei:DocumentPeriodEndDate contextRef="From2026-07-07to2026-07-07" id="ixv-262">2026-07-07</dei:DocumentPeriodEndDate>
    <dei:EntityRegistrantName contextRef="From2026-07-07to2026-07-07" id="ixv-263">Ocean Thermal Energy Corp.</dei:EntityRegistrantName>
    <dei:EntityIncorporationStateCountryCode contextRef="From2026-07-07to2026-07-07" id="ixv-264">NV</dei:EntityIncorporationStateCountryCode>
    <dei:EntityFileNumber contextRef="From2026-07-07to2026-07-07" id="ixv-265">033-19411-C</dei:EntityFileNumber>
    <dei:EntityTaxIdentificationNumber contextRef="From2026-07-07to2026-07-07" id="ixv-266">20-5081381</dei:EntityTaxIdentificationNumber>
    <dei:EntityAddressAddressLine1 contextRef="From2026-07-07to2026-07-07" id="ixv-267">3675 Market Street</dei:EntityAddressAddressLine1>
    <dei:EntityAddressAddressLine2 contextRef="From2026-07-07to2026-07-07" id="ixv-268">Suite 200</dei:EntityAddressAddressLine2>
    <dei:EntityAddressCityOrTown contextRef="From2026-07-07to2026-07-07" id="ixv-269">Philadelphia</dei:EntityAddressCityOrTown>
    <dei:EntityAddressStateOrProvince contextRef="From2026-07-07to2026-07-07" id="ixv-270">PA</dei:EntityAddressStateOrProvince>
    <dei:EntityAddressPostalZipCode contextRef="From2026-07-07to2026-07-07" id="ixv-271">19104</dei:EntityAddressPostalZipCode>
    <dei:CityAreaCode contextRef="From2026-07-07to2026-07-07" id="ixv-272">717</dei:CityAreaCode>
    <dei:LocalPhoneNumber contextRef="From2026-07-07to2026-07-07" id="ixv-273">299-1344</dei:LocalPhoneNumber>
    <dei:WrittenCommunications contextRef="From2026-07-07to2026-07-07" id="ixv-274">false</dei:WrittenCommunications>
    <dei:SolicitingMaterial contextRef="From2026-07-07to2026-07-07" id="ixv-275">false</dei:SolicitingMaterial>
    <dei:PreCommencementTenderOffer contextRef="From2026-07-07to2026-07-07" id="ixv-276">false</dei:PreCommencementTenderOffer>
    <dei:PreCommencementIssuerTenderOffer contextRef="From2026-07-07to2026-07-07" id="ixv-277">false</dei:PreCommencementIssuerTenderOffer>
    <dei:EntityEmergingGrowthCompany contextRef="From2026-07-07to2026-07-07" id="ixv-278">false</dei:EntityEmergingGrowthCompany>
</xbrl>
