Skip to main content

Command Reference

NikCLI provides over 70 powerful commands organized into logical categories. All commands are prefixed with / and can be used during any chat session.

Basic System

3 commands: help, quit/exit, clear

Model Management

3 commands: model switching and API keys

Configuration

6 commands: settings and preferences

Session Management

4 commands: session control and history

Agent Management

9 commands: AI agent orchestration

Planning & Todo

4 commands: task planning and management

Security

4 commands: security and permissions

File Operations

5 commands: file system operations

Terminal

12 commands: command execution

VM Operations

8 commands: virtual machine management

AI Features

4 commands: vision and image generation

Memory & Data

8 commands: memory and snapshot management

Quick Command Reference

Essential Commands

  • Getting Started
  • Development
  • Session Control
/help           # Show all available commands
/config         # View current configuration
/models         # List available AI models
/agents         # Show available AI agents

Command Categories

🖥️ Basic System Commands

CommandDescriptionUsageExample
/helpShow help message with all available commands/help/help
/quit, /exitExit the chat interface/quit or /exit/quit
/clearClear current chat session/clear/clear
/defaultSwitch to default conversational mode/default/default

🧠 Model Management

Switch between different AI models or show current model.
# Show current model
/model

# Switch to specific model
/model claude-3-5-sonnet
/model gpt-4
/model gemini-pro
/model ollama:llama2
Examples:
  • Anthropic: claude-sonnet-4-20250514, claude-3-5-sonnet-latest
  • OpenAI: gpt-5, gpt-4o-mini
  • Google: gemini-1.5-pro
  • Ollama: llama3.1:8b, mistral:7b
Display all available models with their status and capabilities.
/models
Output includes:
  • Model name and provider
  • Availability status
  • Token limits
  • Current API key status
Set API keys for different AI providers.
/set-key anthropic sk-ant-api03-...
/set-key openai sk-...
/set-key google AIza...
API keys are read from your ~/.nikcli/config.json or environment vars.

⚙️ Configuration Commands

Display current NikCLI configuration settings.
/config
Shows:
  • Default AI provider and model
  • Security settings
  • Session preferences
  • Cache configuration
Debug API key configuration and test AI generation.
/debug
Performs:
  • API key validation
  • Connection testing
  • Model availability check
  • Configuration diagnostics
Configure AI temperature (creativity/randomness level).
# Show current temperature
/temp

# Set temperature (0.0 = focused, 2.0 = creative)
/temp 0.7
/temp 1.2
Range: 0.0 (most focused) to 2.0 (most creative)
Enable or disable chat history persistence.
# Show current status
/history

# Enable/disable history
/history on
/history off
Set or view the system prompt for the current session.
# Show current system prompt
/system

# Set custom system prompt
/system "You are a senior React developer specializing in TypeScript"

🕐 Session Management

Create a new chat session with optional title.
# Start new session
/new

# Start with title
/new "React Authentication Project"
/new "API Development"
Display all saved chat sessions.
/sessions
Shows:
  • Session ID and title
  • Creation date
  • Message count
  • Last activity
Export session history to markdown format.
# Export current session
/export

# Export specific session
/export abc123
Output: Markdown file with complete conversation history
Show usage statistics and metrics.
/stats
Includes:
  • Token usage by provider
  • Session counts
  • Command usage frequency
  • Time spent in different modes

👥 Agent Management

Display all available AI agents and their capabilities.
/agents
Shows:
  • Agent name and specialization
  • Current status (active/idle)
  • Capabilities and tools
Execute a specific agent with a given task.
/agent universal-agent "create a responsive navigation component"
/agent vm-agent "setup development environment"
Enable autonomous execution for complex tasks.
/auto "Create a complete React todo app with backend API"
/auto "Implement user authentication with JWT tokens"
/auto "Add real-time chat functionality to the application"
Features:
  • Automatic task breakdown
  • Autonomous execution
  • Progress tracking
