← Portfolio/free-code

free-code

Installation — Linux & macOS. CLI, VS Code / Cursor plugin, and the macOS desktop app.

Supported platforms

free-code runs on Linux and macOS.

Read this first — what the installer does (and doesn't) do
The install script sets up the command-line app (CLI). On macOS it also installs the desktop app. The VS Code / Cursor plugin is NOT installed by the script — it's a short, separate step you do by hand afterwards (see Install the VS Code / Cursor plugin below).
PlatformInstaller scriptWhat the script sets upEditor plugin
Linux installation/install-free-code-linux.sh CLI + dependencies Manual — see below
macOS installation/install-free-code-mac.command CLI + desktop app (FreeCodeMac) Manual — see below

Both scripts live in the installation/ folder of the repository.

Linux — install the CLI

One script installs the free-code command-line app and everything it needs.

This installs the CLI only. Want to use free-code inside VS Code or Cursor? Do the quick plugin step after this.

Step 1 — Run the install script

bash /<path/to/repo>/installation/install-free-code-linux.sh

The script sets up everything you need to run free-code on Linux:

StepWhat it installs
Node.js (LTS)nvm + latest LTS; set as default
Dependenciesnpm install at repo root
free-code CLInpm install -g ./packages/coding-agent
agent-browsernpm install -g agent-browser
RAG (optional)Python venv for the local knowledge-base server

Step 2 — Start free-code

Run the CLI in your terminal:

free-code

Step 3 — Configure your AI provider

You only need one provider to get started:

# Login (Claude, GitHub Copilot, Gemini, and others)
/login

# Or set an API key for your provider, e.g.
export ANTHROPIC_API_KEY=sk-...
Tip
Add any export line to your ~/.bashrc or ~/.zshrc so it persists across terminal sessions.

macOS — install the CLI & desktop app

One script installs everything: Homebrew, Node.js, dependencies, the CLI, and the native desktop app.

Before you start
Close VS Code, Cursor, or any other IDE before running the script.
This installs the CLI and the desktop app. The VS Code / Cursor plugin is a separate step — do the quick plugin step afterwards if you want it.

Step 1 — Run the install script

Option A — double-click in Finder:

open /<path/to/repo>/installation

Double-click install-free-code-mac.command in that folder.

Option B — from the terminal:

bash /<path/to/repo>/installation/install-free-code-mac.command

The script handles everything automatically:

StepWhat it installs
HomebrewInstalls if not present
ColimaContainer runtime (via Homebrew)
Node.js (LTS)nvm + latest LTS; set as default
Dependenciesnpm install at repo root
free-code CLInpm install -g ./packages/coding-agent
agent-browsernpm install -g agent-browser
FreeCodeMac.appCopies the .app bundle to /Applications

Step 2 — Start Free-Code

Open FreeCodeMac from /Applications, or run in the terminal:

free-code

Step 3 — Configure your AI provider

Set the API key for your chosen provider. You only need one to get started.

# Login (Claude, GitHub Copilot, Gemini, and others)
/login

# Google Vertex AI
export GOOGLE_APPLICATION_CREDENTIALS=/path/to/credentials.json

Tip
Add the export line to your ~/.zshrc so it persists across terminal sessions.

Install the VS Code / Cursor plugin

Optional. Adds a free-code chat panel inside your editor. Works the same on Linux and macOS.

No terminal needed. You install the plugin from inside VS Code or Cursor by clicking a few buttons. Follow the steps below exactly — you don't need any command line.

What you need first

  • VS Code or Cursor installed on your computer.
  • The free-code folder you downloaded (the same one where the install script lives). Inside it there is a plugin file at:
    packages/vscode-free-code/vscode-free-code-0.66.1.vsix
    A .vsix file is just the packaged plugin.

Step 1 — Open the Extensions panel

Open VS Code or Cursor. On the left side bar, click the Extensions icon (four little squares). Or press:

  • macOS: Cmd + Shift + X
  • Linux: Ctrl + Shift + X

Step 2 — Choose “Install from VSIX…”

  1. At the top of the Extensions panel, find the small (three dots) menu button and click it.
  2. In the menu that opens, click Install from VSIX…

Step 3 — Pick the plugin file

A file picker opens. Go into the free-code folder, then into packagesvscode-free-code, and select:

vscode-free-code-0.66.1.vsix

Click Install. You'll see a small confirmation in the bottom-right corner.

Step 4 — Reload the editor

If a Reload button appears, click it. Otherwise just close and reopen VS Code / Cursor.

Step 5 — Open the free-code chat

Open the Command Palette (Cmd/Ctrl + Shift + P), type free-code, and choose the command to open the chat panel. Type / in the input to see all commands.

Prefer the terminal?
If you're comfortable with the command line, you can install it in one line from inside the free-code folder instead:
# VS Code
code --install-extension packages/vscode-free-code/vscode-free-code-0.66.1.vsix

# Cursor
cursor --install-extension packages/vscode-free-code/vscode-free-code-0.66.1.vsix

CLI only (any platform)

Node.js 20+ required. Works on macOS, Linux, and Windows.

1. Install Node.js 20+

# via nvm (recommended)
nvm install --lts
nvm use --lts

2. Install the CLI

npm install -g ./packages/coding-agent

3. Verify

free-code --version

4. Start

free-code                              # interactive
free-code "Summarize this project"     # one-shot
cat README.md | free-code -p "Summarize"  # pipe input

Code graph (optional)

Adds symbol indexing and call graph navigation to the agent.

# From the repository root
npm install -g ./packages/code-graph

Once installed, the code_index, code_symbols, code_callers, and code_context tools become available automatically in every session.

First use
Open a project and run /codeGraph-index. The agent will index all .ts / .js files and store the result in .code-graph/ at the project root.

Add .code-graph/ to your .gitignore — the index is regenerated on demand and does not need to be committed.

Code graph full documentation →