Commands

Commands

Kepler has three command surfaces: slash commands typed in the REPL, CLI flags passed when launching Kepler, and top-level subcommands for common tasks.


Slash Commands

Type these at the > prompt to control Kepler’s behavior. Commands are grouped by function.

Worktree

CommandDescription
/git, /statusShow git status
/commitInteractive git commit
/diffShow git diff
/indexBuild/rebuild BM25 context index for the project

Session

CommandDescription
/clearClear conversation history
/sessionsList previous sessions
/exit, /quitExit the Kepler REPL

Usage

CommandDescription
/modelShow the current active model
/tokensShow token usage for the current session
/costShow session cost breakdown
/cacheShow session cache hit-rate, cache_read / non-cached / total input tokens, cache_write. Numbers match provider dashboards (OpenRouter, Anthropic).
/extra-usageDetailed usage stats: tokens, cache read/write/hit-rate, telemetry event count

Settings

CommandDescription
/configOpen settings in the browser
/loginRe-authenticate via browser
/refreshReload credentials from disk
/syncSync settings from the web dashboard
/whoamiShow the currently logged-in user

Built-in Agents

CommandDescription
/explore <query>Spawn a read-only code explorer agent
/review <query>Spawn a code review agent
/architect <query>Spawn an architecture planning agent

Help

CommandDescription
/helpShow available commands and basic usage
/help <group>Show commands for a specific group (worktree, session, usage, settings)

Top-Level Subcommands

Run these directly from your terminal shell:

CommandDescription
keplerStart the interactive REPL
kepler dashboardLaunch Kepler Pulse analytics dashboard
kepler sessionsList recent local sessions
kepler statsShow aggregate local session statistics
kepler historyShow recent prompt history
kepler initScaffold .kepler/, including .kepler/KEPLER.md, settings, tasks, a starter skill, and a starter command
kepler loginSign in via browser (callback to bahulam.ai)
kepler logoutSign out and clear credentials
kepler versionShow the installed version
kepler helpShow help text

Skills Subcommands

CommandDescription
kepler skills list [--all|--project]List installed skills
kepler skills view <name> [resource]View a skill’s details
kepler skills install <path-or-git-url>Install a skill from a path, GitHub URL, or npm package
kepler skills update <name>Update a skill
kepler skills remove <name>Remove a skill

CLI Flags

Pass these when launching Kepler from the terminal.

FlagDescription
--model, -m <id>Override the model for explicit-route headless or local runs
--route, --model-route <platform|byok>Explicit billing/credential route for backend headless --model
--permission-mode <mode>Set permission mode: bypassPermissions, acceptEdits, plan, auto, dontAsk
--print, -p <prompt>Non-interactive mode: run a single prompt and exit
--output-format <fmt>Output format: text (default), json, stream-json
--system-prompt <text>Override the system prompt
--add-dir <dir>Additional directory to search for CLAUDE.md
--max-turns <n>Maximum conversation turns before stopping
--timeout <n>Timeout in seconds
--allowedTools <tools>Comma-separated list of allowed tools
--disallowedTools <tools>Comma-separated list of denied tools
--resume, --continue, -r [sessionId]Resume the last session (or a specific session)
--headlessNon-interactive mode: auto-approve, JSONL output to stdout
--cache-report <file>Write prompt-cache summary JSON to a file (headless only)
--localForce local agent mode (bypass backend, direct LLM API)
--freeswim-open-waters, --freeswim, --yesSkip all approval prompts
--verbose, -vVerbose output
--debug, -dDebug mode
--planStart in planning mode (read-only, block all writes)
--no-indexSkip project indexing on startup
--help, -hShow help text and exit
--versionPrint the installed version and exit

Examples:

# Non-interactive: run a single prompt
kepler -p "What is the entry point of this project?"
 
# Headless mode with a platform model override
kepler platform --headless --timeout 300 --model deepseek/deepseek-v4-flash "Fix the bug"
 
# Headless mode with a BYOK model override
kepler byok --headless --timeout 300 --model anthropic/claude-sonnet-4-6 "Fix the bug"
 
# Resume the last session
kepler --resume
 
# Skip all approvals (use with caution)
kepler --yes
 
# Force local mode with direct API key
kepler --local --model claude-sonnet-4-6

Backend headless --model requires an explicit route. platform uses Kepler-managed credentials and credit billing; byok uses your configured provider key and records usage without platform model-credit deduction. Interactive mode uses the model configured in Kepler settings. Use the dashboard or /settings to inspect or change the interactive default.


Environment Variables

See Reference → Environment Variables for the full list.

Common ones:

VariablePurpose
KEPLER_HOMEOverride the Kepler config directory (default: ~/.kepler)
KEPLER_TOKENAuth token for CI/CD pipelines
KEPLER_PRODUCTProduct variant
KEPLER_NO_PREFLIGHTSkip onboarding diagnostic on startup (1 or true)
ANTHROPIC_API_KEY / ANTHROPIC_MODELDirect Anthropic access + default model
OPENAI_API_KEY / OPENAI_BASE_URLDirect OpenAI access + endpoint override
OPENROUTER_API_KEYOpenRouter for BYOK
GEMINI_API_KEY / GOOGLE_API_KEYGoogle AI (Gemini) access
DEBUG / MCP_DEBUGEnable verbose logging