An interactive AI-powered assistant for Clix SDK development. Built with React and Ink, Clix CLI provides a chat interface with AI agents to help you integrate, debug, and manage the Clix Mobile SDK in your projects.
- Interactive Chat Interface: Natural conversation with AI agents using streaming responses
- Multiple AI Agents: Support for Claude Code and Codex
- 13 Slash Commands: Quick actions for common tasks and workflows
- Skills System: Pre-built workflows for SDK integration, event tracking, user management, and personalization
- Debug Assistant: Interactive problem diagnosis and root cause analysis
- Session Transfer: Save and continue conversations in native agent CLIs
- Agent Switching: Switch between Claude and Codex mid-conversation with full history preservation
- Context Management: Real-time tracking with automatic history compaction at 90% threshold
- MCP Server Integration: Built-in installer for Clix MCP Server
npm install -g @clix-so/clix-clibun add -g @clix-so/clix-cliInstall directly from the GitHub repository to get the latest development version:
# Install globally
npm install -g github:clix-so/clix-cli
# Or run without installing
npx github:clix-so/clix-cliInstall from specific branch or commit:
# Install from specific branch
npm install -g github:clix-so/clix-cli#feature-branch
# Install from specific commit
npm install -g github:clix-so/clix-cli#abc1234curl -fsSL https://cli.clix.so/install.sh | bashbrew tap clix-so/clix-cli
brew install clixSee UNINSTALL.md for instructions on how to remove Clix CLI.
- Node.js 20+ (Bun v1.0+ is optional for faster development)
- One of the following AI agents:
- Claude Code - Anthropic's Claude-powered coding assistant
- Codex - OpenAI's Codex-powered coding assistant
- Start interactive chat:
clix- Select your AI agent (if multiple are available):
clix agent claude- Use natural language or slash commands:
> How do I integrate Clix SDK into my iOS project?
> /debug
> /integrate
Start an interactive chat session with your configured AI agent.
clixFeatures:
- Natural language conversation
- Real-time streaming responses
- 13 slash commands for quick actions
- Context tracking with usage indicators
- History navigation (↑/↓ arrows)
- Press Escape to cancel streaming
Shortcuts:
/help- Show all available commands/debug- Interactive debugging assistant/integrate- SDK integration guide/agent- Switch AI agents/transfer- Transfer session to native CLI/exit- Exit chat
List available AI agents or switch to a specific agent.
# List available agents
clix agent
# Switch to Claude
clix agent claude
# Switch to Codex
clix agent codexDetects available agents (Claude Code, Codex) on your system. Your selection is saved to ~/.clix/config.json.
Install the Clix SDK into your project with AI assistance.
clix install
# Use custom installation prompt
clix install --prompt-url https://example.com/custom-prompt.txtOptions:
-p, --prompt-url <url>- Custom URL for installation instructions
SDK integration guide for your platform.
clix integrate
clix integrate --platform iosEvent tracking setup with Clix.trackEvent().
clix track
clix track --platform androidUser management and identification setup.
clix userPersonalization templates setup.
clix personalizeAnalyze SDK integration status in your project.
clix diagnoseInteractive debugging assistant for troubleshooting issues.
clix debug "Push notifications not working on iOS"Install Clix MCP Server for enhanced AI assistance.
# Auto-detect agent
clix install-mcp
# Install for specific agent
clix install-mcp claude
clix install-mcp codexUse these commands within the interactive chat (clix):
/integrate- SDK integration guide/track- Event tracking setup/user- User management setup/personalize- Personalization templates
/diagnose- Diagnose SDK integration status/debug- Interactive debugging assistant/install-mcp- Install Clix MCP Server/agent- List or switch agents/transfer- Transfer session to agent CLI/help- Show available commands/clear- Clear chat history/compact- Compress conversation history/exit- Exit the chat
The /debug command provides interactive problem diagnosis:
- Type
/debugin chat - Describe your problem (e.g., "Push notifications not working on iOS")
- AI investigates your project structure and code
- Receive root cause analysis and recommended fixes
> /debug
Describe the problem: Events not appearing in Clix dashboard
[AI explores project, identifies issue, provides fixes]
Transfer your conversation to continue in the native agent CLI:
> /transfer claude
✅ Session saved to ~/.clix/session-1234567890.md
To continue in Claude Code:
claude "$(cat ~/.clix/session-1234567890.md)"
This preserves your entire conversation history and allows you to continue seamlessly in the agent's native interface.
Switch between Claude and Codex without losing your conversation:
> /agent codex
Switching to Codex...
[Conversation history preserved]
Pre-built workflows help with common SDK tasks:
- Platform Detection: Automatically detects iOS, Android, React Native, or Flutter
- Step-by-Step Guidance: AI guides you through each step
- Best Practices: Follows Clix SDK best practices and conventions
Available skills: integrate, track, user, personalize
src/
├── cli.tsx # Main CLI entry point
├── commands/ # Command implementations
│ ├── agent.tsx # Agent management
│ ├── chat.tsx # Interactive chat
│ ├── debug.tsx # Debug assistant
│ ├── install.tsx # SDK installation
│ ├── install-mcp.tsx # MCP server installation
│ └── skill/ # Skills command
├── lib/ # Core functionality
│ ├── agents.ts # Agent detection
│ ├── config.ts # Configuration management
│ ├── executor.ts # Agent executor interface
│ ├── executors/ # Agent implementations
│ │ ├── claude-executor.ts
│ │ └── codex-executor.ts
│ ├── services/ # Service modules
│ │ ├── debug-service.ts
│ │ ├── history-compaction.ts
│ │ ├── mcp-install-service.ts
│ │ └── transfer-service.ts
│ └── skills.ts # Skills system
└── ui/ # User interface
├── chat/ # Chat interface
│ ├── ChatApp.tsx
│ ├── components/ # Chat components
│ ├── context/ # React context
│ └── hooks/ # Chat hooks
└── components/ # Reusable UI components
See CONTRIBUTING.md for detailed development guide.
# Clone the repository
git clone https://github.com/clix-so/clix-cli.git
cd clix-cli
# Install dependencies
bun install
# Run in development mode
bun run dev
# Build
bun run build
# Compile binaries
bun run build:binary
# Run tests
bun testPull requests and issues are welcome! See CONTRIBUTING.md for:
- Development setup and workflow
- Code contribution process
- Testing guidelines
- Release process
MIT
- GitHub Repository
- Issue Tracker
- Homebrew Tap
- Clix SDK Documentation
- LLMs.txt - Detailed documentation for AI assistants
Made with love by the Clix team