Reference

CLI

Every flag of the jinion command, and the environment variables it reads.

Terminal
jinion [options]
jinion serve [--port <port>] [--stdio] [--origin <origin>]...
jinion mcp

Run it in the folder you want to work in. Without options, it starts a new conversation with the model and account you used last.

Flags

FlagDoesExample
-c, --continueOpens the last conversation in this folderjinion -c
-m, --model <model>Uses this model for the run: an alias such as opus or sonnet, or a full idjinion -m sonnet
-e, --effort <level>Uses this effort for the run: low, medium, high, xhigh or maxjinion -e high
--theme <light|dark>Skips detecting the terminal's backgroundjinion --theme light
--debugWrites a log of the session to ~/.jinion/logs; prints its path on exitjinion --debug
--demoPlays a scripted session without a modeljinion --demo
--attachShows the conversations of the jinion serve running in this folderjinion --attach
-v, --versionPrints the versionjinion -v
-h, --helpShows the helpjinion -h

--model and --effort apply to one run. To change the default, use /model in a session.

jinion serve

jinion serve runs Jinion without a screen, so that other apps can drive it. It takes the same flags as jinion, such as --demo or -m, and these:

FlagDoesExample
--port <port>Serves on this port; a free one when left outjinion serve --port 4747
--stdioServes the program that started it, over stdin and stdoutjinion serve --stdio
--origin <origin>Lets in a web page from this origin, such as a desktop app's; repeat for morejinion serve --origin app://jinion

Without --stdio, it serves on 127.0.0.1, so only your machine reaches it, and it prints the address:

Terminal
$ jinion serve
jinion serves ~/code/shop at ws://127.0.0.1:53942
Clients find its token in ~/.jinion/servers/38262.json, which only you can read. jinion --attach shows it here; ctrl+c stops it.

A client needs the token from that file to connect. In the same folder, jinion --attach finds it on its own and shows the conversations the server holds; ctrl+c leaves them running. ctrl+c in jinion serve stops it, saving its conversations as jinion does when you quit.

jinion mcp

jinion mcp gives another agent, such as Codex, Claude Code or Cursor, your team's decisions and the project map, as an MCP server over stdin and stdout. The agent starts it; you add it once, as Codex, Claude Code and Cursor shows:

Terminal
codex mcp add jinion -- npx -y @jinion/cli mcp

Environment variables

VariableDoesDefault
JINION_MODELSame as --modelYour last /model pick, else opus
JINION_EFFORTSame as --effortThe model's default
JINION_THEMESame as --themeDetected
JINION_DEBUG1 does the same as --debugOff
JINION_HOMEWhere Jinion keeps its data~/.jinion

Flags win over environment variables, and both win over the saved choice.

Examples

Start where you left off yesterday:

Terminal
jinion -c

A quick question with a fast model:

Terminal
jinion -m haiku

Keep data for a separate setup apart, such as a test account:

Terminal
JINION_HOME=~/.jinion-test jinion