cf install
Install the Coding Friend plugin into Claude Code or Codex CLI from the terminal.
Overview
cf install installs the Coding Friend plugin for the selected host. Claude Code is the default; Codex CLI is opt-in with --agent codex or --codex.
Usage
cf install # Interactive — asks which scope to use
cf install --user # Install at user scope (all projects)
cf install --global # Same as --user
cf install --project # Install at project scope (shared via git)
cf install --local # Install at local scope (this machine only)
cf install --agent codex # Register Codex marketplace + enable plugin config
cf install --codex # Alias for --agent codex
Scopes
Scope flags apply to Claude Code installs. Codex CLI uses Codex's own global plugin marketplace plus project setup from cf init --agent codex.
| Scope | Flag | Settings file | Use case |
|---|---|---|---|
| User | --user / --global | ~/.claude/settings.json | Personal use across all projects |
| Project | --project | .claude/settings.json | Team-shared plugin (via git) |
| Local | --local | .claude/settings.local.json | This machine only (gitignored) |
Read more about Claude Code scopes here.
Regardless of scope, Claude Code always downloads the plugin to a shared cache directory (~/.claude/plugins/cache/). The scope only controls where the plugin is referenced — i.e., which settings file gets an entry pointing to the cached plugin. Installing at multiple scopes does not duplicate the plugin; it just adds references in different settings files. To remove the plugin from a specific scope, use cf uninstall --<scope>.
What It Does
Claude Code
- Checks prerequisites — verifies that the
claudeCLI is available - Asks for scope — prompts which scope to install at (or uses the flag)
- Registers marketplace — adds the
coding-friend-marketplaceif not already registered (always global) - Installs plugin — installs
coding-friend@coding-friend-marketplaceat the chosen scope - Version check — if the plugin is already installed, compares with the latest version and suggests
cf updateif an update is available - Shell completion — sets up tab completion for the
cfcommand in your shell (bash, zsh, fish, or PowerShell)
Codex CLI
- Checks prerequisites — verifies that
codexexists and is at least0.130.0 - Registers marketplace — runs
codex plugin marketplace add dinhanhthi/coding-friendwhen needed - Records plugin enablement — writes the Coding Friend plugin table in
~/.codex/config.toml - Deploys agents — copies generated
cf-*.tomlagents into Codex's personal agents directory when available - Prints the manual plugin step — Codex still requires opening
/pluginsand installingcoding-friendfrom the UI
Under the Hood
For Claude Code, cf install runs these Claude CLI commands for you:
# Marketplace registration (always global)
claude plugin marketplace add dinhanhthi/coding-friend
# Plugin installation (with scope)
claude plugin install coding-friend@coding-friend-marketplace --scope <scope>
For Codex CLI:
codex plugin marketplace add dinhanhthi/coding-friend
# then in Codex: /plugins -> install coding-friend
Next Steps
After installing:
- Run
cf initto initialize your workspace with documentation folders and configuration. - For Codex CLI, run
cf init --agent codex --trust-project. - Run
cf memory initto set up AI memory for the project (also available as a step incf init). - Run
cf statuslineto show real-time info in Claude Code.