Skip to content

Desktop Installation

This guide explains how to install and use the Hagicode Desktop application. Hagicode Desktop is a powerful and easy-to-use desktop application that provides you with a complete Hagicode experience.

Hagicode Desktop is Hagicode’s official desktop application, designed for Windows, macOS, and Linux systems. It integrates all of Hagicode’s core features and makes the installation process simple and fast through an installation wizard.

  • One-click Installation: Complete all configuration steps automatically through the installation wizard
  • Automatic Dependency Management: Automatically detects and installs required runtime environments (like .NET runtime)
  • Service Management: Built-in Hagicode Server management, easily start and stop services
  • Version Switching: Support for multi-version management, freely switch between different versions
  • Local Operation: All data is stored locally, protecting your privacy
  • Automatic Updates: Automatically detects and downloads the latest version

Hagicode Desktop is suitable for the following scenarios:

  • Individual developers who want to use Hagicode locally
  • Users who need to use Hagicode offline
  • Non-technical users who want to simplify the installation process
  • Developers who need to frequently switch between different versions

Select the version suitable for your operating system and download the installer directly:

You can also get the Hagicode Desktop installer from the following channels:

  1. Official Release Page: Visit Hagicode GitHub Releases to download the latest version
  2. Official Website: Visit Hagicode Website to get download links

Select the corresponding installer for your operating system:

  • Windows: Download the .exe installer
  • macOS: Recommended: install the Docker version (Go to Container page)
  • Linux: Download the .AppImage or .deb installer package

After downloading, run the installer. You will see the Hagicode Desktop installer welcome screen.

Hagicode Desktop provides a four-step installation wizard to guide you through the complete installation process. Here are detailed instructions for each step:

The installation wizard will guide you to select a pre-configured AgentCLI for installation.

Select AgentCLI

This Step Explains:

  • View the list of available AgentCLI options
  • Select your pre-configured AgentCLI
  • Confirm selection and continue to next step

After configuration is complete, the wizard will automatically download the latest version of Hagicode.

Download Hagicode

This Step Explains:

  • Wizard automatically detects and downloads the latest stable version
  • Download progress is displayed in real-time
  • Automatically proceeds to next step after download completes

Hagicode supports different AI models for different regions. You can choose the appropriate region based on your location.

Select Region

Region Selection Explains:

  • Mainland China: Optimized network connection, suitable for users in China
  • International Region: Suitable for overseas users or users with special network requirements

AI Installation Wizard

The wizard will automatically configure and launch the AI installation process based on your selected region.

This Step Explains:

  • AI assistant guides you through the installation process
  • Please follow the on-screen prompts
  • If you encounter issues, click “Need Help” for support

AI Installation in Progress

Installation Complete

Confirm Success

After AI installation is complete, the wizard will launch the Hagicode Server service.

Starting Hagicode Server

This Step Explains:

  • Hagicode Server starts automatically in the background
  • Startup usually takes only a few seconds
  • After startup completes, you can start using Hagicode

When Hagicode Server successfully starts, you will see the following interface.

Open Hagicode

Click the “Open Hagicode” button to start using.

When you first enter Hagicode, you can create your first project through the built-in import wizard.

Create Project Wizard

Project Creation Steps:

  1. Click “Create New Project”
  2. Configure project name and path
  3. Select programming language and framework
  4. Configure API settings
  5. Complete project creation

If you already have an existing Git repository, you can easily import it into Hagicode.

Import Git Repository

Import Steps:

  1. Click “Import Project”
  2. Enter the folder path containing Git repositories
  3. Hagicode will automatically scan all Git repositories in that folder
  4. Select the repository you want to import and confirm

Hagicode Desktop supports multi-version management, allowing you to freely switch between different versions.

Version Management

  1. Open Hagicode Desktop
  2. Go to “Version Management” page
  3. Select the version you want to switch
  4. Click “Switch Version” button
  5. Wait for switch to complete

Hagicode Desktop provides a simple way to manage Hagicode Server service.

On the home page of the Desktop application, click the “Start Service” button to start Hagicode Server.

Start Service

To stop Hagicode Server, click the “Stop Service” button on the home page.

After installation is complete, you can continue with the following steps:

If you encounter issues during installation:

  1. Check Network Connection: Ensure you can access the internet
  2. Check Disk Space: Ensure you have sufficient disk space
  3. Run as Administrator: On Windows, right-click the installer and select “Run as administrator”
  4. View Log Files: The installer generates detailed log files that can help diagnose issues

If dependency installation fails:

  1. Check System Compatibility: Ensure your operating system meets minimum requirements
  2. Manually Install Dependencies: You can manually download and install .NET runtime
  3. Check Firewall Settings: Ensure firewall doesn’t block the installer
  4. Restart Application: Try restarting Hagicode Desktop
  5. View Logs: View detailed error logs in the Desktop application

If Hagicode Server fails to start:

  1. Check Port Occupancy: Ensure port 45000 is not occupied by other programs
  2. Check Firewall Settings: Ensure firewall allows Hagicode Server network access
  3. Restart Application: Try restarting Hagicode Desktop
  4. View Logs: View detailed error logs in the Desktop application

If you encounter issues not covered here:

  1. Check GitHub Issues for similar problems
  2. Visit our Community Forum for help
  3. Submit a new Issue, describing your problem in detail