Installation
Installation methods
Requires Python 3.12+ and uv installed.
Install Faheem Code:
uv tool install faheemcode --python 3.12
Run Faheem Code:
faheemcode
Upgrade Faheem Code:
uv tool upgrade faheemcode --python 3.12
Install the Faheem Code CLI binary with the install script:
curl -fsSL https://install.faheemcode.ai/install.sh | sh
Then run:
faheemcode
-
Set the following environment variable in your terminal:
SANDBOX_VOLUMESto specify the directory you want Faheem Code to access (See using SANDBOX_VOLUMES for more info)
-
Ensure you have configured your settings before starting:
- Set up
~/.faheem-code/settings.jsonwith your LLM configuration
- Set up
-
Run the following command:
docker run -it \
--pull=always \
-e AGENT_SERVER_IMAGE_REPOSITORY=ghcr.io/smart-national-solution/faheem-code-agent-server \
-e AGENT_SERVER_IMAGE_TAG=1.26.0-python \
-e SANDBOX_USER_ID=$(id -u) \
-e SANDBOX_VOLUMES=$SANDBOX_VOLUMES \
-v /var/run/docker.sock:/var/run/docker.sock \
-v ~/.faheem-code:/root/.faheem-code \
--add-host host.docker.internal:host-gateway \
--name faheem-code-cli-$(date +%Y%m%d%H%M%S) \
python:3.12-slim \
bash -c "pip install uv && uv tool install faheemcode --python 3.12 && faheemcode"
The -e SANDBOX_USER_ID=$(id -u) is passed to the Docker command to ensure the sandbox user matches the host user's
permissions. This prevents the agent from creating root-owned files in the mounted workspace.
First run
The first time you run the CLI, it will take you through configuring the required LLM settings. These will be saved
for future sessions in ~/.faheem-code/settings.json.
The conversation history will be saved in ~/.faheem-code/conversations.
Next steps
- Quick Start - Learn the basics of using the CLI
- MCP Servers - Configure MCP servers