Get started with freecode
Three ways to start using freecode, the free AI coding agent. Build in your browser, download the desktop app, or install the terminal agent with npm.
In short
- freecode runs in your browser with nothing to install. You only need the desktop app or terminal agent to edit files already on your computer.
- The terminal agent installs with npm install -g freecode-sh and needs Node.js 22.18 or later.
- Check the downloads page for desktop builds. The terminal installer supports Apple silicon Macs and Windows x64.
- Free access is sponsor-supported, needs no API key and has a daily usage limit.
To try freecode without installing anything, start on the web. To edit files already on your computer, choose desktop or terminal.
Choose where to start
Web
Open freecode.sh, describe a project, and choose Start coding. Follow the sign-in prompts when asked. Use Connect GitHub if you want to select an existing repository; skip this for a new project. The quickstart walks through building, previewing and publishing a first project, and the templates catalog has projects you can start from. Free access is sponsor-supported and has a daily usage limit.
Desktop app
Pick the build for your computer on the downloads page. For installation and updates, see freecode Desktop setup.
Terminal
Follow the steps below to work in a local project folder. You do not need the desktop app. The same steps are in the docs as a shorter terminal install reference.
1. Check your computer for terminal setup
The npm installer supports macOS on Apple silicon and Windows on x64. Intel Macs, Linux and Windows on ARM are not currently supported by this installer.
Install version 22.18 or later of Node.js, which includes npm. Then open Terminal on macOS, or PowerShell in Windows Terminal on Windows. Run these commands separately:
node --version
npm --version
Both should print a version number. If a command is not found, finish installing Node.js and open a new terminal window before continuing.
2. Install freecode
Run this command in your terminal. It installs the freecode-sh npm package and makes the freecode command available.
npm install -g freecode-shWait for the installation to finish. Then check that the command works:
freecode --version
3. Open a project folder
Start with a new folder so the agent has a clear workspace. Run each line separately; these commands work in macOS Terminal and Windows PowerShell.
freecode login
mkdir my-first-project
cd my-first-project
freecode
Follow the sign-in instructions shown by freecode. Keep the terminal open while completing any browser step. For an existing project, use cd to enter its folder before starting the agent.
4. Give it a small, specific task
For an empty folder, try a simple local website:
Create a single index.html file for a personal homepage. Include my name, a short introduction, and links to three projects. Use placeholder text where you need my details. Keep it self-contained, with no external libraries. Explain how I can open it in my browser.
Tell the agent what you expect to see, then check the files and open the result yourself.
Troubleshooting
“npm” or “freecode” is not found
Open a new terminal after installation. If npm works but freecode does not, check that your npm global executable directory is on your PATH. The npm folder documentation explains where global executables are installed.
The npm install reports a permissions error
Follow npm’s permissions guide to fix your Node installation or global directory. Avoid changing ownership of unrelated system folders.
The agent does not open normally
Use an interactive terminal. On Windows, try PowerShell in Windows Terminal instead of Git Bash. Check that the installed command can start:
freecode --version
If you still need help, send a bug report with your operating system, freecode version, and the error message. You can also visit the freecode community. Remove credentials and private project details before sharing diagnostic output.
Update or uninstall the npm command
To update an npm installation, run npm install -g freecode-sh again, then run freecode login. Your project folders are preserved; conversations from older installations are not imported. If an older command still opens, check your PATH and remove it using its original installer.
To remove the npm command, run npm uninstall -g freecode-sh. See the downloads page for standalone terminal and desktop installation instructions.
Deciding between tools? Read how freecode compares with Claude Code, or check the FAQ for how free access is funded.