Skip to main content

Python project for Termux development

Project description

TermuxCode

PyPI version Python License: MIT Status: Active

Terminal chat client for Claude Code — A modern TUI for interacting with Claude Code on Android/Termux, desktop terminals, or via web browser.


Features

  • Multi-session tabs — Manage multiple conversations with Ctrl+N / Ctrl+W
  • Persistent history — Each session saves its conversation automatically (JSONL format)
  • Background execution — Switch tabs while queries continue running; get notified on completion
  • Web server mode — Access from any browser with configurable DPI/font sizing
  • Blackboard memory — Persist project context across sessions (Ctrl+B to view)
  • Structured responses — Agent returns metadata for better context management
  • Markdown + syntax highlighting — Rich rendering in terminal
  • Mobile-optimized — Touch-friendly scrolling for Termux screens
  • Zero config — Works out of the box with Claude Code CLI

Requirements

  • Python 3.12+
  • Claude Code CLI installed first:
curl -fsSL https://claude.ai/install.sh | bash

Installation

pip install termuxcode

Usage

Terminal Mode (TUI)

termuxcode                      # Launch TUI
termuxcode --dev                # TUI with debug tools
termuxcode --cwd /my/project    # Start in specific directory

Web Server Mode

termuxcode --serve                          # Web server on 0.0.0.0:8001
termuxcode --serve --port 8080 --fs 24      # Custom port and font size

Access from any browser at http://localhost:8001 (or your custom port).


Keyboard Shortcuts

Shortcut Action
Ctrl+N New session
Ctrl+W Close current session
Ctrl+S Toggle side panel
Ctrl+H Stop running query
Ctrl+B Open Blackboard viewer

Session Indicators

Indicator Meaning
(green) Query running in this session
!N (yellow) N unread notifications (background task completed)

Architecture

termuxcode/
├── core/           # Reusable logic (no Textual dependency)
│   ├── agents/     # Claude SDK client wrappers
│   ├── history/    # JSONL conversation persistence
│   ├── sessions/   # Multi-session state management
│   ├── memory/     # Blackboard + FIFO persistence
│   └── schemas/    # Pydantic response models
├── tui/            # Textual terminal UI
└── web/            # xterm.js web assets

Links


License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

termuxcode-0.20.0.tar.gz (489.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

termuxcode-0.20.0-py3-none-any.whl (494.1 kB view details)

Uploaded Python 3

File details

Details for the file termuxcode-0.20.0.tar.gz.

File metadata

  • Download URL: termuxcode-0.20.0.tar.gz
  • Upload date:
  • Size: 489.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for termuxcode-0.20.0.tar.gz
Algorithm Hash digest
SHA256 12ad2a8f4f71e0f53f9c343ee87e1e1f09a41e9c741f0eeed99b004756ca4a7b
MD5 6cabaeb4f1529aaceef999fb1bebe975
BLAKE2b-256 004170cce83eee4dfc443241a25b956910b1dc84f64499fa1c9dbb501b83190c

See more details on using hashes here.

Provenance

The following attestation bundles were made for termuxcode-0.20.0.tar.gz:

Publisher: deploy.yaml on alejoair/termuxcode

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file termuxcode-0.20.0-py3-none-any.whl.

File metadata

  • Download URL: termuxcode-0.20.0-py3-none-any.whl
  • Upload date:
  • Size: 494.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for termuxcode-0.20.0-py3-none-any.whl
Algorithm Hash digest
SHA256 429b7c5ee7a15bd3c406302cbf017a1bcb73bf18a8acd5f419a49a63f8036889
MD5 49896e8b9fba2da8b6a2aabc7a9beb66
BLAKE2b-256 c276fac68735c735ba66a3af5f9b34f1b792aa3651d70508e6a9904d467afbe6

See more details on using hashes here.

Provenance

The following attestation bundles were made for termuxcode-0.20.0-py3-none-any.whl:

Publisher: deploy.yaml on alejoair/termuxcode

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page