# π Octocode CLI
<div align="center">
[](https://www.npmjs.com/package/octocode-cli)
[](https://www.npmjs.com/package/octocode-cli)
[](LICENSE)
**The unified installer and management hub for Octocode MCP servers and AI skills.**
[Website](https://octocode.ai) β’ [Documentation](https://docs.octocode.ai) β’ [GitHub](https://github.com/bgauryy/octocode-mcp)
<img src="https://raw.githubusercontent.com/bgauryy/octocode-mcp/main/packages/octocode-cli/assets/example.png" alt="Octocode CLI Demo" width="700" style="border-radius: 8px; margin: 20px 0;">
</div>
**Octocode CLI** is the essential companion for AI-assisted development. It streamlines the installation of [octocode-mcp](https://www.npmjs.com/package/octocode-mcp), manages authentication across multiple AI clients, and keeps your MCP configurations synchronized.
---
## β¨ Key Features
- **π One-Step Installation**: Instantly configure `octocode-mcp` for Cursor, Claude Desktop, Windsurf, Zed, and more.
- **π MCP Marketplace**: Browse and install over 70+ community-vetted MCP servers directly from your terminal.
- **π§ AI Skills Manager**: Install and update specialized AI coding skills for Claude Code (`research`, `local-search`, `implement`, `plan`, `pr-review`, `roast`).
- **π Universal Sync**: Keep your MCP configurations and authentication states synchronized across all your IDEs.
- **π Secure Authentication**: Enterprise-grade token management with encrypted storage and multiple auth providers.
---
## π Quick Start
Get up and running in seconds. The interactive wizard will guide you through installation and authentication.
```bash
npx octocode-cli
```
---
## π¦ Installation & Usage
### Interactive Mode
The recommended way to use Octocode CLI. Access all features through a unified menu:
| Menu Item | Description |
|-----------|-------------|
| **π Octocode MCP** | Install and configure Octocode MCP for your IDEs |
| **π Octocode Skills** | Install AI-powered research, planning & review skills |
| **π§ Manage System Skills** | Browse skills marketplace and manage installed skills |
| **π Manage Auth** | Sign in/out via Octocode OAuth or gh CLI |
| **β‘ Manage System MCP** | Sync configs, browse MCP marketplace, inspect settings |
```bash
npx octocode-cli
```
### CLI Commands
For automation and power users, Octocode CLI offers a comprehensive command-line interface.
#### 1. Install Octocode MCP
Install the GitHub MCP server for your preferred IDE.
```bash
# Interactive install
octocode-cli install
# Specific IDEs
octocode-cli install --ide cursor --method npx
octocode-cli install --ide claude-desktop --method direct
octocode-cli install --ide windsurf
octocode-cli install --ide zed
```
**Supported IDEs**: `cursor`, `claude-desktop`, `claude-code`, `windsurf`, `zed`, `vscode-cline`, `vscode-roo`, `vscode-continue`, `opencode`, `trae`, `antigravity`
#### 2. Manage Authentication
Securely authenticate with GitHub. Credentials are encrypted (AES-256-GCM) and stored in `~/.octocode/`.
```bash
# Interactive login (OAuth device flow)
octocode-cli login
# Check authentication status
octocode-cli status
# Enterprise Login
octocode-cli login --hostname github.mycompany.com
# Sign out
octocode-cli logout
# Auth management menu
octocode-cli auth
```
#### 3. Get GitHub Token
Retrieve tokens for scripting or debugging.
```bash
# Get token (auto: env β gh β octocode)
octocode-cli token
# Get token from specific source
octocode-cli token --type=octocode
octocode-cli token --type=gh
# Show token source and user info
octocode-cli token --source
# JSON output for scripting
octocode-cli token --json
```
#### 4. Sync Configurations
Keep your MCP settings consistent across different editors.
```bash
# Sync all IDEs
octocode-cli sync
# Preview changes (dry run)
octocode-cli sync --dry-run
# Show sync status
octocode-cli sync --status
# Force sync (auto-resolve conflicts)
octocode-cli sync --force
```
#### 5. Manage Skills
Install AI skills for Claude Code.
```bash
# List available skills
octocode-cli skills list
# Install all skills
octocode-cli skills install
# Force reinstall (overwrite existing)
octocode-cli skills install --force
```
---
## π₯οΈ Supported Clients
Octocode CLI supports a wide range of AI-first editors and tools.
| Client | Description | Config Location (macOS) |
|--------|-------------|-------------------------|
| **Cursor** | AI-first code editor | `~/.cursor/mcp.json` |
| **Claude Desktop** | Anthropic's desktop app | `~/Library/Application Support/Claude/` |
| **Windsurf** | Codeium AI IDE | `~/.codeium/windsurf/mcp_config.json` |
| **Zed** | High-performance editor | `~/.config/zed/settings.json` |
| **Claude Code** | CLI Assistant | `~/.claude.json` |
| **Trae** | Adaptive AI IDE | `~/Library/Application Support/Trae/mcp.json` |
| **Antigravity** | Gemini-powered AI IDE | `~/.gemini/antigravity/mcp_config.json` |
| **Opencode** | AI coding agent CLI | `~/.config/opencode/config.json` |
| **VS Code Extensions** | Cline, Roo-Cline, Continue | *(Varies by extension)* |
---
## π§ Troubleshooting
If you encounter issues, try the following commands:
```bash
# Diagnose environment issues
npx node-doctor
# Reset local credentials
rm -rf ~/.octocode && octocode-cli login
# Verify auth status
octocode-cli status
```
**Common Issues:**
- **Token Expired**: Run `octocode-cli login` to refresh credentials.
- **Browser Not Opening**: Copy the authorization URL manually from the terminal.
---
## Privacy & Telemetry
Octocode collects **de-identified** telemetry data to improve the tool, including command usage and error rates. We **never** collect source code, environment variables, or PII.
You can opt-out at any time:
```bash
export OCTOCODE_TELEMETRY_DISABLED=1
```
For full details, please read our [Privacy Policy](../../PRIVACY.md) and [Terms of Usage](../../TERMS.md).
---
## π License
This project is licensed under the **MIT License**.
Copyright Β© 2026 Octocode AI.