<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2024"
  xmlns:ecd="http://xbrl.sec.gov/ecd/2024"
  xmlns:link="http://www.xbrl.org/2003/linkbase"
  xmlns:xbrldi="http://xbrl.org/2006/xbrldi"
  xmlns:xlink="http://www.w3.org/1999/xlink">
    <link:schemaRef xlink:href="agfy-20250430.xsd" xlink:type="simple"/>
    <context id="c0">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001800637</identifier>
        </entity>
        <period>
            <startDate>2024-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="c1">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001800637</identifier>
            <segment>
                <xbrldi:typedMember dimension="ecd:RestatementDateAxis">
                    <ecd:RestatementDateAxis.domain>2024-08-12</ecd:RestatementDateAxis.domain>
                </xbrldi:typedMember>
            </segment>
        </entity>
        <period>
            <startDate>2024-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <dei:EntityRegistrantName contextRef="c0" id="ixv-73">Agrify Corporation</dei:EntityRegistrantName>
    <ecd:InsiderTrdPoliciesProcAdoptedFlag contextRef="c0" id="ixv-3749">true</ecd:InsiderTrdPoliciesProcAdoptedFlag>
    <ecd:AwardTmgMnpiDiscTextBlock contextRef="c0" id="ixv-1352">&lt;p class="Text_ind" style="margin:0;padding:0;border-width:0;font-family:Times New Roman PS Std, serif;font-size:10pt;font-style:normal;font-variant:normal;font-weight:normal;margin-bottom:0;margin-left:0;margin-right:0;margin-top:8pt;orphans:2;page-break-after:auto;page-break-before:auto;text-align:justify;text-indent:24pt;widows:3;margin-top:8pt;"&gt;Although we have not adopted a formal policy pertaining to the timing of stock option grants, it is our practice not to time the grant of equity awards, including stock options, in relation to the release of material non&lt;span class="nobreak"&gt;-public&lt;/span&gt; information. Similarly, we do not time the disclosure of material nonpublic information for the purpose of affecting the value of executive compensation. Although we have not recently granted stock options to our named executive officers, the Compensation Committee generally approves the grant of annual equity awards for the Company&#x2019;s executive officers, including each of the named executive officers, in December of each year. In special circumstances, &lt;/p&gt;including the hiring or promotion of an individual or where the Compensation Committee determines it is in the best interest of the Company, the Compensation Committee may approve grants of equity awards at other times. During the year ended December&#160;31, 2024, we did not grant stock options or SARs to any named executive officer during any period beginning four&#160;business days before and ending one business&#160;day after the filing of any Quarterly Report on Form&#160;10&lt;span class="nobreak"&gt;-Q&lt;/span&gt;, Annual Report on Form&#160;10&lt;span class="nobreak"&gt;-K&lt;/span&gt;, or Current Report on Form&#160;8&lt;span class="nobreak"&gt;-K&lt;/span&gt;, in each case that disclosed any material non&lt;span class="nobreak"&gt;-public&lt;/span&gt; information</ecd:AwardTmgMnpiDiscTextBlock>
    <ecd:AwardTmgMethodTextBlock contextRef="c0" id="ixv-1354">Although we have not adopted a formal policy pertaining to the timing of stock option grants, it is our practice not to time the grant of equity awards, including stock options, in relation to the release of material non&lt;span class="nobreak"&gt;-public&lt;/span&gt; information.</ecd:AwardTmgMethodTextBlock>
    <ecd:AwardTmgHowMnpiCnsdrdTextBlock contextRef="c0" id="ixv-3750">Similarly, we do not time the disclosure of material nonpublic information for the purpose of affecting the value of executive compensation.</ecd:AwardTmgHowMnpiCnsdrdTextBlock>
    <ecd:AwardTmgMnpiCnsdrdFlag contextRef="c0" id="ixv-3751">false</ecd:AwardTmgMnpiCnsdrdFlag>
    <ecd:MnpiDiscTimedForCompValFlag contextRef="c0" id="ixv-3752">false</ecd:MnpiDiscTimedForCompValFlag>
    <ecd:AggtErrCompNotYetDeterminedTextBlock contextRef="c1" id="ixv-1366">&lt;p class="H2" style="margin:0;padding:0;border-width:0;font-family:Times New Roman PS Std, serif;font-size:10pt;font-style:normal;font-variant:normal;font-weight:bold;margin-bottom:0;margin-left:0;margin-right:0;margin-top:12pt;orphans:99;page-break-after:avoid;page-break-before:auto;text-align:justify;text-indent:0;widows:1;margin-top:12pt;"&gt;&lt;span class="Bold" style="font-style:normal;font-weight:bold;"&gt;Clawback Policy&lt;/span&gt;&lt;/p&gt;&lt;p class="Text_ind" style="margin:0;padding:0;border-width:0;font-family:Times New Roman PS Std, serif;font-size:10pt;font-style:normal;font-variant:normal;font-weight:normal;margin-bottom:0;margin-left:0;margin-right:0;margin-top:8pt;orphans:2;page-break-after:auto;page-break-before:auto;text-align:justify;text-indent:24pt;widows:3;margin-top:8pt;"&gt;We have adopted a clawback policy (the &#x201c;Clawback Policy&#x201d;) in accordance with the listing standards and rules of the Nasdaq Stock Market, that requires the Board to recoup excess compensation paid to our executive officers as a result of a financial statement restatement, regardless of any misconduct, fault or illegal activity on the part of the executive officer. The Clawback Policy applies in the case of an accounting restatement due to the material noncompliance of the Company with any financial reporting requirement under the securities laws. The Clawback Policy applies to all incentive&lt;span class="nobreak"&gt;-based&lt;/span&gt; compensation, which is any compensation that is granted, earned, or vested based wholly or in part upon the attainment of a financial reporting measure, received by our executive officers.&lt;/p&gt;&lt;p class="Text_ind" style="margin:0;padding:0;border-width:0;font-family:Times New Roman PS Std, serif;font-size:10pt;font-style:normal;font-variant:normal;font-weight:normal;margin-bottom:0;margin-left:0;margin-right:0;margin-top:8pt;orphans:2;page-break-after:auto;page-break-before:auto;text-align:justify;text-indent:24pt;widows:3;margin-top:8pt;"&gt;On August&#160;12, 2024, the Audit Committee, in consultation with management, concluded that our previously issued unaudited condensed consolidated interim financial statements as of and for the fiscal quarter ended March&#160;31, 2024 included in our Quarterly Report on Form&#160;10&lt;span class="nobreak"&gt;-Q&lt;/span&gt; for such period (the &#x201c;Q1 2024 10&lt;span class="nobreak"&gt;-Q&lt;/span&gt;&#x201d;) should no longer be relied upon. Similarly, earnings releases and investor communications describing the financial statements for the period described above should no longer be relied upon. We identified errors in the accounting for a settlement we entered into with Mack Molding Company which became effective in the first quarter of 2024. Specifically, the Q1 2024 10&lt;span class="nobreak"&gt;-Q&lt;/span&gt; misstated notes payable, current, notes payable, net of current, accumulated deficit and total stockholders&#x2019; equity (deficit), on the face of the unaudited condensed consolidated balance sheet as of March&#160;31, 2024, and cost of goods sold, general and administrative expenses, gain on settlement of contingent liabilities, and interest income (expense), net, on the unaudited condensed consolidated statement of operations, for the three&#160;months ended March&#160;31, 2024. On August&#160;14, 2024, we filed an amendment to the Q1 2024 10&lt;span class="nobreak"&gt;-Q&lt;/span&gt; that restated our financial statements for the three&#160;months ended March&#160;31, 2024 to correct the errors described above. Our Board concluded that no recoupment of erroneously awarded compensation was required pursuant to the Clawback Policy because there were no outstanding incentive&lt;span class="nobreak"&gt;-based&lt;/span&gt; compensation arrangements that were granted, earned, or vested, either in whole or in part, based on any financial reporting measure that was included in the Q1 2024 10&lt;span class="nobreak"&gt;-Q&lt;/span&gt;.&lt;/p&gt;</ecd:AggtErrCompNotYetDeterminedTextBlock>
    <ecd:RestatementDeterminationDate contextRef="c1" id="ixv-3753">2024-08-12</ecd:RestatementDeterminationDate>
    <dei:DocumentType contextRef="c0" id="hidden-fact-0">DEF 14A</dei:DocumentType>
    <dei:EntityCentralIndexKey contextRef="c0" id="ixv-3757">0001800637</dei:EntityCentralIndexKey>
    <dei:AmendmentFlag contextRef="c0" id="ixv-3758">false</dei:AmendmentFlag>
</xbrl>
