<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:cef="http://xbrl.sec.gov/cef/2026"
  xmlns:dei="http://xbrl.sec.gov/dei/2026"
  xmlns:iso4217="http://www.xbrl.org/2003/iso4217"
  xmlns:link="http://www.xbrl.org/2003/linkbase"
  xmlns:us-gaap="http://fasb.org/us-gaap/2026"
  xmlns:xbrldi="http://xbrl.org/2006/xbrldi"
  xmlns:xflt="http://www.xainvestments.com/20260331"
  xmlns:xlink="http://www.w3.org/1999/xlink">
    <link:schemaRef xlink:href="xflt-20260331.xsd" xlink:type="simple"/>
    <context id="c0">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0002000645</identifier>
        </entity>
        <period>
            <startDate>2025-10-01</startDate>
            <endDate>2026-03-31</endDate>
        </period>
    </context>
    <context id="c1">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0002000645</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:StatementClassOfStockAxis">xflt:ClassIMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2026-03-31</instant>
        </period>
    </context>
    <context id="c2">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0002000645</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:StatementClassOfStockAxis">xflt:ClassAMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2026-03-31</instant>
        </period>
    </context>
    <context id="c3">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0002000645</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:StatementClassOfStockAxis">xflt:ClassAMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-10-01</startDate>
            <endDate>2026-03-31</endDate>
        </period>
    </context>
    <unit id="usdPershares">
        <divide>
            <unitNumerator>
                <measure>iso4217:USD</measure>
            </unitNumerator>
            <unitDenominator>
                <measure>shares</measure>
            </unitDenominator>
        </divide>
    </unit>
    <dei:EntityRegistrantName contextRef="c0" id="ixv-8470">Octagon XAI CLO Income Fund</dei:EntityRegistrantName>
    <dei:DocumentPeriodEndDate contextRef="c0" id="ixv-112">2026-03-31</dei:DocumentPeriodEndDate>
    <us-gaap:NetAssetValuePerShare
      contextRef="c1"
      decimals="2"
      id="ixv-8471"
      unitRef="usdPershares">23.57</us-gaap:NetAssetValuePerShare>
    <us-gaap:NetAssetValuePerShare
      contextRef="c2"
      decimals="2"
      id="ixv-8472"
      unitRef="usdPershares">23.55</us-gaap:NetAssetValuePerShare>
    <cef:HighestPriceOrBidNav
      contextRef="c3"
      decimals="2"
      id="ixv-8473"
      unitRef="usdPershares">24.02</cef:HighestPriceOrBidNav>
    <cef:InvestmentObjectivesAndPracticesTextBlock contextRef="c0" id="ixv-5584">&lt;p style="font: 10pt Times New Roman, Times, Serif; margin: 0pt 0; text-align: justify"&gt;&lt;span style="font-family: Times New Roman, Times, Serif"&gt;XA
Investments LLC (&#x201c;XAI&#x201d; or the &#x201c;Adviser&#x201d;) serves as the investment adviser to the Fund. The Fund&#x2019;s investment
objective is to provide high income and total return. Under normal market conditions, the Fund will invest at least 80% of its managed
assets in securities of collateralized loan obligation entities (&#x201c;CLOs&#x201d;), including the debt tranches of CLOs (&#x201c;CLO
Debt&#x201d;) and subordinated tranches of CLOs (often referred to as the &#x201c;residual&#x201d; or &#x201c;equity&#x201d; tranche) (&#x201c;CLO
Equity&#x201d;). &#x201c;Managed Assets&#x201d; means the total assets of the Fund, including assets attributable to the Fund&#x2019;s use
of leverage, minus the sum of its accrued liabilities (other than liabilities incurred for the purpose of creating leverage). The Fund
will purchase CLO investments in the primary and secondary markets.&lt;/span&gt;&lt;/p&gt;

&lt;p style="font: 7pt Times New Roman, Times, Serif; margin: 0pt 0 0pt 0.5in; text-align: justify"&gt;&lt;span style="font-family: Times New Roman, Times, Serif"&gt;&#160;&lt;/span&gt;&lt;/p&gt;

&lt;p style="font: 10pt Times New Roman, Times, Serif; margin: 0pt 0; text-align: justify"&gt;&lt;span style="font-family: Times New Roman, Times, Serif"&gt;The
Fund offers, on a continuous basis, two classes of common shares of beneficial interest: Class I Shares and Class A Shares. The Fund
has received exemptive relief from the Securities and Exchange Commission (&#x201c;SEC&#x201d;) which permits the Fund to, among other
things, issue multiple classes of shares, impose on certain of the classes a sales charge or an early withdrawal charge and schedule
waivers of such, and impose class specific annual asset-based distribution and/or shareholder service fees on the assets of the various
classes of shares to be used to pay for expenses incurred in fostering the distribution and/or shareholder servicing of shares of the
particular class. Class I commenced operations on November 4, 2024 and Class A commenced operations on December 2, 2024. The Fund had
no operations prior to November 4, 2024, other than matters relating to its registration and initial sale of 4,000 Class I Shares of
the Adviser, which represented the initial capital of $100,000 at $25.00 per share.&lt;/span&gt;&lt;/p&gt;</cef:InvestmentObjectivesAndPracticesTextBlock>
    <dei:DocumentType contextRef="c0" id="hidden-fact-0">N-CSRS</dei:DocumentType>
    <dei:EntityCentralIndexKey contextRef="c0" id="ixv-8477">0002000645</dei:EntityCentralIndexKey>
    <dei:AmendmentFlag contextRef="c0" id="ixv-8478">false</dei:AmendmentFlag>
</xbrl>
