2026-01-07 17:42:25 -08:00
2026-01-06 20:02:48 -08:00
2026-01-06 20:02:48 -08:00
2026-01-07 17:42:25 -08:00
2026-01-06 20:02:48 -08:00
2026-01-06 20:13:41 -08:00
2026-01-06 20:02:48 -08:00
2026-01-06 20:02:48 -08:00
2026-01-06 20:02:48 -08:00
2026-01-06 20:02:48 -08:00
2026-01-06 21:16:05 -08:00
2026-01-06 20:33:39 -08:00
2026-01-06 20:02:48 -08:00

RemoteTerm for MeshCore

Web interface for MeshCore mesh radio networks. Attach your radio over serial, and then you can:

  • Cache all received packets, decrypting as you gain keys
  • Send and receive DMs and GroupTexts
  • Passively monitor as many contacts and channels as you want; radio limitations are irrelevant as all packets get hoovered up, then decrypted serverside
  • Use your radio remotely over your network or away from home over a VPN
  • Look for hashtag room names by brute forcing channel keys of GroupTexts you don't have the keys for yet

This is a personal toolkit, and not optimized for general consumption! This is entirely vibecoded slop and I make no warranty of fitness for any purpose.

For real, this code is bad and totally LLM generated. If you insist on extending it, there are three CLAUDE.md fils you should have your LLM read in ./, ./frontend, and ./app.

Requirements

  • Python 3.10+
  • Node.js 18+
  • UV (Python package manager): curl -LsSf https://astral.sh/uv/install.sh | sh
  • MeshCore-compatible radio connected via USB serial

Quick Start

Backend

# Install dependencies
uv sync

# Run (auto-detects serial port)
uv run uvicorn app.main:app --reload

# Or specify port explicitly
MESHCORE_SERIAL_PORT=/dev/cu.usbserial-0001 uv run uvicorn app.main:app --reload

Backend runs at http://localhost:8000

Frontend

cd frontend

# Install dependencies
npm install

# Development server (proxies API to localhost:8000)
npm run dev

# Production build
npm run build

Dev server runs at http://localhost:5173

Production Deployment

For production, the FastAPI backend serves the compiled frontend directly.

# 1. Install Python dependencies
uv sync

# 2. Build frontend
cd frontend
npm install
npm run build
cd ..

# 3. Run server
uv run uvicorn app.main:app --host 0.0.0.0 --port 8000

# Or with explicit serial port
MESHCORE_SERIAL_PORT=/dev/ttyUSB0 uv run uvicorn app.main:app --host 0.0.0.0 --port 8000

Access the app at http://localhost:8000 (or your server's IP/hostname).

HTTPS (Required for WebGPU Cracking)

WebGPU requires a secure context. To use the channel key cracker, serve over HTTPS:

# Generate self-signed cert
openssl req -x509 -newkey rsa:4096 -keyout key.pem -out cert.pem -days 365 -nodes -subj '/CN=localhost'

# Run with SSL
uv run uvicorn app.main:app --host 0.0.0.0 --port 8000 --ssl-keyfile=key.pem --ssl-certfile=cert.pem

Accept the browser security warning on first visit. For locally-trusted certs without warnings, use mkcert.

Systemd Service (Linux)

To run as a system service:

# 1. Create service user (with home directory for uv cache)
sudo useradd -r -m -s /bin/false remoteterm

# 2. Install to /opt/remoteterm
sudo mkdir -p /opt/remoteterm
sudo cp -r . /opt/remoteterm/
sudo chown -R remoteterm:remoteterm /opt/remoteterm

# 3. Create virtualenv and install deps (may need to install uv for the user with curl -LsSf https://astral.sh/uv/install.sh | sudo -u remoteterm sh)
cd /opt/remoteterm
sudo -u remoteterm uv venv
sudo -u remoteterm uv sync

# 4. Build frontend
cd /opt/remoteterm/frontend
sudo -u remoteterm npm install
sudo -u remoteterm npm run build

# 5. Install and start service
sudo cp /opt/remoteterm/remoteterm.service /etc/systemd/system/
sudo systemctl daemon-reload
sudo systemctl enable remoteterm
sudo systemctl start remoteterm

# Check status
sudo systemctl status remoteterm
sudo journalctl -u remoteterm -f

Edit /etc/systemd/system/remoteterm.service to set MESHCORE_SERIAL_PORT if auto-detection doesn't work.

Environment Variables

Variable Default Description
MESHCORE_SERIAL_PORT (auto-detect) Serial port path
MESHCORE_SERIAL_BAUDRATE 115200 Baud rate
MESHCORE_LOG_LEVEL INFO DEBUG, INFO, WARNING, ERROR
MESHCORE_DATABASE_PATH data/meshcore.db SQLite database path
MESHCORE_MAX_RADIO_CONTACTS 200 Max recent contacts to keep on radio for DM ACKs

Testing

Backend (pytest)

# Install test dependencies
uv sync --extra test

# Run all tests
PYTHONPATH=. uv run pytest tests/ -v

# Run specific test file
PYTHONPATH=. uv run pytest tests/test_decoder.py -v

Frontend (Vitest)

cd frontend

# Run tests once
npm run test:run

# Run tests in watch mode
npm test

API Docs

With the backend running, visit http://localhost:8000/docs for interactive API documentation.

Description
No description provided
Readme 73 MiB
Languages
Python 54.6%
TypeScript 43.2%
CSS 1%
Shell 0.9%
JavaScript 0.1%