Run agents in parallel execution mode.
/parallel "create a login component with validation"
Open the agent factory for creating and managing custom agents.
/factory
Create a new specialized agent for specific tasks.
/create-agent "React Testing Expert"
/create-agent "Database Optimization Specialist"
Launch an agent from a saved blueprint configuration.
/launch-agent blueprint-id "optimize performance"
List and manage agent blueprints.
/blueprints
/blueprint [id]
/delete-blueprint [id]
/export-blueprint [id]
/import-blueprint [file]
/search-blueprints [query]
Select or view workspace context paths for agents.
# Show current context
/context

# Set context paths  
/context src/ tests/
View live agent activity streams.
/stream

📋 Planning & Todo Commands

Create and manage execution plans for complex tasks.
# Switch to planning mode
/plan

# Create plan with task description
/plan "Build authentication system"
Plan Features:
  • Automatic task breakdown
  • Progress monitoring
  • Strategic planning approach
Manage todo lists and task tracking.
/todo
Alias for /todo - quickly view todo items.
/todos
Manage approval system for operations.
/approval

🛡️ Security Commands

Manage security settings and view current security status.
/security
Enable developer mode with reduced security restrictions.
/dev-mode
Developer mode reduces security restrictions. Use with caution in production environments.
Enable safe mode with maximum security restrictions.
/safe-mode
Enables:
  • Maximum security restrictions
  • Enhanced approval requirements
  • Limited file system access
Clear all cached approvals for the current session.
/clear-approvals
Effect: Requires fresh approval for previously approved operations

🖥️ VM Operations

Switch to virtual machine mode for isolated development.
/vm
/vm-mode
Create a new VM container from repository URL.
/vm-create https://github.com/user/repo.git
Display all active VM containers.
/vm-list
Connect to a specific VM container.
/vm-connect [container-id]
Create pull request from VM container changes.
/vm-create-pr [container-id] "PR Title" "Description"
Stop a running VM container.
/vm-stop [container-id]
Remove a VM container completely.
/vm-remove [container-id]
View logs from a VM container.
/vm-logs [container-id]

🪄 AI Features

Analyze images using AI vision capabilities.
/analyze-image path/to/image.jpg
/vision path/to/screenshot.png
Generate images from text descriptions.
/generate-image "A futuristic cityscape at sunset"
/create-image "Modern web application interface"
Run system diagnostics and monitoring.
/diagnostic
/diag
/monitor
/diag-status

🗄️ Memory & Data Management

Store information in long-term memory.
/remember "Important project details or facts"
Search and retrieve stored memories.
/recall "search query for stored information"
Manage memory system and stored information.
/memory
Remove information from memory.
/forget [memory-id or query]
Create snapshot of current project state.
/snapshot "Before major refactoring"
/snap "Pre-deployment state"
Restore project to previous snapshot state.
/restore [snapshot-id]
Display all available project snapshots.
/snapshots
Manage project indexing for search and context.
/index

Operating Modes

NikCLI supports three primary operating modes accessible via Shift+Tab:
  • 💬 Default Chat
  • 📋 Planning Mode
  • 🤖 Auto Mode
Standard Mode
  • Interactive conversation
  • Manual confirmation for operations
  • Step-by-step guidance
  • Best for learning and experimentation

Keyboard Shortcuts

ShortcutDescription
Ctrl+CStop current operation or streaming response
/Open command menu (when not processing)
Shift+TabCycle between operating modes
ESCReturn to default chat mode
TabAuto-complete commands and file paths

Command Tips

Auto-completion

Use Tab for command and file path completion
/read src/comp[Tab] /read src/components/

Command History

Use up/down arrows to navigate command historyPrevious commands are automatically saved

Contextual Help

Add --help to any command for detailed usage
/plan --help
/agent --help

Command Aliases

Many commands have shorter aliases
  • /sh/run
  • /todos/todo list
  • /exit/quit

Next Steps

Use /help at any time to see all available commands. Commands are context-aware and will show relevant options based on your current project and mode.