Metadata-Version: 2.2
Name: remotepaw
Version: 1.3.2
Summary: Remote shell, file transfer and Windows desktop control for AI agents — CLI and MCP, zero runtime dependencies
Author: jiaqinq
License: MIT License
        
        Copyright (c) 2026 portal-remote contributors
        
        Permission is hereby granted, free of charge, to any person obtaining a copy
        of this software and associated documentation files (the "Software"), to deal
        in the Software without restriction, including without limitation the rights
        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
        copies of the Software, and to permit persons to whom the Software is
        furnished to do so, subject to the following conditions:
        
        The above copyright notice and this permission notice shall be included in all
        copies or substantial portions of the Software.
        
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
        SOFTWARE.
        
Project-URL: Homepage, https://github.com/jiaqinq/remotepaw
Project-URL: Repository, https://github.com/jiaqinq/remotepaw
Project-URL: Issues, https://github.com/jiaqinq/remotepaw/issues
Project-URL: Changelog, https://github.com/jiaqinq/remotepaw/blob/main/CHANGELOG.md
Keywords: ai,agent,remote,cli,automation,mcp,windows,ssh
Classifier: Development Status :: 4 - Beta
Classifier: Environment :: Console
Classifier: Environment :: Win32 (MS Windows)
Classifier: Intended Audience :: Developers
Classifier: Operating System :: MacOS
Classifier: Operating System :: Microsoft :: Windows
Classifier: Operating System :: POSIX :: Linux
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Topic :: Software Development :: Build Tools
Classifier: Topic :: System :: Systems Administration
Classifier: Topic :: System :: Shells
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE
Provides-Extra: dev
Requires-Dist: build>=1.0; extra == "dev"
Requires-Dist: twine>=5.0; extra == "dev"

# RemotePaw

**Give your AI agent hands on another computer.**

RemotePaw (远程爪) provides **remote shell, file transfer and Windows desktop control for AI agents**.
Use **CLI + MCP**, powered by the **Python standard library**, to run commands, move files and
operate another computer's desktop from an agent on your laptop.

