# Setup Tutorial & Video Guide — ShitCode

**URL:** https://shitcode.in/tutorial/

Connect ChatGPT, Claude, Gemini, Grok, Perplexity, or any MCP-compatible assistant directly to your Windows or Linux PC. Work with local project files, run terminal commands, and automate browsers without costly coding-agent subscriptions.

## Step 1: Sign In & Copy Your Personal Client Token
1. Open the **ShitCode Dashboard** (`https://dashboard.shitcode.in`) and sign in with Google or GitHub.
2. Navigate to the **Devices** tab to copy your personal **Client Token** (`sc_client_...`).
3. One permanent token connects multiple Windows and Linux machines on your account.

## Step 2: Install & Launch the Local Client
Requires Python 3.10+.

### Method 1: Git Clone (Recommended)
- **Windows:**
  ```powershell
  git clone https://github.com/snigdhkumar/shitcode-cli && cd shitcode-cli && shitcode.bat
  ```
- **Linux:**
  ```bash
  git clone https://github.com/snigdhkumar/shitcode-cli && cd shitcode-cli && chmod +x shitcode.sh && ./shitcode.sh
  ```

### Method 2: 1-Click .zip Bundle
1. Download `https://shitcode.in/downloads/shitcode.zip` and extract it.
2. **Windows:** Double-click `shitcode.bat`.
3. **Linux:** Run `chmod +x shitcode.sh && ./shitcode.sh`.

When prompted on first launch, paste your Client Token (`sc_client_...`). It saves locally in `config.json`.

## Step 3: Add the MCP Connector to Your AI Chatbot
In your AI assistant's connector/MCP settings, add:
- **MCP Endpoint:** `https://api.shitcode.in/mcp`
- **SSE Endpoint (if required):** `https://api.shitcode.in/sse`

Complete the 1-click OAuth browser consent with your Google or GitHub account.

## Daily Usage & Tips
- **Everyday Windows Launch:** Double-click `shitcode.bat` (or create a desktop shortcut).
- **Everyday Linux Launch:** Run `./shitcode.sh`.
- **Automatic Updates:** Run `python shitcode.py update` or type `update` in the client console.
- **Permission Control:** Auto-approve is default. Launch with `--ask-permission` or type `perm` to review commands before they run.

