SynapsesOS
Reference

CLI Reference

The synapses CLI is a single binary for project setup, indexing, daemon management, configuration, and diagnostics.

Terminal window
synapses <command> [flags]

Commands

synapses init

Set up a project: index the codebase, start the daemon, connect AI agents. This is the main entry point for new projects.

Terminal window
synapses init [--path <dir>] [--yes] [--agents <list>] [--no-agents]
FlagDescription
--path <dir>Project directory (default: current directory)
--yes / -yAccept all defaults non-interactively
--agents <list>Comma-separated agents: claude,cursor,windsurf,zed,antigravity
--no-agentsSkip agent connection step

synapses start

Start MCP server for a project. This is called by AI agents (via their MCP config), not directly by users.

Terminal window
synapses start [--path <dir>]
FlagDescription
--path <dir>Project directory (default: current directory)

Internally, this starts the daemon if needed, registers the project, and bridges stdio to the daemon’s per-project Unix socket.

synapses stop

Stop the daemon.

Terminal window
synapses stop

No flags. Sends SIGTERM to the daemon process and waits for graceful shutdown.

synapses status

Full health check showing the state of every component, or list all indexed projects.

Terminal window
synapses status [--path <dir>] [--all]
FlagDescription
--path <dir>Project directory (default: current directory)
--allList all indexed projects with file/node/edge counts

Default output shows: App, CLI Binary, CLI in PATH, Global Config, Graph Index, Daemon, Brain, Doc Cache, Pulse.

synapses index

Build the code graph or reset cached indexes.

Terminal window
synapses index [--path <dir>] [--reindex] [--reset] [--all]
FlagDescription
--path <dir>Project directory (default: current directory)
--reindexForce full re-index even if cache is fresh
--resetRemove cached index for this project
--allWith --reset: remove ALL project indexes

synapses config

Read or write configuration. Supports both global defaults (~/.synapses/config.json) and per-project overrides (synapses.json).

Terminal window
synapses config [--show] [--global] [--path <dir>] [key] [value]
FlagDescription
--showShow full merged config with source annotations
--show <key>Show a single key’s value and where it comes from
--globalTarget the global config (~/.synapses/config.json)
--path <dir>Project directory (default: current directory)
<key> <value>Set a config value (e.g., brain.enabled true)

Examples:

Terminal window
synapses config --show # Full merged config
synapses config --show brain.enabled # Single key with source
synapses config --global brain.enabled true # Set global default
synapses config brain.enabled false # Set project override

Merge order: built-in defaults → ~/.synapses/config.json<project>/synapses.json. Project always wins.

See Configuration Reference for all available config keys.

synapses connect

Write MCP configuration for an AI agent so it can use Synapses.

Terminal window
synapses connect [--agent <name>] [--path <dir>]
FlagDescription
--agent <name>Agent: claude, cursor, windsurf, zed, antigravity
--path <dir>Project directory (default: current directory)

synapses update

Self-update the Synapses binary or rollback to the previous version.

Terminal window
synapses update [--check] [--rollback]
FlagDescription
--checkCheck for updates only, don’t download
--rollbackRestore the previous binary version from backup

If running from the desktop app, updates are handled automatically by the app.

synapses remove

Remove Synapses from a project. The inverse of init. Cleans agent configs, project config, and cached index. Source code is never modified.

Terminal window
synapses remove [--path <dir>] [--yes] [--keep-data]
FlagDescription
--path <dir>Project directory (default: current directory)
--yes / -yNon-interactive, skip confirmation prompt
--keep-dataPreserve cached index (only remove agent configs)

synapses uninstall

Remove Synapses from the entire system. Stops daemon, removes services, deletes ~/.synapses, removes the binary.

Terminal window
synapses uninstall [--yes] [--keep-data] [--keep-binary]
FlagDescription
--yes / -yNon-interactive, skip confirmation
--keep-dataPreserve cached indexes
--keep-binaryPreserve the binary (allows reinstall via synapses init)

synapses version

Print the version.

Terminal window
synapses version

synapses completion

Generate shell completion scripts.

Terminal window
synapses completion <bash|zsh|fish>

Setup:

Terminal window
# Bash
eval "$(synapses completion bash)"
# Zsh
eval "$(synapses completion zsh)"
# Fish
synapses completion fish > ~/.config/fish/completions/synapses.fish

Subcommands

synapses dev

Developer tools for swapping the CLI binary (useful when building from source).

Terminal window
synapses dev <link|unlink|status>
SubcommandDescription
link <path>Use a custom binary (e.g., ./build/synapses)
unlinkRestore the app-bundled binary
statusShow which binary is active

State is stored in ~/.synapses/dev_link.json. When linked, the desktop app won’t overwrite your custom binary on updates.

synapses daemon

Low-level daemon control. Most users never need these — the daemon is auto-managed by synapses start.

Terminal window
synapses daemon <serve|install|uninstall|logs>
SubcommandDescription
serveRun the daemon in foreground (used by launchd/systemd)
installRegister as login service (auto-start on boot)
uninstallRemove login service registration
logsTail daemon log