Commands

Commands

Install

deno run -A jsr:@fathym/fai/install

Installs fai globally. Deno is required. After install, fai is available on your PATH.


fai

Start your AI workbench. Opens a session where your AI remembers everything from past sessions and helps you build.

fai

Flags:

FlagDescription
--dry-runPreview what your workbench will do without making changes
--continueContinue your last AI conversation
--rcStart a remote session
--mcpStart fai as an MCP server (stdio mode)
--mcp=<port>Start MCP server on a specific TCP port
--previewLaunch MCP Inspector to explore all active tools
--shareOpen a public relay tunnel - share your workbench remotely
--sessionId <id>Skip the session picker and open a specific session
--agent <name>Pre-select which AI agent opens with your session

fai detect

Scan for AI tools, local models, and synthesis providers installed on your system.

fai detect
fai detect --models
fai detect --agents
fai detect --verify
FlagDescription
--modelsFilter results to models only
--agentsFilter results to agents only
--verifyVerify each detected item is reachable

fai orient

Orient an AI agent with your project context. Generates the agent's context file from your current workbench state.

fai orient
fai orient [content]
FlagDescription
--sourceSource type for orientation content
--fileFile input for orientation
--modeOrientation mode
--fileSuffixFile suffix to use for generated context file

fai status

Show the current state of your workbench.

fai status
fai status --paths
FlagDescription
--pathsInclude file paths in the status output

fai synthesize

Configure your synthesis provider - the AI model that distills session captures into project knowledge.

fai synthesize
fai synthesize --non-interactive
fai synthesize --agent <name>
FlagDescription
--non-interactiveAuto-configure without prompts
--agentPre-select the synthesis agent

Supported providers: ollama, lmstudio, localai, openrouter, groq, openai, claude-code, capture-only

Note: ANTHROPIC_API_KEY is not supported — the Anthropic API is not OpenAI-compatible. To use Claude models, set OPENROUTER_API_KEY instead.

See Local Models → for setup with Ollama, LM Studio, and cloud API keys.


fai mcp generate

Generate .md skill files from the fai MCP server's prompts.

fai mcp generate
fai mcp generate --output <dir>
FlagDescription
--outputDirectory to write skill files into (default: .claude/commands)
--serverMCP server binary to connect to (default: current fai binary)

Connects to fai --mcp=stdio, lists all prompts, and writes one .md file per prompt. Prompt / separators map to subdirectories: holonic/explain<output>/holonic/explain.md. Claude Code reads .claude/commands/ as slash commands.

This runs automatically in the background on each fai session start for Claude Code.


fai petname

Manage memorable names for sessions.

fai petname
fai petname [name] [meaning]
FlagDescription
--scopeScope for the petname
--listList all petnames
--removeRemove a petname

fai sessions

Work with session history.

fai sessions list
fai sessions list --status <status>
fai sessions list --json

fai sessions [id] capture [content]
fai sessions [id] compound
fai sessions [id] watch

sessions list flags:

FlagDescription
--statusFilter by session status (active, sealed, archived)
--jsonOutput as JSON

sessions [id] capture flags:

FlagDescription
--fileFile to capture
--modeCapture mode
--fileSuffixFile suffix for capture
--sourceSource type
--agentTypeAgent type context

fai uninstall

Remove fai from your system.

fai uninstall

fai workstreams compact

Compact workstream history.

fai workstreams compact
fai workstreams compact --source <path>
FlagDescription
--sourceSource path for compaction

Coming soon

As fai evolves, new commands appear - not from a release schedule, but from how you and the community work. When patterns become common enough, they become commands.

Even the CLI grows with you.

On this page