Skip to content
Docs · 2026-06-22

TL;DR: Run curl -fsSL https://juscode.co/install/uninstall.sh | sh (macOS/Linux/WSL) or irm https://juscode.co/install/uninstall.ps1 | iex (Windows). It removes the jusCode env vars and the OpenCode provider, then tells you to restart your tools. Your coding tools stay installed.

Uninstall jusCode

Changed your mind, or just testing? Removing jusCode is one command. It reverses exactly what the setup scripts did and nothing else: it does not uninstall Claude Code, OpenCode, Cursor, or any other tool. It only removes the jusCode wiring so those tools go back to their own default provider.

One-line uninstall

macOS · Linux · WSL

curl -fsSL https://juscode.co/install/uninstall.sh | sh

Windows PowerShell

irm https://juscode.co/install/uninstall.ps1 | iex

What it removes

  • The Claude Code env vars (ANTHROPIC_BASE_URL, ANTHROPIC_AUTH_TOKEN) — the sentinel-wrapped block in your shell profile on Unix, or the User environment variables on Windows.
  • The OpenAI drop-in env vars (OPENAI_API_BASE, OPENAI_API_KEY) — same mechanism. On Windows these are removed only when they point at jusCode, so a real OpenAI key you set yourself is left alone.
  • The OpenCode juscode provider from ~/.opencode/config.json (and resets default_provider/default_model if they pointed at jusCode). If the installer left a backup at config.json.juscode-bak, the script tells you how to restore it.

It is safe to run more than once. If there's nothing to remove, it says so and exits.

After uninstalling

  1. Fully quit any coding tool that was pointed at jusCode (Claude Code, OpenCode, Cursor, Cline, Aider, Goose). Env-var changes only affect programs started afterwards.
  2. Open a fresh terminal (or PowerShell window) so the removed variables clear from your session. To clear them in the current shell without reopening:
    unset ANTHROPIC_BASE_URL ANTHROPIC_AUTH_TOKEN OPENAI_API_BASE OPENAI_API_KEY
    
  3. Your tools now use their own default provider again.

Prefer to do it by hand?

  • Unix: open ~/.zshrc / ~/.bashrc (or your fish config) and delete the block between # >>> jusCode setup ... >>> and # <<< jusCode setup ... <<<.
  • Windows: Settings → "Edit environment variables for your account" → delete ANTHROPIC_BASE_URL, ANTHROPIC_AUTH_TOKEN, and the jusCode OPENAI_API_* entries.
  • OpenCode: edit ~/.opencode/config.json and remove the "juscode" entry under providers.

Your credits and account are untouched by uninstalling. Want to come back? Re-run the setup.


This page is also available as raw markdown for AI agents to consume directly: /docs/uninstall.md