{"id":372,"date":"2025-03-13T21:02:56","date_gmt":"2025-03-13T21:02:56","guid":{"rendered":"https:\/\/blog.hostinger.io\/support\/2025\/03\/13\/10771345-hostinger-horizons-how-to-export-code\/"},"modified":"2026-10-02T02:53:40","modified_gmt":"2026-10-02T02:53:40","slug":"10771345-hostinger-ai-builder-agentic-mode-how-to-export-code","status":"publish","type":"post","link":"https:\/\/www.hostinger.com\/support\/10771345-hostinger-ai-builder-agentic-mode-how-to-export-code\/","title":{"rendered":"Hostinger AI Builder: How to export code in agentic mode"},"content":{"rendered":"<p class=\"no-margin\">Export your <a href=\"https:\/\/hostinger.com\/ai-builder\" target=\"_blank\" rel=\"noopener\">Hostinger AI Builder<\/a> agentic mode project code to use it outside the builder, access its backend, and make manual changes to your project.<\/p><h2 id=\"h_5ad98a224b\">Exporting the code<\/h2><p class=\"no-margin\">Inside your Hostinger dashboard, go to <a class=\"intercom-content-link\" href=\"https:\/\/hpanel.hostinger.com\/websites\" target=\"_blank\" rel=\"noopener\">Websites List<\/a> and open the project you wish to export:<\/p><div class=\"intercom-container intercom-align-center\"><img decoding=\"async\" class=\"alignnone size-full wp-image-19462\" src=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/10\/2026-10-02_09-50.png\" alt=\"\" width=\"859\" height=\"535\" srcset=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/10\/2026-10-02_09-50.png 859w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/10\/2026-10-02_09-50-300x187.png 300w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/10\/2026-10-02_09-50-768x478.png 768w\" sizes=\"(max-width: 859px) 100vw, 859px\" \/><\/div><p class=\"no-margin\">Inside Hostinger AI Builder, click on the <a href=\"https:\/\/www.hostinger.com\/support\/11987074-hostinger-ai-builder-agentic-mode-code-editor\/\"><b>Code <\/b>tab<\/a> at the top of the editor.<\/p><div class=\"intercom-container intercom-align-center\"><img decoding=\"async\" class=\"alignnone size-full wp-image-6062\" src=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2025\/03\/code-1.png\" alt=\"Hostinger AI Builder Code tab highlighted in the top navigation\" width=\"622\" height=\"168\" data-media-id=\"6062\" srcset=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2025\/03\/code-1.png 622w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2025\/03\/code-1-300x81.png 300w\" sizes=\"(max-width: 622px) 100vw, 622px\" \/><\/div><div>You&rsquo;ll see the <b>Export code<\/b> option under the files sidebar:<br>\n<img decoding=\"async\" class=\"alignnone size-full wp-image-6063\" src=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2025\/03\/code-2.png\" alt=\"Horizons editor sidebar with the Export code button highlighted\" width=\"335\" height=\"132\" data-media-id=\"6063\" srcset=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2025\/03\/code-2.png 335w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2025\/03\/code-2-300x118.png 300w\" sizes=\"(max-width: 335px) 100vw, 335px\" \/><\/div><div class=\"intercom-interblocks-callout\" style=\"background-color: #e3e7fa80;border-color: #334bfa33\">\n<p class=\"no-margin\">The exported code is a <b>Node.js project<\/b> built with <b>React and Vite<\/b>. At the moment, this is the <b>only format available<\/b> for export and is the <b>default output<\/b>.<\/p>\n<\/div><p class=\"no-margin\">Click <b>Export<\/b> to start generating the code. Once the process is complete, a <b>.zip file<\/b> containing your full project will be available for download. You can save it to your <b>local device<\/b> and extract the contents to see and access the complete codebase.<\/p><div class=\"intercom-interblocks-callout\" style=\"background-color: #e3e7fa80;border-color: #334bfa33\">\n<p class=\"no-margin\">Remember that once you export Hostinger AI Builder project, there is no way to import the edited version back to Hostinger AI Builder and continue with prompting. You will need to proceed with manual edits or start a new project. Note that exporting the code only covers your project&rsquo;s frontend and logic files &mdash; it does not include your<a href=\"https:\/\/www.hostinger.com\/support\/what-is-the-integrated-backend-in-hostinger-ai-builder-agentic-mode\/\"> integrated backend data<\/a>, which remains managed separately within Hostinger AI Builder.<\/p>\n<\/div><h2 id=\"h_0d4ec13483\">What can be done with the exported code<\/h2><p class=\"no-margin\">After exporting the code, you can:<\/p><ol>\n<li>\n<p class=\"no-margin\"><b>Edit it manually<\/b>: To do this, you&rsquo;ll need <b>coding knowledge<\/b> and <b>Node.js installed<\/b> on your local machine. This is necessary to run and modify the project properly, as it is based on Node.js tooling (Vite\/React).<\/p>\n<\/li>\n<li>\n<p class=\"no-margin\"><strong>Deploy to Business or Cloud hosting plans<\/strong>: You can now deploy Node.js applications directly to <strong>Business\/Unlimited Web Hosting<\/strong>&nbsp;or <strong>Cloud hosting plans<\/strong> (Cloud Startup, Cloud Professional, Cloud Enterprise, or Cloud Enterprise Plus) using Hostinger&rsquo;s Node.js Web Apps feature. For detailed instructions, check out our guide on <a class=\"underline underline underline-offset-2 decoration-1 decoration-current\/40 hover:decoration-current focus:decoration-current\" href=\"\/support\/how-to-deploy-a-nodejs-website-in-hostinger\/\">how to deploy a Node.js website in Hostinger<\/a>.<\/p>\n<\/li>\n<li>\n<p class=\"no-margin\"><strong>Import to a VPS<\/strong>: You can also upload the code to a VPS server where Node.js is available and configured. You can check more details about <a class=\"underline underline underline-offset-2 decoration-1 decoration-current\/40 hover:decoration-current focus:decoration-current\" href=\"https:\/\/www.hostinger.com\/support\/9553137-how-to-set-up-a-node-js-application-using-hostinger-cloudpanel\/\">using Node.js on VPS in this guide here<\/a>.<\/p>\n<\/li>\n<li>\n<p class=\"no-margin\"><b>Convert it to static files<\/b>: If you want to host the project on <b>shared or cloud hosting plans<\/b>, you must first <b>convert the code into static files<\/b> (HTML, CSS, and JS). You can do this by building the project using Vite (<code>npm run build<\/code>), which outputs static assets that can be hosted on any web server.<\/p>\n<\/li>\n<\/ol><div class=\"intercom-interblocks-callout\" style=\"background-color: #e3e7fa80;border-color: #334bfa33\">Uploading the raw exported code <b>directly to Hostinger dashboard (shared or cloud hosting)<\/b> without converting it to static files <b>will not work<\/b>.<\/div><p class=\"no-margin\">To use the exported code inside Hostinger dashboard, <b>you will need basic coding knowledge<\/b> to be able to make the conversion to static files.<\/p><p class=\"no-margin\">If you have the static files ready, you can import them back to your Hostinger dashboard by doing the following:<\/p><ol>\n<li>\n<p class=\"no-margin\">On <a class=\"intercom-content-link\" href=\"https:\/\/hpanel.hostinger.com\/websites\" target=\"_blank\" rel=\"noopener\">Websites List<\/a>, click on <b>Create website<\/b>:<\/p>\n<\/li>\n<li>\n<p class=\"no-margin\">On the dropdown menu, select <b>PHP\/HTML website<\/b>:<br>\n&#8203;<img decoding=\"async\" class=\"alignnone size-full wp-image-19436\" src=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/10\/2026-10-02_09-22.png\" alt=\"\" width=\"875\" height=\"329\" srcset=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/10\/2026-10-02_09-22.png 875w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/10\/2026-10-02_09-22-300x113.png 300w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/10\/2026-10-02_09-22-768x289.png 768w\" sizes=\"(max-width: 875px) 100vw, 875px\" \/><\/p>\n<\/li>\n<\/ol><p class=\"no-margin\">After that, you can go to your File Manager and import the static files. For more details, you can check our guide on <a class=\"intercom-content-link\" href=\"https:\/\/www.hostinger.com\/support\/1869114-how-to-upload-backups-with-file-manager-in-hostinger\/\" target=\"_blank\" rel=\"noopener\">how to upload backups manually<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Export your Hostinger AI Builder agentic mode project code to access its backend and make manual changes.<\/p>\n","protected":false},"author":581,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"include_on_kodee":true,"footnotes":""},"categories":[293],"tags":[],"class_list":["post-372","post","type-post","status-publish","format-standard","hentry","category-ai-builder"],"hreflangs":[{"locale":"en-US","link":"https:\/\/www.hostinger.com\/support\/10771345-hostinger-horizons-how-to-export-code\/","default":1}],"include_on_kodee":true,"_links":{"self":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/372","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/users\/581"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/comments?post=372"}],"version-history":[{"count":12,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/372\/revisions"}],"predecessor-version":[{"id":19465,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/372\/revisions\/19465"}],"wp:attachment":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/media?parent=372"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/categories?post=372"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/tags?post=372"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}