Skip to main content
CogOS provides a full command-line interface via the cogos command.

Init

Initialize the project — generates config and template files (run once):

Build

Process text into structured memory:

Chat

Chat with memory-augmented responses:

Interactive chat commands

When in interactive chat mode (cogos chat):
CommandDescription
/build <text>Add memory inline
/schemasList registered schemas
quit / exitEnd the session

Schemas

Inspect registered schemas:

Serve

Start the API server in the foreground:
When invoked without a subcommand, cogos serve runs the server in the foreground (Ctrl+C to stop). For background service management, see the subcommands below.

Service management subcommands

Only one CogOS daemon can run at a time. If a daemon is already running, start will refuse to launch a new one regardless of the port specified. Use stop first, then start with a new port. Port can be set via the --port flag (highest priority) or in configs/cogos.yaml under server.port (default: 8000).
CommandDescription
cogos serve startStart as a background daemon
cogos serve start --autostartStart daemon + enable auto-start on boot (systemd)
cogos serve stopStop the daemon
cogos serve stop --remove-autostartStop daemon + disable auto-start on boot
cogos serve restartRestart the daemon
cogos serve statusShow running status, PID, uptime, memory
cogos serve logsView server logs
See Service management for details on daemon mode, auto-start, and log management.

Summary

CommandDescription
cogos initInitialize project (config + templates)
cogos buildProcess text into memory
cogos chatChat with memory
cogos schemasInspect schemas
cogos serveStart API server + Web UI (foreground)
cogos serve startStart as background daemon
cogos serve start --autostartStart daemon + enable boot auto-start
cogos serve stopStop background daemon
cogos serve statusShow daemon status