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):
| Command | Description |
|---|---|
/build <text> | Add memory inline |
/schemas | List registered schemas |
quit / exit | End the session |
Schemas
Inspect registered schemas:Serve
Start the API server in the foreground: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).
| Command | Description |
|---|---|
cogos serve start | Start as a background daemon |
cogos serve start --autostart | Start daemon + enable auto-start on boot (systemd) |
cogos serve stop | Stop the daemon |
cogos serve stop --remove-autostart | Stop daemon + disable auto-start on boot |
cogos serve restart | Restart the daemon |
cogos serve status | Show running status, PID, uptime, memory |
cogos serve logs | View server logs |
Summary
| Command | Description |
|---|---|
cogos init | Initialize project (config + templates) |
cogos build | Process text into memory |
cogos chat | Chat with memory |
cogos schemas | Inspect schemas |
cogos serve | Start API server + Web UI (foreground) |
cogos serve start | Start as background daemon |
cogos serve start --autostart | Start daemon + enable boot auto-start |
cogos serve stop | Stop background daemon |
cogos serve status | Show daemon status |