Skip to main content

Coterm CLI runtime

Project description

Coterm CLI

Coterm CLI is the local runtime for Coterm. It starts an agent on your machine, connects it to a Coterm Hub, and prints a QR code plus pairing code so a mobile client can attach to the session.

Install

Install from PyPI:

pip install coterm

Requirements

  • Python 3.10 or newer
  • A reachable Coterm Hub
  • Claude installed and available on PATH for the current alpha implementation

Quick Start

Check local prerequisites:

coterm doctor

If you are using your own Hub, point the CLI at it explicitly:

export COTERM_HUB=http://your-hub.example.com

If your Hub requires authentication, save the Hub URL and token:

coterm auth login --hub http://your-hub.example.com

Start a session:

coterm

This will:

  1. Contact the configured Hub
  2. Request a pairing flow
  3. Print a QR code and pairing code
  4. Wait for a mobile client to complete pairing
  5. Start the local agent runtime

Some distributions may ship with a built-in default Hub so pip install coterm can work out of the box. If you run your own Hub, use --hub or COTERM_HUB to override it.

Hub Configuration

Coterm CLI resolves the Hub in this order:

  1. --hub
  2. COTERM_HUB
  3. COTERM_HUB_BASE_URL
  4. saved config in ~/.coterm/config.json
  5. package default, if the distribution defines one

Save Hub credentials locally:

coterm auth login --hub http://your-hub.example.com

Check saved configuration:

coterm auth status

Commands

coterm
coterm doctor
coterm version
coterm auth status
coterm auth login --hub http://your-hub.example.com
coterm hub status

Configuration

Coterm CLI reads configuration from CLI flags, environment variables, and ~/.coterm/config.json.

Important environment variables:

  • COTERM_HUB or COTERM_HUB_BASE_URL: Hub base URL
  • COTERM_AUTH_TOKEN: Hub auth token
  • COTERM_DEVICE_ID: Override the generated local device id
  • COTERM_HOME: Override config directory, default ~/.coterm
  • COTERM_CLAUDE_BIN: Path to the claude executable
  • COTERM_WORKING_DIR: Default working directory

Notes

  • The current alpha implementation supports Claude only.
  • A Hub must already exist or be installed separately.
  • Authentication behavior depends on your Hub deployment model.

License

This project is licensed under the GNU Affero General Public License v3.0 or later.

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

coterm-0.2.0.tar.gz (19.2 kB view details)

Uploaded Source

Built Distribution

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

coterm-0.2.0-py3-none-any.whl (24.7 kB view details)

Uploaded Python 3

File details

Details for the file coterm-0.2.0.tar.gz.

File metadata

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

File hashes

Hashes for coterm-0.2.0.tar.gz
Algorithm Hash digest
SHA256 fd5fd0ebdca111c363766943590b13258977c86d2a2bbc18541a4eda614b5c4b
MD5 ebd1117fa6d38c17eff83432500e5dc6
BLAKE2b-256 ed16daab0096ad6a8abc4a89f074c0cade6a16ebbdc488c5080a63ed2f7d5825

See more details on using hashes here.

Provenance

The following attestation bundles were made for coterm-0.2.0.tar.gz:

Publisher: cli-publish.yml on Heipiao/coterm

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

File details

Details for the file coterm-0.2.0-py3-none-any.whl.

File metadata

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

File hashes

Hashes for coterm-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 635ba4b8935ae4fccc25ce1528bf21e05c69e099ae09d72746ab6afee58dab6a
MD5 0245aa46038e2e828bdfccab4319f834
BLAKE2b-256 ba1c01f75056632c69dd929865f434488a0e5be5317d2b343be9bf320cd11d65

See more details on using hashes here.

Provenance

The following attestation bundles were made for coterm-0.2.0-py3-none-any.whl:

Publisher: cli-publish.yml on Heipiao/coterm

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