Skip to main content

Install Faheem Code

The faheem-code launcher can run the Canvas client with Agent Server, Automation Server, and ingress as an all-in-one local stack. Use npm or npx for direct local execution, or Docker for a containerized stack with explicit project mounts. You can also run the client separately and connect it to an existing backend.

Choose an install method

MethodUse It WhenWhat The Agent Can Access
npm local installYou want the quickest local browser setup.Runs directly on your machine and can work in local workspaces you open.
DockerYou want a local sandbox with clearer file boundaries.Runs inside a container and can access mounted project directories.
npxYou want to try Faheem Code without installing the package globally.Runs directly on your machine and can work in local workspaces you open.
VM / self-hostedYou want an always-on backend, stronger hardware, or a team-accessible server.Runs on the VM or dedicated host you configure.
From sourceYou are contributing to Faheem Code or changing the frontend/backend stack.Runs your local development checkout.

Verify prerequisites

Install Node.js 22.12 or later and uv, then verify both tools are available:

node --version
npm --version
uv --version

If uv or uvx is missing, install uv before starting Faheem Code. The local agent server runtime uses it.

Install and run

Install the published package globally:

npm install -g @faheem-code/app

Start the full local stack:

faheem-code

Faheem Code starts on http://localhost:8000 by default. If your browser does not open automatically, open that URL manually.

Confirm it started

After startup:

  1. Open http://localhost:8000.
  2. Confirm the default local backend shows as connected.
  3. Open Settings > LLM and configure a model.
  4. Choose Open Workspace before starting a conversation if you want the agent to work in a specific folder.
  5. Return to the home screen and start a conversation.

If the page does not load, check the terminal where Faheem Code is running. Common causes are a missing prerequisite, a busy port, or Docker not running.

Run Faheem Code again

After you close the terminal or restart your computer, start Faheem Code with the same command you used to install it. Keep that terminal or Docker container running while you use the browser UI.

faheem-code

If the UI opens but the backend is disconnected or a model cannot respond, use Troubleshooting to identify the affected part of the stack.

Common startup options

OptionDescription
-p, --port <port>Set the ingress port. The default is 8000.
--backend-onlyStart only the backend behind ingress. Use this for a headless backend on a local machine, VM, or server.
--frontend-onlyStart only the static frontend behind ingress. Use this when connecting a local UI to a remote backend.
--publicEnable public mode. Requires LOCAL_BACKEND_API_KEY and is intended for deployments reachable beyond localhost.
-v, --versionShow the version number.
--infoShow version and stack configuration details.
-h, --helpShow built-in help.

If port 8000 is already in use, start Faheem Code on another port:

faheem-code --port 3000

Environment variables

VariablePurpose
LOCAL_BACKEND_API_KEYAPI key for the server. Required in --public mode; optional for local use because Faheem Code can auto-generate and persist one.
FC_SECRET_KEYSecret used to protect stored settings and secrets.
FC_AGENT_SERVER_VERSIONPin a specific agent server version, such as 0.1.0.
PORTIngress port inside the Docker container. Map it with -p <host>:<PORT>.

Stop Faheem Code

Return to the terminal running Faheem Code and press Ctrl+C.

Update Faheem Code

Stop Faheem Code, then reinstall the latest package:

npm install -g @faheem-code/app@latest
faheem-code --version

Your settings and conversation data are stored outside the package or image when you use the documented ~/.faheem-code mount.

Uninstall Faheem Code

Stop any running Faheem Code process, then uninstall the package:

npm uninstall -g @faheem-code/app

If Windows reports that uv.exe or another file is in use, close terminals running Faheem Code, stop related processes, and run the uninstall command again.

Uninstalling the package or image does not automatically remove your persisted data. If you want to delete local settings, secrets, and conversation history, remove the persistence directory you mounted or used, such as ~/.faheem-code.

Desktop app (preview build)

The Faheem Code desktop app for macOS, Windows, and Linux is an early preview build ready for user testing. It bundles the Node.js and uv runtimes, so you do not need to install prerequisites or keep a terminal open.

Install and run

Download the installer for your operating system from the Faheem Code releases page.

macOS (Apple silicon)

  1. Download the Faheem-Code-<version>-arm64.dmg file.
  2. Open the disk image and drag Faheem Code to Applications.
  3. Launch Faheem Code from Applications.

Pre-built desktop releases support Apple silicon Macs. On an Intel Mac, use the npm or from-source installation method.

Windows

  1. Download the Faheem-Code-Setup-<version>.exe installer.
  2. Run the installer. If Windows SmartScreen prompts you, confirm that you want to continue.
  3. Launch Faheem Code from the Start menu.

Linux

  1. Download the Faheem-Code-<version>.AppImage or Faheem-Code-<version>.deb installer.
  2. For the AppImage, make the file executable and run it. For the deb, install it with your package manager (for example, sudo apt install ./Faheem-Code-<version>.deb).
  3. Launch Faheem Code from your applications menu.

The desktop app starts its local backend automatically. During startup, select Show details to view and copy the live startup log. This is useful if startup takes longer than expected or fails.

Troubleshooting and lifecycle

On macOS, the app is ad-hoc signed. If macOS reports that Faheem Code is damaged or cannot be opened, clear its quarantine attribute in Terminal, then launch it again:

xattr -d com.apple.quarantine /Applications/Agent\ Canvas.app

Do not use xattr -cr; that command does not clear this issue on macOS Sequoia.

To stop the app, quit Faheem Code from its application menu or window controls. To update it, download and install the latest desktop release; Settings > Application also shows the installed version and can check for updates. To uninstall, quit the app and move it to the Trash on macOS or uninstall it from Installed apps on Windows.

Next steps