Skip to main content

Command reference

Basic usage

faheemcode [OPTIONS] [COMMAND]

Global options

OptionDescription
-v, --versionShow version number and exit
-t, --task TEXTInitial task to seed the conversation
-f, --file PATHPath to a file whose contents seed the conversation
--resume [ID]Resume a conversation. If no ID provided, lists recent conversations
--lastResume the most recent conversation (use with --resume)
--expUse textual-based UI (now default, kept for compatibility)
--headlessRun in headless mode (no UI, requires --task or --file)
--jsonEnable JSONL output (requires --headless)
--always-approveAuto-approve all actions without confirmation
--llm-approveUse LLM-based security analyzer for action approval
--override-with-envsApply environment variables (LLM_API_KEY, LLM_MODEL, LLM_BASE_URL) to override stored settings
--exit-without-confirmationExit without showing confirmation dialog

Subcommands

serve

Launch the Faheem Code GUI server using Docker.

faheemcode serve [OPTIONS]
OptionDescription
--mount-cwdMount the current working directory into the container
--gpuEnable GPU support via nvidia-docker

Examples:

faheemcode serve
faheemcode serve --mount-cwd
faheemcode serve --gpu
faheemcode serve --mount-cwd --gpu

web

Launch the CLI as a web application accessible via browser.

faheemcode web [OPTIONS]
OptionDefaultDescription
--host0.0.0.0Host to bind the web server to
--port12000Port to bind the web server to
--debugfalseEnable debug mode

Examples:

faheemcode web
faheemcode web --port 8080
faheemcode web --host 127.0.0.1 --port 3000
faheemcode web --debug

cloud

Create a new conversation in Faheem Code Cloud.

faheemcode cloud [OPTIONS]
OptionDescription
-t, --task TEXTInitial task to seed the conversation
-f, --file PATHPath to a file whose contents seed the conversation
--server-url URLFaheem Code server URL (default: https://app.faheemcode.ai)

Examples:

faheemcode cloud -t "Fix the bug"
faheemcode cloud -f task.txt
faheemcode cloud --server-url https://custom.server.com -t "Task"

acp

Start the Agent Client Protocol server for IDE integrations.

faheemcode acp [OPTIONS]
OptionDescription
--resume [ID]Resume a conversation by ID
--lastResume the most recent conversation
--always-approveAuto-approve all actions
--llm-approveUse LLM-based security analyzer
--streamingEnable token-by-token streaming

Examples:

faheemcode acp
faheemcode acp --llm-approve
faheemcode acp --resume abc123def456
faheemcode acp --resume --last

mcp

Manage Model Context Protocol server configurations.

faheemcode mcp <command> [OPTIONS]

mcp add

Add a new MCP server.

faheemcode mcp add <name> --transport <type> [OPTIONS] <target> [-- args...]
OptionDescription
--transportTransport type: http, sse, or stdio (required)
--headerHTTP header for http/sse (format: "Key: Value", repeatable)
--envEnvironment variable for stdio (format: KEY=value, repeatable)
--authAuthentication method (e.g., oauth)
--enabledEnable immediately (default)
--disabledAdd in disabled state

Examples:

faheemcode mcp add my-api --transport http https://api.example.com/mcp
faheemcode mcp add my-api --transport http --header "Authorization: Bearer token" https://api.example.com
faheemcode mcp add local --transport stdio python -- -m my_server
faheemcode mcp add local --transport stdio --env "API_KEY=secret" python -- -m server

mcp list

List all configured MCP servers.

faheemcode mcp list

mcp get

Get details for a specific MCP server.

faheemcode mcp get <name>

mcp remove

Remove an MCP server configuration.

faheemcode mcp remove <name>

mcp enable

Enable an MCP server.

faheemcode mcp enable <name>

mcp disable

Disable an MCP server.

faheemcode mcp disable <name>

login

Authenticate with Faheem Code Cloud.

faheemcode login [OPTIONS]
OptionDescription
--server-url URLFaheem Code server URL (default: https://app.faheemcode.ai)

Examples:

faheemcode login
faheemcode login --server-url https://enterprise.faheemcode.ai

logout

Log out from Faheem Code Cloud.

faheemcode logout [OPTIONS]
OptionDescription
--server-url URLServer URL to log out from (if not specified, logs out from all)

Examples:

faheemcode logout
faheemcode logout --server-url https://app.faheemcode.ai

Interactive commands

Commands available inside the CLI (prefix with /):

CommandDescription
/helpDisplay available commands
/newStart a new conversation
/historyToggle conversation history
/confirmConfigure confirmation settings
/condenseCondense conversation history
/skillsView loaded skills, hooks, and MCPs
/feedbackSend anonymous feedback about CLI
/exitExit the application

Command palette

Press Ctrl+P (or Ctrl+\) to open the command palette for quick access to:

OptionDescription
HistoryToggle conversation history panel
KeysShow keyboard shortcuts
MCPView MCP server configurations
MaximizeMaximize/restore window
PlanView agent plan
QuitQuit the application
ScreenshotTake a screenshot
SettingsConfigure LLM model, API keys, and other settings
ThemeToggle color theme

Changing your model

Via settings UI

  1. Press Ctrl+P to open the command palette
  2. Select Settings
  3. Choose your LLM provider and model
  4. Save changes (no restart required)

Via configuration file

Edit ~/.faheem-code/agent_settings.json and change the model field:

{
"llm": {
"model": "claude-sonnet-4-5-20250929",
"api_key": "...",
"base_url": "..."
}
}

Via environment variables

Temporarily override your model without changing saved configuration:

export LLM_MODEL="gpt-4o"
export LLM_API_KEY="your-api-key"
faheemcode --override-with-envs

Changes made with --override-with-envs are not persisted.

Environment variables

VariableDescription
LLM_API_KEYAPI key for your LLM provider
LLM_MODELModel to use (requires --override-with-envs)
LLM_BASE_URLCustom LLM base URL (requires --override-with-envs)
FAHEEMCODE_CLOUD_URLDefault cloud server URL
FAHEEMCODE_VERSIONDocker image version for faheemcode serve

Exit codes

CodeMeaning
0Success
1Error or task failed
2Invalid arguments

Configuration files

FilePurpose
~/.faheem-code/agent_settings.jsonLLM configuration and agent settings
~/.faheem-code/cli_config.jsonCLI preferences (e.g., critic enabled)
~/.faheem-code/mcp.jsonMCP server configurations
~/.faheem-code/conversations/Conversation history

See also