CLI reference

Every command, option, slash command and key of the CLI.

 Ask a question

Commands

sylphyx
Start an interactive session in this folder.
sylphyx -c
Continue the newest session in this folder, its last messages shown again.
sylphyx -p "TASK"
Run one task and exit; -p - reads the task from stdin. sylphyx run TASK does the same.
sylphyx login [--no-browser]
Sign in to your Sylphyx account from the browser.
sylphyx login PROVIDER
Keep a provider's API key in the system keychain; login chatgpt uses a ChatGPT Plus or Pro plan.
sylphyx logout [PROVIDER]
Sign out of the account, or remove a provider's key.
sylphyx models [PROVIDER]
The providers and what is connected, or the models one offers.
sylphyx account [ACTION]
The account and plan; login (--password asks here), register, logout, token (a session for CI), or server URL.
sylphyx github [ACTION]
status, login, logout, repos, clone OWNER/NAME [FOLDER], pr TITLE.
sylphyx mcp [ACTION]
list, add NAME COMMAND [ARGS…], remove NAME, on NAME, off NAME.
sylphyx sessions [WORDS]
Stored sessions, or those that mention the words.
sylphyx usage
What every session on this computer has used, by model.
sylphyx update [--force]
Install the latest CLI over this one.
sylphyx tool NAME [JSON]
Run one tool (read, write, edit, bash) by hand.
sylphyx prompt
Print the system prompt and tool schemas as JSON.
sylphyx --version
The version.

Options

--model PROVIDER/MODEL
For example anthropic/claude-sonnet-5-5, or lmstudio for the first model it has loaded. Also -m.
--mode MODE
plan, ask (the default), auto-edit or auto.
--budget USD
Stop when the session has cost this much.
--max-steps N
Model requests per turn; without it the effort decides (60 at the default effort).
-c, --continue
Continue the newest session in this folder.
--resume ID
Continue a stored session (sylphyx sessions lists them). Also -r.
--image PATH
Send a picture with the first message; may repeat.
--json
With -p: print events as JSON lines.

In a session

/help
Every command and key, by group.
/model [provider/model]
Pick the model from a list you can type into, or name one.
/mode [MODE]
Pick the mode, or name it: plan, ask, auto-edit, auto.
/effort [LEVEL]
How hard the model works, on a slider: low, medium, high, xhigh, max.
/login [PROVIDER], /logout
Sign in to the account from the browser, or keep a provider's key, without leaving the session.
/status
Version, account and plan, model, mode, session, folders and sandbox at a glance.
/settings
Every setting, changed with the arrow keys.
/config [KEY VALUE]
Show the settings, or change model, mode, effort, budget or max_steps.
/instructions TEXT
Standing instructions for every session; /instructions none clears them.
/memory
What every session remembers: /memory add TEXT, edit, clear.
/mcp
The MCP servers and their tools; add, on, off, remove.
/skills
The skills the model is offered.
/context, /compact
What fills the context window; drop old tool output from it.
/diff, /accept, /rollback
What waits for review; keep it; restore the files.
/commit MESSAGE
Accept and commit the waiting files.
/cost
Tokens and cost of this session (also /usage).
/new, /rename, /fork, /retry
A new session, a name, a copy, your last message again in a copy.
/clear
A new session on a clean screen.
/copy
Copy the model's last reply to the clipboard.
/session KEY VALUE
This session's own model, mode, effort or instructions, or reset.
/resume [ID], /sessions [WORDS]
Continue a stored session, or pick one from a list you can type into.
/read PATH, /bash COMMAND, !COMMAND
Show a file with its line anchors; run a command yourself.
/image [PATH], /thinking on|off
Attach a picture; print the model's reasoning as it comes.
/export
Save this session as Markdown in Downloads.
/quit
Leave.

Keys

KeysWhat they do
EnterSend.
\+Enter, Ctrl+J or Alt+EnterA new line. A paste keeps its own line breaks; a long one shows as one label until it is sent.
↑ ↓Earlier messages, or the lines of this one.
TabTake a completion: a command, its argument, or a file.
@Mention a file.
!Run a shell command yourself: !git status.
Shift+TabThe next mode: Plan, Ask and Auto-edit, and Full auto too where commands run in the sandbox (never while a turn runs). /mode auto always reaches it.
EscStop a turn and the command it is running; what you type meanwhile waits in the prompt. On the prompt, close the completion list first, then clear the message; ↑ brings a cleared message back.
Ctrl+CStop a turn, clear the prompt; twice on an empty prompt leaves.
Ctrl+LClear the screen.

Anything that is not a command goes to the model. Colours follow the terminal's background, detected at start; SYLPHYX_THEME=light or dark sets them.