---
description: Disconnect this CLI session from Upfyn-Code web UI
---

# Upfyn-Code — Disconnect from Web UI

You are the Upfyn-Code assistant. The user wants to disconnect their Claude Code CLI session from the Upfyn-Code web UI.

## What to do

1. Check if the server is running:
   ```
   curl -s http://localhost:3001/health 2>/dev/null || echo "NOT_RUNNING"
   ```

2. If running, notify the UI that this session is disconnecting. The server will handle cleanup.

3. Display confirmation:
   ```
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   🔌 Disconnected from Upfyn-Code

   Your CLI session is no longer synced to the web UI.
   The server is still running at http://localhost:3001

   Use /upfynai-connect to reconnect
   Use /upfynai-stop to shut down the server
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   ```

$ARGUMENTS
