Metadata-Version: 2.4
Name: cursor-portable
Version: 1.0.4
Summary: Download Cursor and install a portable copy on a removable drive.
Keywords: cursor,portable
Author: tboy1337
License-Expression: MIT
License-File: LICENSE
Classifier: Environment :: Win32 (MS Windows)
Classifier: Operating System :: MacOS
Classifier: Operating System :: POSIX :: Linux
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Classifier: Programming Language :: Python :: 3.15
Classifier: Typing :: Typed
Requires-Dist: autopep8 ; extra == 'dev'
Requires-Dist: bandit ; extra == 'dev'
Requires-Dist: black ; extra == 'dev'
Requires-Dist: blinter ; extra == 'dev'
Requires-Dist: complexipy ; extra == 'dev'
Requires-Dist: isort ; extra == 'dev'
Requires-Dist: mypy ; extra == 'dev'
Requires-Dist: pip-audit ; extra == 'dev'
Requires-Dist: pylint ; extra == 'dev'
Requires-Dist: pyproject-fmt ; extra == 'dev'
Requires-Dist: pytest ; extra == 'dev'
Requires-Dist: pytest-cov ; extra == 'dev'
Requires-Dist: pytest-mock ; extra == 'dev'
Requires-Dist: pytest-timeout ; extra == 'dev'
Requires-Dist: pytest-xdist ; extra == 'dev'
Requires-Dist: shellcheck-py ; extra == 'dev'
Requires-Dist: yamllint ; extra == 'dev'
Requires-Python: >=3.11, <3.16
Project-URL: Documentation, https://github.com/tboy1337/cursor-portable/tree/main/docs
Project-URL: Homepage, https://github.com/tboy1337/cursor-portable
Project-URL: Repository, https://github.com/tboy1337/cursor-portable.git
Provides-Extra: dev
Description-Content-Type: text/markdown

# Cursor Portable

Cursor Portable downloads the official Cursor IDE, the CLI, or both on your computer and copies that build onto a removable drive.

This repository does not contain Cursor. The wizard downloads a relocatable CPython 3.14 with pip onto the drive and copies this tool there. The drive is for the person who created it, under that person's own Cursor account. This tool does not protect sign-in tokens. Windows may bind them to the account that created them, and another computer may have to sign in again.

The drive uses NTFS on Windows, APFS on macOS, and ext4 on Linux. It keeps that system's Cursor build, the relocatable CPython, and one launcher.

## From PyPI

The package needs Python 3.11 through 3.15.

```bash
python -m pip install cursor-portable
python -m cursor_portable
```

## From this repository

The package needs Python 3.11 through 3.15. `uv sync` or `python -m pip install .` installs it. The wizard uses tkinter from that Python.

```bash
uv sync
uv run python -m cursor_portable
```

```bash
python -m pip install .
python -m cursor_portable
```

The dev extra and `uv run python scripts/verify.py` are described in [CONTRIBUTING.md](CONTRIBUTING.md).

## Wizard

The wizard opens on the drive page. The Back button changes the choices already filled in:

- IDE and CLI
- this operating system and this CPU
- the Windows user build, on a Windows target
- a copy of this computer's profile, when the target system is this computer

A different target system starts with an empty profile. When exactly one removable drive can be used, the wizard selects it. A drive that needs formatting still requires its current label to be typed. Typing `E:` or `E:\` confirms a drive with no label. Formatting erases the drive. A read-only mount, the system disk, and non-removable disks are refused.

Re-running the setup updates the portable install. An existing portable profile on the drive is kept unless the wizard is set to a fresh profile. A fresh profile removes the portable user data, extensions, and `.cursor` profile on the drive.

## Launcher

The wizard writes one launcher into `CursorPortable/` on the drive. On Windows that file is `CursorPortable.cmd`. Starting it closes the command window immediately, and the launcher keeps running, with no window of its own, until Cursor exits. `CursorPortable.cmd --console`, or `CURSOR_PORTABLE_CONSOLE=1`, keeps the console attached and shows its exit code. On macOS or Linux the launcher is `cursor-portable`.

The launcher copies the application to a local cache for that drive and points `~/.cursor` at the portable profile for the session. The portable Python is prepended on the Windows user PATH. On macOS it is prepended in `~/.zprofile`, `~/.zshrc`, and `~/.profile`. On Linux it is prepended in `~/.profile` and `~/.bashrc`. PATH and `~/.cursor` are restored when Cursor exits.

## Host cleanup

Uninstall removes the cache, the PATH entry, and the shortcuts this tool created. The removable drive is left unchanged. Uninstall refuses to run while that Cursor session is still open.

Use the Uninstall button in the setup window. After `uv sync`, run `uv run python -m cursor_portable uninstall`. After `python -m pip install .`, run `python -m cursor_portable uninstall`.

## Layout

The drive layout, profile copy, and in-app update are in [docs/portable-cursor.md](docs/portable-cursor.md). Module boundaries are in [docs/Architecture.md](docs/Architecture.md).

## License

[MIT](LICENSE).