**Official releases:** [PyPI](https://pypi.org/project/remotepaw/) ·
[GitHub Releases](https://github.com/jiaqinq/remotepaw/releases).
This documentation describes **v1.3.2**. Check those official links for version availability before
installing; a source version alone is not proof of publication.
Start with [Install](#install), then the safe [A → B quickstart](#quickstart).

**Trusted machines only:** the server defaults to all IPv4 interfaces and unencrypted HTTP.
Never expose it directly to the internet; use your generated token, not the example below.

```bash
# After the isolated-environment install below, on authorized machine B:
remotepaw serve

# On A: replace the example address/token with B's generated registration command.
remotepaw add b 192.168.1.20:8765 --token=7fK2mQ9xLpA3vN8sR4tYuE1b
remotepaw -t b exec "echo hello-remotepaw"   # harmless shell check on B
```

One file, zero dependencies, no SSH server required on the remote side.

![Python 3.8+](https://img.shields.io/badge/Python-3.8%2B-blue)
[![License](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/jiaqinq/remotepaw/blob/main/LICENSE)
[![CI](https://github.com/jiaqinq/remotepaw/actions/workflows/ci.yml/badge.svg)](https://github.com/jiaqinq/remotepaw/actions)

English · [简体中文](https://github.com/jiaqinq/remotepaw/blob/main/README.zh-CN.md)

---

## The problem

You build with an AI agent on your laptop. But the thing you're building only runs on *that other
box* — the Windows machine with the GPU, the licensed software, the weird driver.

So you copy commands into RDP, one long line at a time. Every iteration costs you a manual
round-trip, and the agent that wrote the code can't see whether it works.

`remotepaw` closes that loop. The agent gets a shell on the other machine — plus file transfer,
background jobs, screenshots, and a control tree for clicking real buttons.

## Install

### Recommended: official PyPI, in a separate virtual environment

Install on **both A and B**. Use a maintained Python **3.12 or 3.13**; the compatibility minimum is
3.8, but that is not a recommendation to install an end-of-life Python. No third-party runtime
dependencies. `python` below means your selected interpreter (`python3` on some systems).

**Windows PowerShell:**

```powershell
python -m venv .venv-remotepaw
.\.venv-remotepaw\Scripts\Activate.ps1
python -m pip install remotepaw
remotepaw --version
```

**Linux / macOS (sh/bash/zsh):**

```sh
python3 -m venv .venv-remotepaw
. .venv-remotepaw/bin/activate
python -m pip install remotepaw
remotepaw --version
```

If PowerShell blocks activation, do not weaken machine-wide execution policy: use
`.\.venv-remotepaw\Scripts\python.exe -m pip install remotepaw`, then invoke
`.\.venv-remotepaw\Scripts\remotepaw.exe` instead of `remotepaw` below. In a new terminal,
reactivate this environment or use its executable explicitly. Installation contacts a package index.

**Verify the source:** v1.3.1 is available from the official
[PyPI release](https://pypi.org/project/remotepaw/1.3.1/) and
[GitHub Release](https://github.com/jiaqinq/remotepaw/releases/tag/v1.3.1).
Check that the package's repository links point to `jiaqinq/remotepaw`, and match the version to
its release and reviewed source; a same-name package alone is not proof of identity. The unpinned
install selects the available release; confirm its version before relying on features described here.

### Alternative: reviewed source

To use a reviewed source revision instead, review the selected commit, then install it in the
same kind of isolated environment:

```bash
git clone https://github.com/jiaqinq/remotepaw
cd remotepaw
python -m pip install .
```

Or copy the reviewed `remotepaw.py` single file and use `python remotepaw.py <subcommand>` on either
machine. Review the selected commit and verify its reported version.

Check the installed command without contacting a remote machine:

```bash
remotepaw --version
remotepaw --help
```

`remotepaw selftest` is an optional local integration check, not a read-only diagnostic:
it starts a loopback server, executes commands and creates temporary files. On Windows it also
captures the screen and inspects windows/accessibility trees. Run it only on an authorized,
disposable test desktop.

## Quickstart

**Before starting:** the default bind is `0.0.0.0` (all IPv4 interfaces), and traffic is
unencrypted HTTP. Use only a trusted LAN or an encrypted VPN/tunnel, restrict firewall access,
and never forward this port directly to the internet. `--cwd` is not a filesystem sandbox.
All addresses and tokens below are examples: use the freshly generated token, not the sample.
Read the [security policy](https://github.com/jiaqinq/remotepaw/blob/main/SECURITY.md).

| Machine | What it needs |
|---|---|
| **A — your AI / CLI computer** | Python + RemotePaw, an authorized route to B and B's token. An AI client is optional for the first check; no server is needed on A. |
| **B — the authorized, trusted target** | Python + RemotePaw and a running `serve` process under an ordinary user. No AI client or SSH server is required. Windows, Linux and macOS support shell/files; desktop control requires Windows. Tools needed by your task must be installed on B. |

**1. On B**, activate the environment above. In a disposable location, create a **new, empty**
directory (choose another name if it already exists), then keep the server terminal open:

```sh
mkdir remotepaw-demo
remotepaw serve --cwd remotepaw-demo
```

The startup output includes B's address and a generated token in a registration command:

```bash
remotepaw add b 192.168.1.20:8765 --token=7fK2mQ9xLpA3vN8sR4tYuE1b
```

Keep this output private. Replace the example with B's actual command; verify that its address is
reachable from A. Always use `--token=VALUE` with `=`, even if the generated token begins with `-`.

> Windows may show a firewall prompt. Allow access only for trusted peers on the intended
> **private network**; do not enable public-network access merely to fix connectivity.

**2. On A**, activate A's environment and register only the authorized B. `add` writes local target
configuration and attempts a remote information check; its success alone does not prove connectivity.

```bash
remotepaw add b 192.168.1.20:8765 --token=7fK2mQ9xLpA3vN8sR4tYuE1b
remotepaw -t b ping
remotepaw -t b exec "echo hello-remotepaw"
remotepaw -t b ls .
```

Expect a successful ping, `hello-remotepaw` with exit code 0, and the empty test directory listing.
These checks do not run project tests, install task dependencies, transfer private files or touch the
GUI. They work with B's default Windows `cmd` or POSIX `sh`. Paths in later examples belong to B;
quote Windows paths when running A's commands from a POSIX shell. Stop the demo server on B with
Ctrl+C when finished; do not assume that stops previously launched task processes.

**3. Optional: a tiny synthetic file round trip**, while B's demo server is still running.
On A, use a **new, empty** local directory (stop and choose another name if it exists). Confirm B's
`remotepaw-demo` is still empty and no per-target working directory has been set. These commands
work in PowerShell or POSIX shells with A's virtual environment active:

```sh
mkdir remotepaw-transfer-demo
cd remotepaw-transfer-demo
python -c "from pathlib import Path; Path('hello.txt').write_bytes(b'hello-remotepaw')"
remotepaw -t b push hello.txt hello-from-a.txt
remotepaw -t b read hello-from-a.txt
remotepaw -t b pull hello-from-a.txt hello-back.txt
python -c "from pathlib import Path; print(Path('hello.txt').read_bytes() == Path('hello-back.txt').read_bytes())"
```

Expect `hello-remotepaw` from `read` and `True` from the byte comparison. This writes only the named
test files in the two fresh directories, not your project. Transfers can overwrite existing files:
inspect both ends first, and do not rerun blindly after a failure. Clean up only these disposable
folders yourself after stopping the demo; no deletion command is needed for the check.

**4. Give A's AI the explicit target and task** using the [agent instructions](#hook-it-up-to-your-agent)
only after the manual check works. Output streams back; the remote exit code is passed through.

A successful result requires a valid final `exit` event. A disconnected or malformed stream
is an error, not exit code 0. If the result is unknown, check the remote state before retrying:
the command may already have made changes. Ctrl+C closes the connection but does not confirm
that the remote process has stopped; use `--timeout` for a server-side time limit, or use
`job start` / `job stop` for work that needs explicit lifecycle control.

## What it can do

| | |
|---|---|
| **Run commands** | streaming stdout/stderr, real exit codes, timeouts, `--stdin` piping |
| **Move files** | `push` / `pull` whole directories, `read` / `write`, `tail -f` logs |
| **Background jobs** | start a dev server, follow its log, stop it — without blocking |
| **Screen** | capture screenshots, record a GIF, crop or scale (Windows) |
| **GUI control** | click by element name via UI Automation, or fall back to coordinates |
| **AI-native** | works as a plain shell tool, *and* as an MCP server |

### File transfer behavior

Use **fresh, disposable directories and synthetic files/project copies** for examples, not production
or private data. Check both endpoints before writing. Advanced examples assume you have prepared
their inputs and authorized their effects; they are not first-connection checks.

- Single-file `pull` and `read -o` preserve file bytes, including UTF-8 BOM and LF/CRLF line endings.
- CLI/MCP `pull` defaults to the basename of the server-resolved path, including when Windows and
  POSIX hosts differ. A single file pulled to an **existing local directory** is saved inside it.
  Directory pulls instead merge their **contents directly into** the selected local path, without
  another nested source directory. Existing files may be overwritten; review the destination first.
  For a single file, create missing local parent directories yourself; a trailing local separator
  requires an existing directory. Remote roots or names invalid on the local OS require an explicit
  local path.
- Directory transfers preserve empty directories and share the same skip rules across CLI and MCP.
  Common generated directories and `.DS_Store` are excluded by default; CLI `push --all` / `pull --all`
  disables these exclusions. These rules are not a secret scanner: review the source tree yourself.
- Directory transfer supports ordinary files and directories only. Links (including hard links),
  device files and FIFOs cause an explicit error; they are not silently skipped or followed.
  Archive paths must be relative, without `..` components, backslashes or colons.
  Gzip checksums/trailers are validated before extraction writes any destination files.
- Unreadable files and failed directory scans fail the transfer instead of reporting partial success.
  Extraction is **not transactional**: disk/permission errors can leave files already written.
  Check the destination before retrying. Archive checks are not a filesystem sandbox and cannot
  protect against another process concurrently changing destination paths.

For a Windows target named `b`, in PowerShell or a POSIX shell (create `downloads` first):

```sh
remotepaw -t b pull 'C:\work\report.txt'                 # saves ./report.txt
remotepaw -t b pull 'C:\work\report.txt' downloads/      # saves downloads/report.txt
remotepaw -t b pull 'C:\work\project' ./snapshot        # merges contents into ./snapshot
```

## Hook it up to your agent

The CLI is the whole integration for any agent that can run shell commands. Give it the contract:

```markdown
<!-- append to AGENTS.md / CLAUDE.md / .cursorrules -->
The machine "b" is reachable via the `remotepaw` CLI. Anything that must run on b
goes through `remotepaw exec "..."`, not your local shell. To read or edit files on b,
use `remotepaw read` / `remotepaw pull` / `remotepaw write` / `remotepaw push` — your own file
tools only see this laptop. Full command reference:
https://github.com/jiaqinq/remotepaw/blob/main/AI-INSTRUCTIONS.md
```

[`AI-INSTRUCTIONS.md`](https://github.com/jiaqinq/remotepaw/blob/main/AI-INSTRUCTIONS.md) is a ready-made prompt covering the traps
(your file tools are local, don't use `exec` for long-running servers, coordinate scaling, …).

**Or use MCP** — for clients that support it, `remotepaw` exposes 15 tools directly.
Integration is opt-in; installing RemotePaw does not edit AI client settings.

The transport is newline-delimited UTF-8 JSON over stdio, with diagnostics on stderr only.
RemotePaw negotiates **MCP `2024-11-05`** rather than claiming support for an arbitrary version
requested by a client. The client must support the returned version to continue
([version negotiation](https://modelcontextprotocol.io/specification/2024-11-05/basic/lifecycle)).
Malformed messages receive JSON-RPC errors without ending the session; batches run sequentially,
and notifications never execute tools. The snippets below are optional, manual configuration examples,
not a claim of tested compatibility with every client/version. Consult your client's current docs.
Use the **absolute path to A's virtual-environment executable** for `command` if the client does not
inherit your terminal's PATH (Windows: `.venv-remotepaw\Scripts\remotepaw.exe`; POSIX:
`.venv-remotepaw/bin/remotepaw`). Do not embed the token here: register B from that same OS account
first. Do not automatically scan or modify AI client configuration.

```jsonc
// Claude Code (.mcp.json) / Claude Desktop (claude_desktop_config.json)
{
  "mcpServers": {
    "remotepaw": {
      "command": "remotepaw",
      "args": ["-t", "b", "mcp"]
    }
  }
}
```

```toml
# Codex (~/.codex/config.toml)
[mcp_servers.remotepaw]
command = "remotepaw"
args = ["-t", "b", "mcp"]
```

`remotepaw_exec`, `remotepaw_read`, `remotepaw_write`, `remotepaw_ls`, `remotepaw_push`, `remotepaw_pull`,
`remotepaw_job_start`, `remotepaw_job_logs`, `remotepaw_job_stop`, `remotepaw_info`, `remotepaw_screenshot`,
`remotepaw_ui`, `remotepaw_mouse`, `remotepaw_keyboard`, `remotepaw_windows`.

Tool discovery lists the `remotepaw_*` names. Legacy `portal_*` calls remain accepted as deprecated
compatibility aliases but are not duplicated in the tool list. For target selection, use
`REMOTEPAW_TARGET`; `PORTAL_TARGET` remains a fallback when the new variable is not set.
Temporary `host:port` targets use `REMOTEPAW_TOKEN`, with `PORTAL_TOKEN` as the legacy fallback.
Both token variables contain secrets; do not print or publish them.

## Driving the GUI

GUI operations require **B to be Windows, in a dedicated, explicitly authorized, logged-in
interactive session** running the server as that user. They affect real focus, windows and input;
never try them on someone's active desktop or assume a service session has a desktop.
Use a disposable app/document, not production data. The examples below are not onboarding checks;
review every action before running it. Two ways in, in order of reliability:

**1. By element name (recommended).** Apps that expose an accessibility tree let you locate
supported buttons and fields by name:

```bash
remotepaw ui tree --title "Notepad"       # see what's there
remotepaw ui click "Save"                 # click by name — no coordinates involved
remotepaw ui set "File name" "out.txt"    # fill an input
remotepaw ui read "Status"                # read text off a control
```

Pattern-based actions do not depend on screen coordinates. Clicks use `InvokePattern` or
another supported accessibility action where possible; unsupported controls may fall back to
coordinates, which still depend on visibility, focus and screen layout.

**2. By coordinates (fallback).** For canvas UIs, games, and anything without a control tree:

```bash
remotepaw screen -o shot.png              # screenshot to your laptop
remotepaw mouse click 1240 86             # then click a pixel
remotepaw type "hello"                    # Unicode text, Chinese included
remotepaw key "ctrl+s"                    # key combos
```

`remotepaw record -o demo.gif --seconds 5` captures the whole session if you want to watch what the
agent did afterwards.

## Security

Read this before exposing it to anything.

- **The token is the only credential.** It's generated on first `serve`, stored in
  `~/.portal/server_token`, and compared in constant time. Use the generated token; server tokens
  require at least 16 printable, non-whitespace ASCII characters. Old custom tokens outside that
  format must be replaced. Invalid token text is rejected locally without echoing its value.
  For generated URL-safe tokens, use `--token=VALUE` (with `=`), including when the token starts
  with `-`; the startup command uses this form. If a custom token contains shell-special characters,
  omit `--token` from `remotepaw add` and
  enter it at the token prompt instead (the prompt is not hidden). Anyone with it can run commands and
  drive your mouse. Treat it like an SSH private key.
- **There is no TLS.** Traffic is plain HTTP. Use it on a trusted LAN, or wrap it in a tunnel:
  [Tailscale](https://tailscale.com/) (easiest), WireGuard, or `ssh -L`.
- **Never expose the port directly to the internet.**
- The default is `0.0.0.0`; bind to the intended interface, e.g. `remotepaw serve --host 192.168.1.20`,
  and restrict firewall access. Binding an interface is not encryption.
- Client tokens are stored in plaintext in `~/.portal/config.json`; startup output prints the
  server token. Protect file permissions, terminal history and logs. Do not commit them.
  State writes use private temporary files and atomic replacement; POSIX files are owner-only.
  On Windows, secure the state directory ACL; replacement does not preserve file-specific ACLs.
  Avoid concurrent configuration edits/server starts sharing one state directory. Invalid client
  configuration stops the command rather than silently discarding registrations; back up and repair it.
- If exposed, stop the server, remove or securely replace its saved token, restart without an old
  explicit `--token`, and register clients again. Previously started processes need a separate check.
- `--cwd` does not restrict file access or commands. `/health` is unauthenticated and includes
  the version, hostname and OS family. See the [security policy](https://github.com/jiaqinq/remotepaw/blob/main/SECURITY.md) for details.

This is a tool for machines you own, talking to each other. It is not a multi-tenant service.

## How it works

```
A — your laptop                         B — the other computer
AI agent                                remotepaw serve
  └─ remotepaw exec "npm test"  ───────►   └─ cmd / sh
                               HTTP + token / NDJSON
                               ◄───────   live output + exit code
```

- **B** runs a `ThreadingHTTPServer`. `/exec` responds with newline-delimited JSON events
  (`start` / `out` / `err` / `exit`), one per chunk, flushed as it happens.
  `Connection: close` gives a natural EOF boundary, so no chunked encoding is needed.
- **A** is a CLI with a tiny state file (`~/.portal/config.json`): targets, tokens, and the
  current working directory per target. The server keeps background-job records in memory,
  not a persistent shell session.
- Every command is a fresh process. `cd` is tracked client-side, which is more reliable than
  keeping a long-lived shell alive.
- The GUI layer uses GDI for capture and `SendInput` for input. Performance depends on the
  machine, screen size and content; there is no fixed screenshot latency or GIF size guarantee.
  The control tree comes from Windows UI Automation, which cannot hold element references across
  processes, so each call does *find + act* in one shot.

Why one file? Because the deployment story matters more than the module layout: copy it, run it.
`pip install` is a convenience on top, not a requirement.

## Limitations

- **CLI messages are currently Chinese-only.** Subcommands, flags, exit codes, `--json` output and
  MCP payloads are language-neutral, so agents work fine — but a human reading `remotepaw serve` needs
  a little Chinese. Localization is on the roadmap.
- Desktop features (`screen`, `ui`, `mouse`, `key`, `type`, `win`, `record`) and the built-in
  `autostart` installer are **Windows only**. Command execution and file transfer also support
  Linux and macOS. Windows GUI control needs a logged-in interactive desktop.
- Accessibility support varies by app and version. Chromium, WPF, UWP and Qt apps may expose
  useful trees; games and custom-drawn canvases may require coordinate-based input.
- No interactive TTY. `stdin` is empty unless you pass `--stdin`.
- Background-job records live in memory and are lost when the server restarts. Graceful shutdown
  attempts to stop jobs; a crash or forced termination may leave processes running.
- No TLS, by design — see above.

## Troubleshooting

Start with `remotepaw --version` and `remotepaw --help`; neither contacts a target.

**Since v1.3.2:** `remotepaw doctor` and `remotepaw doctor --json` are always **local,
read-only** checks. They do not connect to targets or perform DNS lookups, take screenshots, run
commands, or write configuration/state. Output does not show paths, target names/addresses or
credentials. Missing configuration or no targets is normal `info`, not failure; malformed
configuration is a failure with exit code 1. Each inspected file has a **1 MiB diagnostic read
limit**; exceeding it fails the check without resetting the file. This is not a runtime configuration
size limit. Exit code 0 means no failed local checks, **not** that
B is healthy or secure. This is neither a remote health check nor a security audit.

JSON has `schema_version: 1`, `version`, `ok`, and `checks`, an array of
`{id, status, message}` objects; `status` is `ok`, `info` or `fail`.
**Do not use doctor from v1.3.1 or earlier as an offline check:** those versions automatically
contact saved targets and do not have this JSON contract. Even after installing the latest available
PyPI package, check `--version` first; use these diagnostics only with the v1.3.2 implementation
or later; verify availability through the official release links.

For an **explicitly authorized remote connection check**, run:

```bash
remotepaw -t b ping
```

If it fails, confirm B's server is still running, the registered address/port is correct, the trusted
LAN/encrypted VPN route works, and the firewall permits only intended peers. A 401 means the token
needs to be checked privately; never post startup output. Do not fix connectivity by opening public
network access. If command execution was interrupted, inspect B's state before retrying.

For non-sensitive bug reports, use the issue template with version, A/B OS, a minimal synthetic
reproduction, and short redacted expected/actual output. Local v1.3.2 doctor output is optional;
review it before sharing. Remove tokens, addresses, usernames and private paths from all material.
Do not paste complete configuration, startup output or full logs. Vulnerabilities follow the
[security policy](https://github.com/jiaqinq/remotepaw/blob/main/SECURITY.md), not a public issue.

## FAQ

**Why not just SSH?**
SSH gives you a terminal. An agent needs something slightly different: per-command exit codes, live
output, file transfer, background jobs, and GUI access — on Windows, without installing an SSH
server. `remotepaw` is that interface. If you already have SSH and only need shells, use SSH.

**Does it need admin rights?**
No. It runs as your user, which is also why GUI automation works (services run in a session with
no desktop).

**Can two people share one server?**
It is not designed for safe multi-user sharing. Requests can arrive concurrently, but all clients
share one token, one operating-system account and one desktop; there is no isolation.

**What happened to portal / portal-remote?**
The project is now **RemotePaw** (远程爪), at `jiaqinq/remotepaw`. The PyPI package name and primary
CLI are both `remotepaw`, and the primary source module is `remotepaw.py`. **v1.3.1 is officially
published on PyPI**; see [Install](#install) for release links and source identity checks.
Use the official release links to check newer versions.

The old `portal` CLI and `portal.py` module remain **deprecated compatibility aliases**. Prefer
`remotepaw` / `remotepaw.py` for new commands and deployments. Existing `~/.portal` configuration,
including `config.json` and `server_token`, stays in place and is shared by both entry points;
there is **no automatic migration** to another directory. Do not install alongside unrelated
packages that provide the same commands or modules.

## Development

```bash
git clone https://github.com/jiaqinq/remotepaw
cd remotepaw
python -m pip install -e ".[dev]"
python -B -m unittest discover -s tests -v
python remotepaw.py --version
```

See the [contribution guide](https://github.com/jiaqinq/remotepaw/blob/main/CONTRIBUTING.md) for safe tests, packaging checks and the release
checklist. Tests use loopback networking and temporary files; they must not contact configured
remote targets. Do not run GUI self-tests on an active user desktop.

Releases require a matching version tag and a configured PyPI trusted publisher for this GitHub
repository, `publish.yml` and its configured publishing environment. Configure GitHub private vulnerability
reporting and review the exact release commit and fresh artifacts before authorizing any tag or upload.
Production publish jobs run only on a matching `vVERSION` tag push or a manual `pypi` dispatch on
that tag; a manual `pypi` dispatch on `main` does not publish to production. Editing the version
alone is not a release. The [publishing workflow](https://github.com/jiaqinq/remotepaw/blob/main/.github/workflows/publish.yml)
also supports optional TestPyPI validation with a separate publisher.
Never upload old local artifacts or reuse a version already uploaded to the selected index.

## License

MIT — see [LICENSE](https://github.com/jiaqinq/remotepaw/blob/main/LICENSE).
