Nakama

CLI

Run the CLI

From the repository root:

bun run dev:cli

The CLI:

  1. Starts the Nakama server if it is not already running
  2. Resolves your active organization (or prompts when multiple orgs exist)
  3. Lets you pick a profile
  4. Opens an interactive chat session

If the server has no provider configured yet, chat runs in offline mode until you finish First-time setup.

Flags

FlagDescription
--org, -o <id>Organization ID or slug
--profile, -p <id>Profile ID or name
--theme light|darkTerminal theme (also NAKAMA_THEME)

Set NAKAMA_ORG_ID to skip org selection when you belong to multiple organizations.

Examples:

bun run dev:cli -- --org docs-demo --profile default
bun run dev:cli -- --theme light

Slash commands

Inside chat, type / for autocomplete:

CommandDescription
/helpShow commands
/profileShow or switch bot profile
/modelShow or switch model
/modelsChoose a model interactively
/thinkingShow or change extended thinking
/compactCompact conversation history
/clearClear history
/statusShow server and model status
/soulShow or initialize profile soul files
/userShow or initialize USER.md
/createDraft an automation
/learnDistill a reusable skill from sources
/pasteAttach image from clipboard
/debugToggle layout debug overlay
/exitQuit

Switch models with /model providerId::modelId when the same model ID exists on multiple providers.

Attach images

Paste an image path or use clipboard attach:

@/path/to/screenshot.png What changed in this UI?
/paste

When your terminal supports it, paste with an empty prompt (Ctrl+V / Cmd+V) to attach from the clipboard.

Rotate local auth token

Platform workers and local bridges read the Nakama local auth token from disk. To rotate it:

bun run dev:cli -- rotate-token

Workers reload from disk on the next request. Restart platform workers if anything stays disconnected.

Next steps

  • Quickstart — install and open the dashboard
  • Coding agent — Codex, Claude Code, OpenCode, pi, or Cursor Agent from chat
  • Telegram — add a messaging channel

On this page